fix: update code gen
This commit is contained in:
@@ -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