Commit 0cb7ca51 authored by yanzg's avatar yanzg

1.3版本修改,增加删除功能

parent 69de31a3
...@@ -214,14 +214,15 @@ public abstract class BaseDaoSql { ...@@ -214,14 +214,15 @@ public abstract class BaseDaoSql {
*/ */
protected SqlData getSqlQueryPara(SqlData sqlData, QueryPara queryPara, boolean copy) { protected SqlData getSqlQueryPara(SqlData sqlData, QueryPara queryPara, boolean copy) {
SqlData copyTo = sqlData; SqlData copyTo = sqlData;
if (queryPara != null && queryPara.isLoadRemove()) { TableFieldVo remove = this.getTable().getTable().getRemove();
TableFieldVo remove = this.table.getTable().getRemove(); if (queryPara != null && queryPara.isLoadRemove() && remove != null) {
SqlDataField field = copyTo.getField(remove.inputName); String removeFieldName = remove.inputName + DaoConst.OLD_FLAG;
SqlDataField field = copyTo.getField(removeFieldName);
if (field != null) { if (field != null) {
if (copy) { if (copy) {
copyTo = sqlData.copy(); copyTo = sqlData.copy();
} }
copyTo.removeField(remove.inputName); copyTo.removeField(removeFieldName);
} }
} }
return copyTo; return copyTo;
......
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