处理复合工种开班导致的参培人数统计不上的问题

This commit is contained in:
TS-QD1 2023-03-21 09:19:21 +08:00
parent 22da7c3ee7
commit b059e566f0

View File

@ -294,7 +294,7 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe
for (ClassPlanDTO classPlanDTO : classPlanDTOS) { for (ClassPlanDTO classPlanDTO : classPlanDTOS) {
if (StringUtils.equals(examCheckDTO.getPlanId(), classPlanDTO.getClassPlanId())) { if (StringUtils.equals(examCheckDTO.getPlanId(), classPlanDTO.getClassPlanId())) {
// 开班计划中培训工种为多个 ','号分割 // 开班计划中培训工种为多个 ','号分割
String workTypeIds[] = classPlanDTO.getWorkerCatalog().split(","); String[] workTypeIds = classPlanDTO.getWorkerCatalog().split(",");
String workTypeNames = ""; String workTypeNames = "";
for (int i = 0; i < workTypeIds.length; i++) { for (int i = 0; i < workTypeIds.length; i++) {
WorkTypeDTO workTypeDTO = workTypeService.get(workTypeIds[i]); WorkTypeDTO workTypeDTO = workTypeService.get(workTypeIds[i]);
@ -309,7 +309,7 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe
Integer checkStatus = examCheckDTO.getCheckStatus(); Integer checkStatus = examCheckDTO.getCheckStatus();
if (0 == checkStatus || -1 == checkStatus) { if (0 == checkStatus || -1 == checkStatus) {
query.put("applyInstitutionId", examCheckDTO.getOrgId()); query.put("applyInstitutionId", examCheckDTO.getOrgId());
query.put("applyWorkTypeId", examCheckDTO.getWorkTypeId()); query.put("applyWorkTypeIds", Arrays.asList(workTypeIds));
List<String> applyAuditStates = new ArrayList<>(); List<String> applyAuditStates = new ArrayList<>();
applyAuditStates.add("2"); applyAuditStates.add("2");
query.put("applyAuditStates", applyAuditStates); query.put("applyAuditStates", applyAuditStates);