提交 e67e6e15 编写于 作者: zlt2000's avatar zlt2000

代码优化

上级 567d646e
......@@ -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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册