Commit eb8d112d by 范富荣

修改招聘统计需求业务映射关系

1 parent 122462b4
...@@ -1264,10 +1264,7 @@ public class RecruitmentDemandService { ...@@ -1264,10 +1264,7 @@ public class RecruitmentDemandService {
RecruitmentDemandStatusEnum.COMPLETED.getValue(), RecruitmentDemandStatusEnum.COMPLETED.getValue(),
RecruitmentDemandStatusEnum.WAIT_SUPERVISOR_CONFIRM.getValue() RecruitmentDemandStatusEnum.WAIT_SUPERVISOR_CONFIRM.getValue()
)) ))
.andIn("businessType", Arrays.asList( .andIn("businessType", mapBizToDemandBusinessTypeList(dto.getBiz()));
RecruitmentDemandBusinessTypeEnum.EXTENDED_WARRANTY.getValue(),
RecruitmentDemandBusinessTypeEnum.RIGHTS_EXTENDED_WARRANTY.getValue()
));
List<RecruitmentDemand> demands = recruitmentDemandMapper.selectByExample(demandExample); List<RecruitmentDemand> demands = recruitmentDemandMapper.selectByExample(demandExample);
Integer allOfDemand = 0; Integer allOfDemand = 0;
int allOfOnboarding = 0; int allOfOnboarding = 0;
...@@ -1347,6 +1344,38 @@ public class RecruitmentDemandService { ...@@ -1347,6 +1344,38 @@ public class RecruitmentDemandService {
} }
} }
private List<String> mapBizToDemandBusinessTypeList(Integer biz) {
if (biz == null) {
return Arrays.asList(
RecruitmentDemandBusinessTypeEnum.EXTENDED_WARRANTY.getValue(),
RecruitmentDemandBusinessTypeEnum.RIGHTS.getValue(),
RecruitmentDemandBusinessTypeEnum.LIGHT_MODIFICATION.getValue(),
RecruitmentDemandBusinessTypeEnum.RIGHTS_EXTENDED_WARRANTY.getValue()
);
}
// 1-延保(场景) → 延保 + 权益+延保
if (Objects.equals(biz, 1)) {
return Arrays.asList(
RecruitmentDemandBusinessTypeEnum.EXTENDED_WARRANTY.getValue(),
RecruitmentDemandBusinessTypeEnum.RIGHTS_EXTENDED_WARRANTY.getValue()
);
}
// 3-权益(场景) → 权益 + 权益+延保
if (Objects.equals(biz, 3)) {
return Arrays.asList(
RecruitmentDemandBusinessTypeEnum.RIGHTS.getValue(),
RecruitmentDemandBusinessTypeEnum.RIGHTS_EXTENDED_WARRANTY.getValue()
);
}
// 2-轻改(场景) → 轻改
if (Objects.equals(biz, 2)) {
return Collections.singletonList(
RecruitmentDemandBusinessTypeEnum.LIGHT_MODIFICATION.getValue()
);
}
return Collections.emptyList();
}
private List<Integer> mapBizToOrderBusinessTypeList(Integer biz) { private List<Integer> mapBizToOrderBusinessTypeList(Integer biz) {
if (biz == null) { if (biz == null) {
return Arrays.asList(1, 2); return Arrays.asList(1, 2);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!