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