Commit cd67d7d2 authored by yanzg's avatar yanzg

常规BUG的修改

parent 371204d5
......@@ -105,15 +105,15 @@ public class DaoConst {
/**
* 版本号字段名称
*/
public static final String VERSON = "verson";
public static final String VERSION_FLAG = "version";
/**
* 删除字段名称
*/
public static final String ISREMOVE = "isremove";
public static final String REMOVE_FLAG = "remove";
/**
* 删除字符串长度变量
*/
public static final String ISREMOVE_CONTANS = "contans____isremove";
public static final String REMOVE_FLAG_INPUT = "remove_input";
/**
* ID字段
*/
......
......@@ -231,7 +231,7 @@ public class SqlData {
* @return
*/
public SqlData removeFieldRemove() {
this.removeField(DaoConst.ISREMOVE_CONTANS);
this.removeField(DaoConst.REMOVE_FLAG_INPUT);
return this;
}
......
......@@ -147,7 +147,7 @@ public class TableStruct {
* @return
*/
public TableFieldVo getVersion() {
return this.getField(DaoConst.VERSON);
return this.getField(DaoConst.VERSION_FLAG);
}
/**
......@@ -156,7 +156,7 @@ public class TableStruct {
* @return
*/
private TableFieldVo getRemove() {
return this.getField(DaoConst.ISREMOVE);
return this.getField(DaoConst.REMOVE_FLAG);
}
/**
......@@ -274,7 +274,7 @@ public class TableStruct {
sql.add(field.inputName, " AND " + tag + field.name + "=?");
}
if (removeField != null) {
sql.addConst(DaoConst.ISREMOVE_CONTANS, " AND " + tag + removeField.name + "=0");
sql.addConst(DaoConst.REMOVE_FLAG_INPUT, " AND " + tag + removeField.name + "=0");
}
}
......@@ -369,7 +369,7 @@ public class TableStruct {
sql.addParaConst(field, DaoConst.WHERE_CODE, " AND a." + field + "=?");
}
if (getRemove() != null) {
sql.addParaConst(DaoConst.ISREMOVE_CONTANS, DaoConst.WHERE_CODE, " AND a." + DaoConst.ISREMOVE + "=0");
sql.addParaConst(DaoConst.REMOVE_FLAG_INPUT, DaoConst.WHERE_CODE, " AND a." + DaoConst.REMOVE_FLAG + "=0");
}
sqlTableData.add(sql);
}
......
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