|
|
@@ -1325,14 +1325,14 @@ public class FormExecuteServiceImpl implements IFormExecuteService {
|
|
|
long count = SqlRunnerAdapter.db().selectCount("select * from " + childTableConfig.get().getTableName() + " where " + childTableConfig.get().getRelationField() + " in " + keyValuesStr);
|
|
|
if(count > 0){
|
|
|
Entity childDeleteWhere = Entity.create(tableMap.getKey()).set(childTableConfig.get().getRelationField(), keyValue);
|
|
|
- result = SqlRunnerAdapter.db().dynamicDelete(tableName, childDeleteWhere);
|
|
|
+ result = SqlRunnerAdapter.db().dynamicDelete(childTableConfig.get().getTableName(), childDeleteWhere);
|
|
|
if (!result) {
|
|
|
throw new MyException("删除数据失败");
|
|
|
}
|
|
|
}
|
|
|
//再重新新增
|
|
|
List<Entity> childList = tableMap.getValue();
|
|
|
- result = SqlRunnerAdapter.db().dynamicInsertBatch(tableName, childList);
|
|
|
+ result = SqlRunnerAdapter.db().dynamicInsertBatch(childTableConfig.get().getTableName(), childList);
|
|
|
if (!result) {
|
|
|
throw new MyException("添加数据失败");
|
|
|
}
|