fix: update code gen
This commit is contained in:
1 parent
d907dcfae9
commit
23eed50dd6
2 files changed
+2
-2
No files matched your search
@@ -39,7 +39,7 @@ public class GenPlusUtils {
|
||||
.dataSourceConfig(builder ->
|
||||
builder.typeConvertHandler((globalConfig, typeRegistry, metaInfo) -> {
|
||||
int typeCode = metaInfo.getJdbcType().TYPE_CODE;
|
||||
if (typeCode == Types.SMALLINT) {
|
||||
if (typeCode == Types.SMALLINT || typeCode == Types.TINYINT) {
|
||||
// 自定义类型转换
|
||||
return DbColumnType.INTEGER;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ public class ${table.controllerName} extends BaseController {
|
||||
#end
|
||||
|
||||
@Autowired
|
||||
public ${table.serviceName} ${serviceName};
|
||||
private ${table.serviceName} ${serviceName};
|
||||
|
||||
@GetMapping("/page")
|
||||
public TableDataInfo page(${entity} $entityName) {
|
||||
|
||||
Reference in new issue
Block a user