2
0

fix: update code gen

This commit is contained in:
caiyuchao
2024-12-23 18:36:03 +08:00
parent d907dcfae9
commit 23eed50dd6
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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) {