代码优化

This commit is contained in:
zlt
2019-08-03 21:58:08 +08:00
parent 567d646ea2
commit e67e6e15b0
2 changed files with 2 additions and 2 deletions
@@ -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;
}
//是否主键
@@ -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);
}