|
@@ -18,6 +18,7 @@ import com.usky.dxtop.service.config.rabbitmq.group.GroupConsumeConfig;
|
|
|
import com.usky.dxtop.service.config.rabbitmq.profile.ProfileConsumeConfig;
|
|
|
import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.logging.log4j.core.util.JsonUtils;
|
|
|
import org.springframework.amqp.rabbit.connection.CorrelationData;
|
|
|
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -89,6 +90,8 @@ public class SmJob {
|
|
|
LambdaQueryWrapper<Staff> queryWrapper = Wrappers.lambdaQuery();
|
|
|
queryWrapper.eq(Staff::getId,date.getId());
|
|
|
Staff staff = staffService.getOne(queryWrapper);
|
|
|
+ Map dept = JSON.parseObject(date.getDept(), Map.class);
|
|
|
+ date.setDeptId(dept.get("id").toString());
|
|
|
int type;
|
|
|
if (null == staff){
|
|
|
type = 1;
|
|
@@ -170,10 +173,11 @@ public class SmJob {
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("type",type);
|
|
|
map.put("card_type",1);
|
|
|
- map.put("card",staff.getCard());
|
|
|
+ map.put("card",staff.getCardId());
|
|
|
map.put("name",staff.getName());
|
|
|
map.put("mob",staff.getId());
|
|
|
- map.put("groupid",staff.getPid());
|
|
|
+ Map dept = JSON.parseObject(staff.getDept(), Map.class);
|
|
|
+ map.put("groupid",dept.get("id"));
|
|
|
map.put("tel","");
|
|
|
map.put("level_name","");
|
|
|
MsgLog msgLog = new MsgLog();
|
|
@@ -216,7 +220,7 @@ public class SmJob {
|
|
|
private void faceSendMessage(Staff staff){
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("mob",staff.getId());
|
|
|
- map.put("image",staff.getFace());
|
|
|
+ map.put("image",staff.getFaceId());
|
|
|
faceRabbitTemplate.convertAndSend(FaceConsumeConfig.NAME, FaceConsumeConfig.NAME, map);
|
|
|
MsgLog msgLog = new MsgLog();
|
|
|
msgLog.setBusinessId(staff.getSId());
|