|
@@ -111,15 +111,18 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
|
|
|
InformationQuery query = this.informationQueryService.getById(formDataId);
|
|
|
if(query != null){
|
|
|
//查询对应的数据
|
|
|
- List<WbsTreeContract> tableData = this.wbsTreeContractClient.queryProcessSubmitBusinessDataByPrimaKeyIdAndClassify(query.getWbsId().toString(), query.getClassify().toString());
|
|
|
- if(tableData != null && tableData.size() > 0){
|
|
|
- //转换数据
|
|
|
- TaskApprovalVO vo = new TaskApprovalVO();
|
|
|
- for(WbsTreeContract node : tableData){
|
|
|
- vo.setApprovalFileList(node.getDeptName(), node.getPdfUrl());
|
|
|
- }
|
|
|
- return vo;
|
|
|
- }
|
|
|
+ TaskApprovalVO vo = new TaskApprovalVO();
|
|
|
+ vo.setApprovalFileList(query.getName(), StringUtils.isNotEmpty(query.getEVisaPdfUrl()) ? query.getEVisaPdfUrl() : query.getPdfUrl());
|
|
|
+
|
|
|
+// List<WbsTreeContract> tableData = this.wbsTreeContractClient.queryProcessSubmitBusinessDataByPrimaKeyIdAndClassify(query.getWbsId().toString(), query.getClassify().toString());
|
|
|
+// if(tableData != null && tableData.size() > 0){
|
|
|
+// //转换数据
|
|
|
+// TaskApprovalVO vo = new TaskApprovalVO();
|
|
|
+// for(WbsTreeContract node : tableData){
|
|
|
+// vo.setApprovalFileList(node.getDeptName(), node.getPdfUrl());
|
|
|
+// }
|
|
|
+// return vo;
|
|
|
+// }
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
@@ -392,7 +395,7 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
|
|
|
switch (task.getApprovalType()){
|
|
|
case 1:
|
|
|
//资料填报
|
|
|
- this.updateWriteBusinessDataStatus(task.getFormDataId(), status);
|
|
|
+ this.updateWriteBusinessDataStatus(task.getFormDataId(), status, newFileUrl);
|
|
|
break;
|
|
|
case 2:
|
|
|
//工程文件
|
|
@@ -417,8 +420,8 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
|
|
|
/**
|
|
|
* 资料填报
|
|
|
*/
|
|
|
- private void updateWriteBusinessDataStatus(String formDataId, Integer status){
|
|
|
- this.informationQueryService.update(Wrappers.<InformationQuery>lambdaUpdate().set(InformationQuery::getStatus, status).in(InformationQuery::getId, Arrays.asList(formDataId.split(","))));
|
|
|
+ private void updateWriteBusinessDataStatus(String formDataId, Integer status, String newFileUrl){
|
|
|
+ this.informationQueryService.update(Wrappers.<InformationQuery>lambdaUpdate().set(InformationQuery::getStatus, status).eq(InformationQuery::getEVisaPdfUrl, newFileUrl).in(InformationQuery::getId, Arrays.asList(formDataId.split(","))));
|
|
|
}
|
|
|
|
|
|
/**
|