|
|
|
@ -176,7 +176,6 @@ public class ExtServiceImpl extends Service implements ExtService {
|
|
|
|
|
tableMap.put("hide", false);
|
|
|
|
|
tableMap.put("tabname", getExtendGroupMapper().getGroupNameById(Util.null2String(entry.getKey())));
|
|
|
|
|
Map<String, Object> tabinfoMap = new HashMap<>();
|
|
|
|
|
//TODO 需优化
|
|
|
|
|
tabinfoMap.put("columns", ExtendInfoBO.convertInfoListToTable(user, entry.getValue(), viewAttr, showLabel));
|
|
|
|
|
tabinfoMap.put("rownum", "rownum" + entry.getKey());
|
|
|
|
|
|
|
|
|
@ -301,7 +300,7 @@ public class ExtServiceImpl extends Service implements ExtService {
|
|
|
|
|
int rowNum = Util.getIntValue((String) params.get("rownum" + groupId));
|
|
|
|
|
if (deleteFlag && rowNum > 0) {
|
|
|
|
|
// 删除原有明细表数据
|
|
|
|
|
getExtDTMapper().deleteByMainID(tableName, id);
|
|
|
|
|
getExtDTMapper().deleteByMainID(tableName, id, groupId);
|
|
|
|
|
deleteFlag = false;
|
|
|
|
|
}
|
|
|
|
|
List<ExtendInfoPO> filterS = poMaps.get(groupId);
|
|
|
|
@ -314,6 +313,7 @@ public class ExtServiceImpl extends Service implements ExtService {
|
|
|
|
|
map.put(extendInfoPO.getFieldName(), params.get(extendInfoPO.getFieldName() + "_" + i));
|
|
|
|
|
}
|
|
|
|
|
map.put("mainid", id);
|
|
|
|
|
map.put("group_id", groupId);
|
|
|
|
|
map.put("creator", user.getUID());
|
|
|
|
|
map.put("delete_type", 0);
|
|
|
|
|
map.put("create_time", new Date());
|
|
|
|
|