Commit 0cb7ca51 authored by yanzg's avatar yanzg

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

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