|
|
@@ -1361,12 +1361,12 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
});
|
|
|
if (ele.size() < relyList.size()) {
|
|
|
tec.getLog().put(FormulaLog.RELY, fd.getCode() + "@" + fd.getEName() + "@" + fd.getFormula().getFormula().replaceAll("'", ""));
|
|
|
- fd.getValues().forEach(e->e.setValue(null));
|
|
|
- FormData formData = tec.getFormDataMap().get(fd.getCode());
|
|
|
- if(formData!=null){
|
|
|
- formData.getValues().forEach(e->e.setValue(null));
|
|
|
- formData.setUpdate(1);
|
|
|
- }
|
|
|
+// fd.getValues().forEach(e->e.setValue(null));
|
|
|
+// FormData formData = tec.getFormDataMap().get(fd.getCode());
|
|
|
+// if(formData!=null){
|
|
|
+// formData.getValues().forEach(e->e.setValue(null));
|
|
|
+// formData.setUpdate(1);
|
|
|
+// }
|
|
|
continue;
|
|
|
}
|
|
|
if (fd.getCoordsList().size() > 1 && f.split("[/+\\-*]").length > 1) {
|
|
|
@@ -1952,20 +1952,21 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
/*把主表的表头表尾信息拷贝*/
|
|
|
headerFooterSub(subTableFds, tec);
|
|
|
/*如果识别到手填内容需要在附表写入数据后,更新评定关联数据*/
|
|
|
- }else {
|
|
|
- if(StringUtils.isNotEmpty(tec.getIsRemoveForSubTab())&&"1".equals(tec.getIsRemoveForSubTab())){
|
|
|
- List<NodeTable> subTabList = tec.getTableAll().stream().filter(e -> e.getNodeName().contains("附表") && (e.getTableType() == 1 || e.getTableType() == 5)).collect(Collectors.toList());
|
|
|
- if(!subTabList.isEmpty()){
|
|
|
- String queryIds = subTabList.stream().map(e -> e.getPKeyId() + "").collect(Collectors.joining(","));
|
|
|
- // 如果不是系统自动生成的附表,则不删除。
|
|
|
- List<Long> ids = jdbcTemplate.query("SELECT a.p_key_id from m_wbs_tree_contract a LEFT JOIN m_wbs_tree_private b on b.p_key_id = a.is_type_private_pid " +
|
|
|
- "where a.is_deleted = 0 and (b.p_key_id is null or (b.is_deleted = 0 and b.is_link_table = 2 and b.type = 10 )) and a.p_key_id in ( " + queryIds +")", new SingleColumnRowMapper<>(Long.class));
|
|
|
- if (!ids.isEmpty()) {
|
|
|
- this.wbsTreeContractMapper.deleteLogicByIds(ids);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
+// else {
|
|
|
+// if(StringUtils.isNotEmpty(tec.getIsRemoveForSubTab())&&"1".equals(tec.getIsRemoveForSubTab())){
|
|
|
+// List<NodeTable> subTabList = tec.getTableAll().stream().filter(e -> e.getNodeName().contains("附表") && (e.getTableType() == 1 || e.getTableType() == 5)).collect(Collectors.toList());
|
|
|
+// if(!subTabList.isEmpty()){
|
|
|
+// String queryIds = subTabList.stream().map(e -> e.getPKeyId() + "").collect(Collectors.joining(","));
|
|
|
+// // 如果不是系统自动生成的附表,则不删除。
|
|
|
+// List<Long> ids = jdbcTemplate.query("SELECT a.p_key_id from m_wbs_tree_contract a LEFT JOIN m_wbs_tree_private b on b.p_key_id = a.is_type_private_pid " +
|
|
|
+// "where a.is_deleted = 0 and (b.p_key_id is null or (b.is_deleted = 0 and b.is_link_table = 2 and b.type = 10 )) and a.p_key_id in ( " + queryIds +")", new SingleColumnRowMapper<>(Long.class));
|
|
|
+// if (!ids.isEmpty()) {
|
|
|
+// this.wbsTreeContractMapper.deleteLogicByIds(ids);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|