|
@@ -556,9 +556,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
String treeCode = node.getTreeCode();
|
|
|
if(StringUtils.isEmpty(treeCode)){
|
|
|
//treeCode为null的是业主的节点
|
|
|
- List<Long> pids = new ArrayList<>();
|
|
|
- pids.add(node.getProjectId());
|
|
|
- List<ContractInfo> contractInfos = contractClient.getContractByIds(pids);
|
|
|
+ List<ContractInfo> contractInfos = contractClient.getContractListByProjectId(node.getProjectId());
|
|
|
for(ContractInfo contract:contractInfos){
|
|
|
if(contract.getContractType()==3){
|
|
|
unit=contract.archivesUnit();
|
|
@@ -603,10 +601,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
storageTime = nodeContract.getStoragePeriod().toString();
|
|
|
}else{
|
|
|
- List<Long> pids= new ArrayList<>();
|
|
|
- pids.add(archivesAuto.getProjectId());
|
|
|
if(contracts==null){
|
|
|
- contracts = contractClient.queryContractListByIds(pids);
|
|
|
+ contracts = contractClient.getContractListByProjectId(archivesAuto.getProjectId());
|
|
|
}
|
|
|
for(ContractInfo c:contracts){
|
|
|
if(c.getContractType()==3){
|
|
@@ -632,10 +628,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
secretLevel = nodeContract.getSecurityLevel().toString();
|
|
|
}
|
|
|
}else{
|
|
|
- List<Long> pids= new ArrayList<>();
|
|
|
- pids.add(archivesAuto.getProjectId());
|
|
|
if(contracts==null){
|
|
|
- contracts = contractClient.queryContractListByIds(pids);
|
|
|
+ contracts = contractClient.getContractListByProjectId(archivesAuto.getProjectId());
|
|
|
}
|
|
|
for(ContractInfo c:contracts){
|
|
|
if(c.getContractType()==3){
|
|
@@ -661,10 +655,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
rollor = nodeContract.getFiler();
|
|
|
}else{
|
|
|
- List<Long> pids= new ArrayList<>();
|
|
|
- pids.add(archivesAuto.getProjectId());
|
|
|
if(contracts==null){
|
|
|
- contracts = contractClient.queryContractListByIds(pids);
|
|
|
+ contracts = contractClient.getContractListByProjectId(archivesAuto.getProjectId());
|
|
|
}
|
|
|
for(ContractInfo c:contracts){
|
|
|
if(c.getContractType()==3){
|
|
@@ -686,10 +678,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
reviewer = nodeContract.getReviewer();
|
|
|
}else{
|
|
|
- List<Long> pids= new ArrayList<>();
|
|
|
- pids.add(archivesAuto.getProjectId());
|
|
|
if(contracts==null){
|
|
|
- contracts = contractClient.queryContractListByIds(pids);
|
|
|
+ contracts = contractClient.getContractListByProjectId(archivesAuto.getProjectId());
|
|
|
}
|
|
|
for(ContractInfo c:contracts){
|
|
|
if(c.getContractType()==3){
|