Commit 64f8e575 authored by yanzg's avatar yanzg

常规BUG的修改

parent 0a5937bd
...@@ -163,10 +163,12 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao { ...@@ -163,10 +163,12 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
InitDao to = (InitDao) model; InitDao to = (InitDao) model;
to.init(); to.init();
} }
List<SqlData> sqlArray = this.table.getSqlType(DaoConst.SQL_TYPE_EXINTS); if (operatorType == DaoConst.OPERATOR_TYPE_CREATE || operatorType == DaoConst.OPERATOR_TYPE_UPDATE) {
if (sqlArray != null) { List<SqlData> sqlArray = this.table.getSqlType(DaoConst.SQL_TYPE_EXINTS);
for (SqlData sql : sqlArray) { if (sqlArray != null) {
this.checkExist(sql.getName(), model, String.format("%s已经存在", sql.getName())); for (SqlData sql : sqlArray) {
this.checkExist(sql.getName(), model, String.format("%s已经存在", sql.getName()));
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment