Commit 753c8505 authored by yanzg's avatar yanzg

常规BUG的修改

parent f6884d99
...@@ -208,6 +208,12 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao { ...@@ -208,6 +208,12 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
} }
} }
// 处理来源值
for (TableFieldVo fieldVo : this.table.getTable().getRemoveUpdate()) {
Object fromValue = ObjectHelper.get(model, fieldVo.inputName);
ObjectHelper.set(from, fieldVo.inputName, fromValue);
}
// 调用删除语句 // 调用删除语句
SqlData sqlData = this.getSql(DaoConst.REMOVE); SqlData sqlData = this.getSql(DaoConst.REMOVE);
return updateSql(sqlData, from); return updateSql(sqlData, from);
......
...@@ -140,10 +140,20 @@ public class TableStruct { ...@@ -140,10 +140,20 @@ public class TableStruct {
* *
* @return * @return
*/ */
private TableFieldVo getRemove() { public TableFieldVo getRemove() {
return getFieldAction(DaoConst.FIELD_REMOVE); return getFieldAction(DaoConst.FIELD_REMOVE);
} }
/**
* 获取删除时更新子弹
*
* @return 删除时更新字段
*/
public List<TableFieldVo> getRemoveUpdate() {
return getFieldActionList(DaoConst.FIELD_REMOVE_UPDATE);
}
/** /**
* 构造函数 * 构造函数
*/ */
......
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