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