|
@@ -2014,8 +2014,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
List <WbsTreeContract>list1=new ArrayList<>();
|
|
|
getAllChildNodes(fatherNode, list1);
|
|
|
if(list1.size()>0){
|
|
|
- int i=0;
|
|
|
for (WbsTreeContract treeContract : list1) {
|
|
|
+ if(treeContract.getNodeName().indexOf("JS107")>=0){
|
|
|
long tabGroupId = SnowFlakeUtil.getId();
|
|
|
long newPkId = SnowFlakeUtil.getId();
|
|
|
WbsTreeContract wbsTreeContract = new WbsTreeContract();
|
|
@@ -2039,8 +2039,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
String querySql = "insert into " + tabName + " (id,p_key_id," + colkeys + ") select '" + newPkId + "','" + newPkId + "'," + colkeys + " from " + tabName + " where p_key_id=" + treeContract.getPKeyId();
|
|
|
jdbcTemplate.execute(querySql);
|
|
|
wbsTreeContractService.save(wbsTreeContract);
|
|
|
- i++;
|
|
|
b=true;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if(!b){
|