代码优化
This commit is contained in:
@@ -98,7 +98,7 @@ public class GenUtils {
|
|||||||
//列的数据类型,转换成Java类型
|
//列的数据类型,转换成Java类型
|
||||||
String attrType = config.getString(columnEntity.getDataType(), "unknowType");
|
String attrType = config.getString(columnEntity.getDataType(), "unknowType");
|
||||||
columnEntity.setAttrType(attrType);
|
columnEntity.setAttrType(attrType);
|
||||||
if (!hasBigDecimal && attrType.equals("BigDecimal")) {
|
if (!hasBigDecimal && "BigDecimal".equals(attrType)) {
|
||||||
hasBigDecimal = true;
|
hasBigDecimal = true;
|
||||||
}
|
}
|
||||||
//是否主键
|
//是否主键
|
||||||
|
|||||||
+1
-1
@@ -18,5 +18,5 @@ public interface BaseDemoMapper {
|
|||||||
void save(Demo demo);
|
void save(Demo demo);
|
||||||
|
|
||||||
@Delete("delete from t_demo where id=#{id}")
|
@Delete("delete from t_demo where id=#{id}")
|
||||||
void deleteByKId(Long id);
|
void deleteById(Long id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user