|
|
@@ -378,6 +378,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
tableInfo.setContractId(dataInfo2.getString("contractId"));
|
|
|
tableInfo.setPkeyId(dataInfo2.getString("pkeyId"));
|
|
|
tableInfo.setProjectId(dataInfo2.getString("projectId"));
|
|
|
+ tableInfo.setNodeId(dataInfo2.getString("nodeId"));
|
|
|
//huangjn 填报的类型,施工或监理
|
|
|
tableInfo.setClassify(dataInfo2.getString("classify"));
|
|
|
tableInfo.setIsRemoveForSubTab(dataInfo2.getString("isRemoveForSubTab"));
|
|
|
@@ -1785,8 +1786,14 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
}
|
|
|
//获取节点
|
|
|
WbsTreeContract wbsTreeContract = this.wbsTreeContractService.getOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, tableInfoList.get(0).getPkeyId()));
|
|
|
- WbsTreeContract wbsTreeContractByP = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
|
|
|
- .eq(WbsTreeContract::getId, wbsTreeContract.getParentId()).eq(WbsTreeContract::getContractId, wbsTreeContract.getContractId()));
|
|
|
+ WbsTreeContract wbsTreeContractByP;
|
|
|
+ if (wbsTreeContract == null) {
|
|
|
+ wbsTreeContract = this.wbsTreeContractService.getOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, tableInfoList.get(0).getNodeId()));
|
|
|
+ wbsTreeContractByP = wbsTreeContract;
|
|
|
+ } else {
|
|
|
+ wbsTreeContractByP = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
|
|
|
+ .eq(WbsTreeContract::getId, wbsTreeContract.getParentId()).eq(WbsTreeContract::getContractId, wbsTreeContract.getContractId()));
|
|
|
+ }
|
|
|
//处理文件提名
|
|
|
fileName1= this.wbsParamService.createFileTitle(wbsTreeContractByP);
|
|
|
if(wbsTreeContractByP.getMajorDataType()!=null&&wbsTreeContractByP.getMajorDataType()==4){
|