Commit 93aa74fe authored by yanzg's avatar yanzg

常规BUG的修改

parent 26d0bcb5
...@@ -272,7 +272,7 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao { ...@@ -272,7 +272,7 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
to.init(); to.init();
} }
if (operatorType == DaoConst.OPERATOR_TYPE_CREATE || operatorType == DaoConst.OPERATOR_TYPE_UPDATE) { if (operatorType == DaoConst.OPERATOR_TYPE_CREATE || operatorType == DaoConst.OPERATOR_TYPE_UPDATE) {
List<SqlData> sqlArray = this.table.getSqlType(DaoConst.SQL_TYPE_SAVE_WITH); List<SqlData> sqlArray = this.table.getSqlType(DaoConst.SQL_TYPE_EXISTS);
if (sqlArray != null) { if (sqlArray != null) {
for (SqlData sql : sqlArray) { for (SqlData sql : sqlArray) {
this.checkExist(sql.getName(), model, String.format("%s已经存在", sql.getName())); this.checkExist(sql.getName(), model, String.format("%s已经存在", sql.getName()));
......
...@@ -660,7 +660,7 @@ public class TableStruct { ...@@ -660,7 +660,7 @@ public class TableStruct {
public void addExist(TableSqlCache sqlTableData, String sqlName, String[] fields) { public void addExist(TableSqlCache sqlTableData, String sqlName, String[] fields) {
String text = DaoConst.SQL_LOAD.replace(DaoConst.CODE_TABLE, this.name); String text = DaoConst.SQL_LOAD.replace(DaoConst.CODE_TABLE, this.name);
SqlData sql = new SqlData(sqlName, text); SqlData sql = new SqlData(sqlName, text);
sql.setSqlType(DaoConst.SQL_TYPE_SAVE_WITH); sql.setSqlType(DaoConst.SQL_TYPE_EXISTS);
sql.addConst(this.getKey().inputName, sql.addConst(this.getKey().inputName,
String.format(DaoConst.CODE_WHERE_NOT_EQUALS_PARA, this.getKey().name) String.format(DaoConst.CODE_WHERE_NOT_EQUALS_PARA, this.getKey().name)
); );
......
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