|
@@ -173,7 +173,7 @@ public class SmJob {
|
|
|
* 人员消息
|
|
|
* @param staff
|
|
|
*/
|
|
|
- private void personSendMessage(Staff staff,Integer type){
|
|
|
+ public void personSendMessage(Staff staff,Integer type){
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("type",type);
|
|
|
map.put("card_type",1);
|
|
@@ -193,14 +193,14 @@ public class SmJob {
|
|
|
msgLog.setMsg(JSON.toJSONString(map));
|
|
|
msgLogService.updateById(msgLog);
|
|
|
CorrelationData correlationData = new CorrelationData(msgLog.getId().toString());
|
|
|
- profileRabbitTemplate.convertAndSend(msgLog.getExchange(), msgLog.getRoutingKey(), msgLog.getMsg(),correlationData);
|
|
|
+ profileRabbitTemplate.convertAndSend(msgLog.getExchange(), msgLog.getRoutingKey(), map,correlationData);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 部门消息
|
|
|
* @param dept
|
|
|
*/
|
|
|
- private void deptSendMessage(Dept dept){
|
|
|
+ public void deptSendMessage(Dept dept){
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("parentid",dept.getPid());
|
|
|
map.put("id",dept.getId());
|
|
@@ -214,14 +214,14 @@ public class SmJob {
|
|
|
msgLog.setMsg(JSON.toJSONString(map));
|
|
|
msgLogService.updateById(msgLog);
|
|
|
CorrelationData correlationData = new CorrelationData(msgLog.getId().toString());
|
|
|
- groupRabbitTemplate.convertAndSend(msgLog.getExchange(), msgLog.getRoutingKey(), msgLog.getMsg(),correlationData);
|
|
|
+ groupRabbitTemplate.convertAndSend(msgLog.getExchange(), msgLog.getRoutingKey(), map,correlationData);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 人脸
|
|
|
* @param staff
|
|
|
*/
|
|
|
- private void faceSendMessage(Staff staff){
|
|
|
+ public void faceSendMessage(Staff staff){
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("mob",staff.getId());
|
|
|
map.put("image",staff.getFaceId());
|
|
@@ -235,7 +235,7 @@ public class SmJob {
|
|
|
msgLog.setMsg(JSON.toJSONString(map));
|
|
|
msgLogService.updateById(msgLog);
|
|
|
CorrelationData correlationData = new CorrelationData(msgLog.getId().toString());
|
|
|
- faceRabbitTemplate.convertAndSend(msgLog.getExchange(), msgLog.getRoutingKey(), msgLog.getMsg(),correlationData);
|
|
|
+ faceRabbitTemplate.convertAndSend(msgLog.getExchange(), msgLog.getRoutingKey(), map,correlationData);
|
|
|
}
|
|
|
|
|
|
@Data
|