Commit 5ab16e5e by songyinghui

feat: 销售线索通知跳转

parent e314e055
......@@ -90,7 +90,7 @@ public class PotentialCustomerNotifyContext {
noticeMessageBO.setDescription(String.format("新增%s个客户的销售线索,请及时跟进", customerStaticsMap.get(item.getClerkId())));
noticeMessageBO.setEnterpriseId(this.enterpriseId);
noticeMessageBO.setRelationId(item.getClerkId());
noticeMessageBO.setMessageContent(this.buildExtendParams(item.getStoreId()));
noticeMessageBO.setMessageContent(this.buildExtendParams(item.getStoreId(), item.getClerkId()));
return noticeMessageBO;
})
.collect(Collectors.toList());
......@@ -101,9 +101,10 @@ public class PotentialCustomerNotifyContext {
* @param storeId
* @return
*/
public String buildExtendParams(String storeId) {
public String buildExtendParams(String storeId, String clerkId) {
JSONObject jsonObject = new JSONObject();
jsonObject.put("storeId", storeId);
jsonObject.put("clerkId", clerkId);
return jsonObject.toJSONString();
}
}
......@@ -184,7 +184,7 @@ public class PotentialCustomerNotifyBuilder {
continue;
}
QywxXcxSendMessageDTO messageDTO = this.buildApplicationMessage(staffClerkRelation, wxEnterpriseQwDTO,
customerStaticsBOMap.get(staffClerkRelation.getClerkId()).getNum(), context.buildExtendParams(staffClerkRelation.getStoreId()));
customerStaticsBOMap.get(staffClerkRelation.getClerkId()).getNum(), context.buildExtendParams(staffClerkRelation.getStoreId(), staffClerkRelation.getClerkId()));
boolean sendMessage = qywxSuiteApiService.sendMessage(wxEnterpriseQwDTO.getThirdCorpid(), config.getWxSuiteid(), messageDTO);
log.info("发送销售线索应用消息结果 {}", sendMessage);
}
......
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