处理复合工种开班导致的参培人数统计不上的问题
This commit is contained in:
parent
6cbc85c437
commit
22da7c3ee7
@ -483,7 +483,7 @@ public class ClassPlanServiceImpl extends DefaultBaseService implements IClassPl
|
||||
classPlanDTOs.parallelStream().forEach(classPlanDTO -> {
|
||||
Map<String, Object> queryMap = getHashMap(4);
|
||||
// 开班计划中培训工种为多个 ','号分割
|
||||
String workTypeIds[] = classPlanDTO.getWorkerCatalog().split(",");
|
||||
String[] workTypeIds = classPlanDTO.getWorkerCatalog().split(",");
|
||||
String workTypeNames = "";
|
||||
for (int i = 0; i < workTypeIds.length; i++) {
|
||||
WorkTypeDTO workTypeDTO = workTypeService.get(workTypeIds[i]);
|
||||
@ -506,7 +506,7 @@ public class ClassPlanServiceImpl extends DefaultBaseService implements IClassPl
|
||||
classPlanDTO.setSignUpUserCount(studentsService.count(params));
|
||||
} else {
|
||||
queryMap.put("applyInstitutionId", classPlanDTO.getOrgId());
|
||||
queryMap.put("applyWorkTypeId", classPlanDTO.getWorkerCatalog());
|
||||
queryMap.put("applyWorkTypeIds", Arrays.asList(workTypeIds));
|
||||
List<String> applyAuditStates = new ArrayList<>();
|
||||
applyAuditStates.add("2");
|
||||
queryMap.put("applyAuditStates", applyAuditStates);
|
||||
|
@ -712,6 +712,12 @@
|
||||
<if test="applyWorkTypeId != null and applyWorkTypeId != ''">
|
||||
AND t1.apply_work_type_id = #{applyWorkTypeId}
|
||||
</if>
|
||||
<if test="applyWorkTypeIds != null and applyWorkTypeIds.size > 0">
|
||||
AND t1.apply_work_type_id IN
|
||||
<foreach collection="applyWorkTypeIds" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="creator != null and creator != ''">
|
||||
AND t1.creator = #{creator}
|
||||
</if>
|
||||
|
Loading…
Reference in New Issue
Block a user