|
|
@@ -291,6 +291,7 @@ public class WorkerManagerLogic {
|
|
|
throw new RemoteServiceException("雇主险必须有生效的保险");
|
|
|
}
|
|
|
}
|
|
|
+ workerManagerBean.setExamineStatus(ExamineWorkerStatusEnum.OK.getKey());
|
|
|
}else {
|
|
|
|
|
|
List<WorkerPolicy> workerPolicies = workerManagerBean.getWorkerPolicies().stream().filter(item -> item.getPolicyType().equals("AC")).collect(Collectors.toList());
|
|
|
@@ -313,11 +314,16 @@ public class WorkerManagerLogic {
|
|
|
if (in)
|
|
|
throw new RemoteServiceException("工伤险有相同覆盖范围内的保险");
|
|
|
|
|
|
- if (workerPoliciesIn.stream().filter(item -> item.getStatus().equals("BZZ")).count() < 1) {
|
|
|
+ if (workerPoliciesIn.stream().filter(item -> item.getStatus().equals("BZZ") || item.getStatus().equals("DSX")).count() < 1) {
|
|
|
workerManagerBean.setExamineStatus(ExamineWorkerStatusEnum.WAIT_WORKER.getKey());
|
|
|
this.scGongShang(workerManagerBean);
|
|
|
}
|
|
|
|
|
|
+ if (workerPolicies.stream().filter(item -> item.getStatus().equals("BZZ")).count() > 1) {
|
|
|
+ workerManagerBean.setExamineStatus(ExamineWorkerStatusEnum.OK.getKey());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
} else {
|
|
|
List<WorkerPolicy> workerPoliciesEm = workerManagerBean.getWorkerPolicies().stream()
|
|
|
@@ -333,6 +339,9 @@ public class WorkerManagerLogic {
|
|
|
this.scGuZhu(workerManagerBean);
|
|
|
}
|
|
|
|
|
|
+ if (workerPolicies.stream().filter(item -> item.getStatus().equals("BZZ")).count() > 1) {
|
|
|
+ workerManagerBean.setExamineStatus(ExamineWorkerStatusEnum.OK.getKey());
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|