Merge remote-tracking branch 'origin/fix_20230911_UAT' into fix_20230911_UAT
This commit is contained in:
+12
-1
@@ -763,8 +763,19 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
||||
|
||||
if (StringUtils.isNotEmpty(paramsCollectManifestVO.getState())) {
|
||||
paramsCollectManifestVO.setDre(paramsCollectManifestVO.getState().replaceAll("'", "\'"));
|
||||
sqlJoinSb.append(" and state = '").append(paramsCollectManifestVO.getDre()).append("'");
|
||||
String state = paramsCollectManifestVO.getState().replaceAll("'", "\'");
|
||||
// state = "1,2,3,9";
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (String s : Arrays.asList(state.split(","))) {
|
||||
sb.append("'"+s+"',");
|
||||
}
|
||||
String substring = sb.substring(0,sb.length() - 1);
|
||||
sqlJoinSb.append(" and state in ( ").append(substring).append(" )");
|
||||
}
|
||||
// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getState())) {
|
||||
// paramsCollectManifestVO.setDre(paramsCollectManifestVO.getState().replaceAll("'", "\'"));
|
||||
// sqlJoinSb.append(" and state = '").append(paramsCollectManifestVO.getDre()).append("'");
|
||||
// }
|
||||
if (StringUtils.isNotEmpty(paramsCollectManifestVO.getCertCategory())) {
|
||||
sqlJoinSb.append(" and cert_category like '%").append(paramsCollectManifestVO.getCertCategory()).append("%'");
|
||||
}
|
||||
|
||||
+18
-17
@@ -57,7 +57,6 @@ import com.jero.modules.project.enums.ProjectMessageEnum;
|
||||
import com.jero.modules.project.enums.ProjectUserLocationEnum;
|
||||
import com.jero.modules.project.enums.ReviewResultEnum;
|
||||
import com.jero.modules.project.enums.RoleRelModelTypeEnum;
|
||||
import com.jero.modules.project.enums.TaskAffirmStatusEnum;
|
||||
import com.jero.modules.project.enums.TaskStatusEnum;
|
||||
import com.jero.modules.project.mapper.ProjectRelatedPersonnelMapper;
|
||||
import com.jero.modules.project.service.IProjectCertificationInventoryLogEOService;
|
||||
@@ -80,7 +79,6 @@ import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
||||
import com.jero.modules.todoCenter.entity.ProcessInfoDetailEO;
|
||||
import com.jero.modules.todoCenter.entity.ProcessInfoEO;
|
||||
import com.jero.modules.todoCenter.enums.TodoCenterStatusEnum;
|
||||
import com.jero.modules.todoCenter.service.IProcessInfoDetailEOService;
|
||||
import com.jero.modules.todoCenter.service.IProcessInfoEOService;
|
||||
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
||||
@@ -3376,7 +3374,7 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
public List<Map<String, Object>> getTaskToConfirmStatistics(List<ProjectCertificationInventoryEO> pciEoList) {
|
||||
List<Map<String,Object>> result = new ArrayList<>();
|
||||
|
||||
int listToBeReleasedCount = 0;//清单待发布
|
||||
// int listToBeReleasedCount = 0;//清单待发布
|
||||
int taskToBeInitiatedCount = 0;//任务待发起
|
||||
int taskToBeConfirmedCount = 0;//任务待确认
|
||||
int acceptedCount = 0;//责任人接受
|
||||
@@ -3384,13 +3382,13 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
|
||||
if(CollectionUtils.isNotEmpty(pciEoList)){
|
||||
// 清单待发布
|
||||
listToBeReleasedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
// listToBeReleasedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
// boolean flag = (
|
||||
// StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
// );
|
||||
// return flag;
|
||||
// }).count();
|
||||
// 任务待发起
|
||||
taskToBeInitiatedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
boolean flag = (
|
||||
@@ -3424,14 +3422,14 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
}).count();
|
||||
}
|
||||
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();
|
||||
// Map<String,Object> listToBeReleasedMap = new HashMap<>();
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();
|
||||
Map<String,Object> acceptedMap = new HashMap<>();
|
||||
Map<String,Object> rejectedMap = new HashMap<>();
|
||||
|
||||
listToBeReleasedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
listToBeReleasedMap.put("taskAffirmStatusCount",listToBeReleasedCount);
|
||||
// listToBeReleasedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
// listToBeReleasedMap.put("taskAffirmStatusCount",listToBeReleasedCount);
|
||||
|
||||
taskToBeInitiatedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||
taskToBeInitiatedMap.put("taskAffirmStatusCount",taskToBeInitiatedCount);
|
||||
@@ -3445,7 +3443,7 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
rejectedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue());
|
||||
rejectedMap.put("taskAffirmStatusCount",rejectedCount);
|
||||
|
||||
result.add(listToBeReleasedMap);
|
||||
// result.add(listToBeReleasedMap);
|
||||
result.add(taskToBeInitiatedMap);
|
||||
result.add(taskToBeConfirmedMap);
|
||||
result.add(acceptedMap);
|
||||
@@ -3467,11 +3465,14 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
// 任务待确认
|
||||
taskToBeConfirmedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue())
|
||||
// StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
|
||||
+36
-30
@@ -10045,20 +10045,20 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
public List<Map<String, Object>> getDesignTaskToConfirmStatistics(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
|
||||
List<Map<String,Object>> result = new ArrayList<>();
|
||||
|
||||
int listToBeReleasedCount = 0;//清单待发布
|
||||
// int listToBeReleasedCount = 0;//清单待发布
|
||||
int taskToBeInitiatedCount = 0;//任务待发起
|
||||
int taskToBeConfirmedCount = 0;//任务待确认
|
||||
int acceptedCount = 0;//责任人接收
|
||||
int rejectedCount = 0;//责任人拒绝
|
||||
if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){
|
||||
// 清单待发布
|
||||
listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
// listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
// boolean flag = (
|
||||
// StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// );
|
||||
// return flag;
|
||||
// }).count();
|
||||
|
||||
// 任务待发起
|
||||
taskToBeInitiatedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
@@ -10097,14 +10097,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
}).count();
|
||||
}
|
||||
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
// Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();//任务待发起
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();//任务待确认
|
||||
Map<String,Object> acceptedMap = new HashMap<>();//责任人接收
|
||||
Map<String,Object> rejectedMap = new HashMap<>();//责任人拒绝
|
||||
|
||||
listToBeReleasedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
listToBeReleasedMap.put("designTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
// listToBeReleasedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
// listToBeReleasedMap.put("designTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
|
||||
taskToBeInitiatedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||
taskToBeInitiatedMap.put("designTaskAffirmStatusCount",taskToBeInitiatedCount);
|
||||
@@ -10118,7 +10118,7 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
rejectedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue());
|
||||
rejectedMap.put("designTaskAffirmStatusCount",rejectedCount);
|
||||
|
||||
result.add(listToBeReleasedMap);
|
||||
// result.add(listToBeReleasedMap);
|
||||
result.add(taskToBeInitiatedMap);
|
||||
result.add(taskToBeConfirmedMap);
|
||||
result.add(acceptedMap);
|
||||
@@ -10129,20 +10129,20 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
public List<Map<String, Object>> getVerifyTaskToConfirmStatistics(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
|
||||
List<Map<String,Object>> result = new ArrayList<>();
|
||||
|
||||
int listToBeReleasedCount = 0;//清单待发布
|
||||
// int listToBeReleasedCount = 0;//清单待发布
|
||||
int taskToBeInitiatedCount = 0;//任务待发起
|
||||
int taskToBeConfirmedCount = 0;//任务待确认
|
||||
int acceptedCount = 0;//责任人接收
|
||||
int rejectedCount = 0;//责任人拒绝
|
||||
if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){
|
||||
// 清单待发布
|
||||
listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
// listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
// boolean flag = (
|
||||
// StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// );
|
||||
// return flag;
|
||||
// }).count();
|
||||
|
||||
// 任务待发起
|
||||
taskToBeInitiatedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
@@ -10181,14 +10181,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
}).count();
|
||||
}
|
||||
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
// Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();//任务待发起
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();//任务待确认
|
||||
Map<String,Object> acceptedMap = new HashMap<>();//责任人接收
|
||||
Map<String,Object> rejectedMap = new HashMap<>();//责任人拒绝
|
||||
|
||||
listToBeReleasedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
listToBeReleasedMap.put("verifyTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
// listToBeReleasedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
// listToBeReleasedMap.put("verifyTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
|
||||
taskToBeInitiatedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||
taskToBeInitiatedMap.put("verifyTaskAffirmStatusCount",taskToBeInitiatedCount);
|
||||
@@ -10202,7 +10202,7 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
rejectedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue());
|
||||
rejectedMap.put("verifyTaskAffirmStatusCount",rejectedCount);
|
||||
|
||||
result.add(listToBeReleasedMap);
|
||||
// result.add(listToBeReleasedMap);
|
||||
result.add(taskToBeInitiatedMap);
|
||||
result.add(taskToBeConfirmedMap);
|
||||
result.add(acceptedMap);
|
||||
@@ -10328,11 +10328,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
// 任务待确认
|
||||
taskToBeConfirmedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
// StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
|
||||
);
|
||||
return flag;
|
||||
@@ -10424,11 +10427,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
// 任务待确认
|
||||
taskToBeConfirmedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
// StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
|
||||
);
|
||||
return flag;
|
||||
|
||||
Reference in New Issue
Block a user