lvy 1 месяц назад
Родитель
Сommit
5e9fd6887c

+ 5 - 1
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/WbsTreeContractStatisticsServiceImpl.java

@@ -293,7 +293,11 @@ public class WbsTreeContractStatisticsServiceImpl extends ServiceImpl<WbsTreeCon
             }
             update.setParentId(parent.getId());
             update.setAncestors(parent.getAncestors() + "," + parent.getId());
-
+            updateList.add(update);
+            WbsTreeContractStatistics temp = new WbsTreeContractStatistics();
+            temp.setId(statistics.getParentId());
+            temp.setAncestors(statistics.getAncestors());
+            parentMap.put(statistics.getParentId(), temp);
             String oldAncestors = statistics.getAncestors() + "," + statistics.getId();
             String newAncestors = update.getAncestors() + "," + statistics.getId();
             String sql = "UPDATE m_wbs_tree_contract_statistics SET ancestors = replace(ancestors, '" + oldAncestors + "', '" + newAncestors + "') WHERE is_deleted = 0 and status = 1 and ancestors like '"