|
@@ -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 '"
|