Commit fb89eb2b by songyinghui

feat: 区经角色不发送消息

parent 71590e98
package com.gic.haoban.manage.service.service.commission; package com.gic.haoban.manage.service.service.commission;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO; import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
import com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum; import com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum;
...@@ -46,6 +47,10 @@ public class CommissionNotifyInnerService { ...@@ -46,6 +47,10 @@ public class CommissionNotifyInnerService {
log.info("handlerCommissionNotify 处理导购佣金消息,导购不存在 {}", clerkId); log.info("handlerCommissionNotify 处理导购佣金消息,导购不存在 {}", clerkId);
return; return;
} }
if (staffClerkRelationDTO.getClerkType() != null && staffClerkRelationDTO.getClerkType() == 2) {
log.info("导购为区经角色 {}, 不发送消息", JSON.toJSONString(staffClerkRelationDTO));
return;
}
String staffId = staffClerkRelationDTO.getStaffId(); String staffId = staffClerkRelationDTO.getStaffId();
String uniqueKey = UUID.randomUUID().toString().replaceAll("-", ""); String uniqueKey = UUID.randomUUID().toString().replaceAll("-", "");
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment