Commit fa25da5d by 谢海旭

v5.7.1版本 招聘管理:推送调整

1 parent 8e8aa42d
...@@ -48,6 +48,10 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -48,6 +48,10 @@ public enum RecruitmentDemandBusinessTypeEnum {
* 9-二手车验车专员 * 9-二手车验车专员
*/ */
USED_CAR_INSPECTOR("9", "二手车验车专员"), USED_CAR_INSPECTOR("9", "二手车验车专员"),
/**
* 10-洗车工
*/
CAR_WASH_WORKER("10", "洗车工"),
; ;
private String value; private String value;
...@@ -93,7 +97,7 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -93,7 +97,7 @@ public enum RecruitmentDemandBusinessTypeEnum {
/** /**
* 判断是否需要推送新增招聘需求消息 * 判断是否需要推送新增招聘需求消息
* 延保、权益、轻改、权益+延保、二手车验车专员需要推送消息 * 延保、权益、轻改、权益+延保、二手车验车专员、洗车工 需要推送消息
*/ */
public static boolean needsNewDemandMessage(String businessType) { public static boolean needsNewDemandMessage(String businessType) {
if (businessType == null) { if (businessType == null) {
...@@ -103,12 +107,13 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -103,12 +107,13 @@ public enum RecruitmentDemandBusinessTypeEnum {
|| RIGHTS.getValue().equals(businessType) || RIGHTS.getValue().equals(businessType)
|| LIGHT_MODIFICATION.getValue().equals(businessType) || LIGHT_MODIFICATION.getValue().equals(businessType)
|| RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType) || RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType)
|| USED_CAR_INSPECTOR.getValue().equals(businessType); || USED_CAR_INSPECTOR.getValue().equals(businessType)
|| CAR_WASH_WORKER.getValue().equals(businessType);
} }
/** /**
* 判断是否需要推送给区域运营的消息 * 判断是否需要推送给区域运营的消息
* 延保、权益、轻改、权益+延保业务类型需要推送给区域运营 * 延保、权益、轻改、权益+延保、洗车工 业务类型需要推送给区域运营
*/ */
public static boolean needsRegionOperationMessage(String businessType) { public static boolean needsRegionOperationMessage(String businessType) {
if (businessType == null) { if (businessType == null) {
...@@ -117,7 +122,8 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -117,7 +122,8 @@ public enum RecruitmentDemandBusinessTypeEnum {
return EXTENDED_WARRANTY.getValue().equals(businessType) return EXTENDED_WARRANTY.getValue().equals(businessType)
|| RIGHTS.getValue().equals(businessType) || RIGHTS.getValue().equals(businessType)
|| LIGHT_MODIFICATION.getValue().equals(businessType) || LIGHT_MODIFICATION.getValue().equals(businessType)
|| RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType); || RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType)
|| CAR_WASH_WORKER.getValue().equals(businessType);
} }
/** /**
......
...@@ -225,7 +225,7 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{ ...@@ -225,7 +225,7 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
try{ try{
RecruitmentDemandDTO result = recruitmentDemandService.recruitmentDemandAdd(dto); RecruitmentDemandDTO result = recruitmentDemandService.recruitmentDemandAdd(dto);
// 推送给招聘负责人(延保、权益、轻改、权益+延保、二手车验车专员) // 推送给招聘负责人(延保、权益、轻改、权益+延保、二手车验车专员、洗车工)
if (RecruitmentDemandBusinessTypeEnum.needsNewDemandMessage(result.getBusinessType())) { if (RecruitmentDemandBusinessTypeEnum.needsNewDemandMessage(result.getBusinessType())) {
recruitmentDemandService.sendRecruitmentQWTextMessage( recruitmentDemandService.sendRecruitmentQWTextMessage(
result.getRecruiterPhone(), result.getRecruiterPhone(),
......
...@@ -413,7 +413,7 @@ ...@@ -413,7 +413,7 @@
INNER JOIN dj_car_life_recruitment_resume r ON d.id = r.demand_id INNER JOIN dj_car_life_recruitment_resume r ON d.id = r.demand_id
WHERE d.status = 1 WHERE d.status = 1
AND d.deleted_flag = 'N' AND d.deleted_flag = 'N'
AND d.business_type IN ('1', '2', '3', '5') AND d.business_type IN ('1', '2', '3', '5', '10')
AND d.region_operation_id IS NOT NULL AND d.region_operation_id IS NOT NULL
AND d.region_operation_name IS NOT NULL AND d.region_operation_name IS NOT NULL
AND r.deleted_flag = 'N' AND r.deleted_flag = 'N'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!