|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.usky.dxtop.common.utils.StringUtils;
|
|
|
import com.usky.dxtop.common.utils.http.HttpUtils;
|
|
|
import com.usky.dxtop.model.Dept;
|
|
|
import com.usky.dxtop.model.MsgLog;
|
|
@@ -18,7 +19,6 @@ 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;
|
|
@@ -101,11 +101,14 @@ public class SmJob {
|
|
|
date.setSId(staff.getSId());
|
|
|
staffService.updateById(date);
|
|
|
}
|
|
|
- //TODO 判断人脸和卡号不为空才发送
|
|
|
//发送人员信息
|
|
|
- personSendMessage(date,type);
|
|
|
+ if (StringUtils.isNotBlank(date.getCardId())){
|
|
|
+ personSendMessage(date,type);
|
|
|
+ }
|
|
|
//发送人脸信息
|
|
|
- faceSendMessage(date);
|
|
|
+ if (StringUtils.isNotBlank(date.getFaceId())){
|
|
|
+ faceSendMessage(date);
|
|
|
+ }
|
|
|
});
|
|
|
return list.isEmpty();
|
|
|
});
|
|
@@ -179,7 +182,7 @@ public class SmJob {
|
|
|
map.put("mob",staff.getId());
|
|
|
Map dept = JSON.parseObject(staff.getDept(), Map.class);
|
|
|
map.put("groupid",dept.get("id"));
|
|
|
- map.put("tel","");
|
|
|
+ map.put("tel",staff.getContacts());
|
|
|
map.put("level_name","");
|
|
|
MsgLog msgLog = new MsgLog();
|
|
|
msgLog.setBusinessId(staff.getSId());
|