Переглянути джерело

体温检测异常发送模板消息

M墨鱼—_mo 5 роки тому
батько
коміт
0ab13705a9

+ 19 - 0
common/src/main/java/com/jpsoft/smart/config/WxConfig.java

@@ -0,0 +1,19 @@
+package com.jpsoft.smart.config;
+
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2020-3-21 13:42
+ */
+@Component
+@ConfigurationProperties(prefix = "wx")
+@Data
+public class WxConfig {
+
+    private String appId;
+
+    private String appSecret;
+}

+ 83 - 59
common/src/main/java/com/jpsoft/smart/modules/base/service/impl/PersonDeviceLogServiceImpl.java

@@ -4,18 +4,20 @@ import cn.hutool.json.JSONObject;
 import com.github.pagehelper.Page;
 import com.github.pagehelper.PageHelper;
 import com.jpsoft.smart.config.OSSConfig;
-import com.jpsoft.smart.modules.base.dao.AlarmInfoDAO;
-import com.jpsoft.smart.modules.base.dao.PersonDeviceLogDAO;
+import com.jpsoft.smart.config.WxConfig;
+import com.jpsoft.smart.modules.base.dao.*;
+import com.jpsoft.smart.modules.base.entity.CompanyInfo;
+import com.jpsoft.smart.modules.base.entity.DeviceInfo;
 import com.jpsoft.smart.modules.base.entity.PersonDeviceLog;
+import com.jpsoft.smart.modules.base.entity.PersonInfo;
 import com.jpsoft.smart.modules.base.service.PersonDeviceLogService;
 import com.jpsoft.smart.modules.common.dto.Sort;
-import com.jpsoft.smart.modules.common.utils.BASE64DecodedMultipartFile;
+import com.jpsoft.smart.modules.common.utils.*;
 import com.jpsoft.smart.modules.common.utils.Base64;
-import com.jpsoft.smart.modules.common.utils.LApiUtil;
-import com.jpsoft.smart.modules.common.utils.OSSUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
@@ -27,10 +29,7 @@ import javax.xml.crypto.Data;
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.math.BigDecimal;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
+import java.util.*;
 
 /**
  * @author 墨鱼_mo
@@ -38,34 +37,35 @@ import java.util.UUID;
  */
 @Slf4j
 @Transactional
-@Component(value="personDeviceLogService")
+@Component(value = "personDeviceLogService")
 public class PersonDeviceLogServiceImpl implements PersonDeviceLogService {
 
     @Autowired
     private OSSConfig ossConfig;
 
-    @Resource(name="personDeviceLogDAO")
+    @Autowired
+    private WxConfig wxConfig;
+
+
+
+    @Resource(name = "personDeviceLogDAO")
     private PersonDeviceLogDAO personDeviceLogDAO;
 
-    /*@Override
-    public void deviceInsertLog(String deviceNo, BigDecimal temperature, JSONObject faceImageJson, JSONObject libMatInfoListJson, JSONObject matchPersonInfo, Data data) {
-        PersonDeviceLog personDeviceLog = new PersonDeviceLog();
-        personDeviceLog.setId(UUID.randomUUID().toString());
-        personDeviceLog.setDeviceNo(deviceNo);
-        personDeviceLog.setPersonId(matchPersonInfo.getStr("PersonCode"));
-        personDeviceLog.setTemperature(temperature);
-        personDeviceLog.setMatchStatus(libMatInfoListJson.getInt("MatchStatus"));
-        personDeviceLog.setMatchMsg(IApiUtil.getMatchMsg(libMatInfoListJson.getInt("MatchStatus")));
-        personDeviceLog.setMatchFaceId(libMatInfoListJson.getInt("MatchFaceID"));
-        personDeviceLog.setRecordTime(data);
+    @Resource(name = "personInfoDAO")
+    private PersonInfoDAO personInfoDAO;
+
+    @Resource(name = "companyInfoDAO")
+    private CompanyInfoDAO companyInfoDAO;
+
+    @Resource(name = "deviceInfoDAO")
+    private DeviceInfoDAO deviceInfoDAO;
 
 
-    }*/
 
     @Override
-    public void deviceInsertLog(String deviceNo, BigDecimal temperature, JSONObject faceImageJson, JSONObject libMatInfoListJson, JSONObject matchPersonInfo, Date date)  {
+    public void deviceInsertLog(String deviceNo, BigDecimal temperature, JSONObject faceImageJson, JSONObject libMatInfoListJson, JSONObject matchPersonInfo, Date date) {
         String retFileUrl = "";
-        try{
+        try {
 
             BASE64Decoder decoder = new BASE64Decoder();
 
@@ -80,43 +80,24 @@ public class PersonDeviceLogServiceImpl implements PersonDeviceLogService {
             ByteArrayInputStream inputStream = new ByteArrayInputStream(imgData);
 
 
-
-             retFileUrl = OSSUtil.upload(ossConfig,"/devicePersonLog",faceImageJson.getStr("Name"), inputStream);
-        }catch (Exception e){
-            e.printStackTrace();
+            retFileUrl = OSSUtil.upload(ossConfig, "/devicePersonLog", faceImageJson.getStr("Name"), inputStream);
+        } catch (Exception e) {
+            log.error("保存图片路径错误" + e.getMessage());
+            //  e.printStackTrace();
         }
 
 
         PersonDeviceLog personDeviceLog = new PersonDeviceLog();
         personDeviceLog.setId(UUID.randomUUID().toString());
         personDeviceLog.setDeviceNo(deviceNo);
-        personDeviceLog.setPersonId(LApiUtil.getPersonCode(libMatInfoListJson,matchPersonInfo));
-        /*if (!libMatInfoListJson.getStr("MatchPersonID").equals("0") && StringUtils.isNotBlank(matchPersonInfo.getStr("PersonCode"))){
-            personDeviceLog.setPersonId(matchPersonInfo.getInt("PersonCode"));
-        }else if (!libMatInfoListJson.getStr("MatchPersonID").equals("0") && StringUtils.isBlank(matchPersonInfo.getStr("PersonCode")) && StringUtils.isNotBlank(matchPersonInfo.getStr("PersonName"))){
-            String personName = matchPersonInfo.getStr("PersonName");
-            if (personName.contains("_")){
-                log.warn(personName+"校验成功但未找到personCode");
-                Integer personId =Integer.valueOf(personName.substring(personName.indexOf("_")+1)) ;
-                personDeviceLog.setPersonId(personId);
-            }else {
-                log.warn(personName+"校验成功但姓名中无personCode后缀");
-                personDeviceLog.setPersonId(0);
-            }
-
-
-        }
-
-        else {
-            personDeviceLog.setPersonId(0);
-        }*/
+        personDeviceLog.setPersonId(LApiUtil.getPersonCode(libMatInfoListJson, matchPersonInfo));
 
         personDeviceLog.setTemperature(temperature);
-        if (StringUtils.isNotBlank(libMatInfoListJson.getStr("MatchStatus"))){
+        if (StringUtils.isNotBlank(libMatInfoListJson.getStr("MatchStatus"))) {
             personDeviceLog.setMatchStatus(libMatInfoListJson.getInt("MatchStatus"));
             personDeviceLog.setMatchMsg(LApiUtil.getMatchMsg(libMatInfoListJson.getInt("MatchStatus")));
             personDeviceLog.setMatchFaceId(libMatInfoListJson.getInt("MatchFaceID"));
-        }else {
+        } else {
             personDeviceLog.setMatchStatus(0);
             personDeviceLog.setMatchFaceId(0);
         }
@@ -126,12 +107,55 @@ public class PersonDeviceLogServiceImpl implements PersonDeviceLogService {
         personDeviceLog.setCreateTime(new Date());
         personDeviceLog.setFaceImage(retFileUrl);
         personDeviceLogDAO.insert(personDeviceLog);
+
+        //人员识别成功,温度超过37.3时发送模板消息给监管者
+        if (personDeviceLog.getPersonId() != 0) {
+            if (temperature.compareTo(new BigDecimal(37.3)) == 1) {
+                sendTemperatureAlarmsyncTask(personDeviceLog);
+            }
+
+        }
+
+    }
+
+    @Async
+    public void sendTemperatureAlarmsyncTask(PersonDeviceLog personDeviceLog) {
+
+        try {
+            Map<String, Object> searchParams = new HashMap<>();
+            searchParams.put("deviceNo",personDeviceLog.getDeviceNo() );
+            searchParams.put("personId", personDeviceLog.getPersonId());
+            searchParams.put("minTemperature", new BigDecimal(37.3));
+            searchParams.put("beginTime",new Date(personDeviceLog.getRecordTime().getTime() - 300000));
+            List<Sort> sortList = new ArrayList<>();
+            sortList.add(new Sort("record_time","desc"));
+            List<PersonDeviceLog> personDeviceLogList = personDeviceLogDAO.search(searchParams,sortList);
+            if (personDeviceLogList.size()>=3){
+                PersonInfo personInfo =  personInfoDAO.get(personDeviceLog.getPersonId().longValue());
+                if (personInfo == null){
+                    throw new Exception(personDeviceLog.getPersonId()+"对应的人员不存在");
+                }
+                CompanyInfo companyInfo = companyInfoDAO.get(personInfo.getCompanyId());
+                if (companyInfo == null){
+                    throw new Exception(personInfo.getName()+"对应的公司不存在");
+                }
+                DeviceInfo deviceInfo = deviceInfoDAO.findByDeviceNo(personDeviceLog.getDeviceNo());
+                if (deviceInfo == null){
+                    throw new Exception(personDeviceLog.getDeviceNo()+"设备不存在");
+                }
+                WechatMessageUtil.sendTemperatureAlarmInfo("oLowyuBJaAJvuOkzrEm5078SJQDA",companyInfo.getName()+"_"+deviceInfo.getAliasName(),wxConfig.getAppId(),wxConfig.getAppSecret(),"Mg9Ldk_kaoHAUwXFHEatrGugTlOz3yrMmMk7VoBca4M");
+            }
+
+        } catch (Exception e) {
+            log.error(e.getMessage());
+        }
+
     }
 
     @Override
-    public Page<PersonDeviceLog> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize,boolean count,List<Sort> sortList) {
-        Page<PersonDeviceLog> page = PageHelper.startPage(pageNumber,pageSize,count).doSelectPage(()->{
-            personDeviceLogDAO.search(searchParams,sortList);
+    public Page<PersonDeviceLog> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize, boolean count, List<Sort> sortList) {
+        Page<PersonDeviceLog> page = PageHelper.startPage(pageNumber, pageSize, count).doSelectPage(() -> {
+            personDeviceLogDAO.search(searchParams, sortList);
         });
 
         return page;
@@ -139,16 +163,16 @@ public class PersonDeviceLogServiceImpl implements PersonDeviceLogService {
 
 
     @Override
-    public Page<PersonDeviceLog> simplePageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize,boolean count,List<Sort> sortList) {
-        Page<PersonDeviceLog> page = PageHelper.startPage(pageNumber,pageSize,count).doSelectPage(()->{
-            personDeviceLogDAO.simpleSearch(searchParams,sortList);
+    public Page<PersonDeviceLog> simplePageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize, boolean count, List<Sort> sortList) {
+        Page<PersonDeviceLog> page = PageHelper.startPage(pageNumber, pageSize, count).doSelectPage(() -> {
+            personDeviceLogDAO.simpleSearch(searchParams, sortList);
         });
 
         return page;
     }
 
     @Override
-    public List<PersonDeviceLog> findByPersonAndDate(Long personId,String startDate,String endDate){
-        return personDeviceLogDAO.findByPersonAndDate(personId,startDate,endDate);
+    public List<PersonDeviceLog> findByPersonAndDate(Long personId, String startDate, String endDate) {
+        return personDeviceLogDAO.findByPersonAndDate(personId, startDate, endDate);
     }
 }

+ 107 - 54
common/src/main/java/com/jpsoft/smart/modules/common/utils/WechatMessageUtil.java

@@ -1,5 +1,6 @@
 package com.jpsoft.smart.modules.common.utils;
 
+import cn.hutool.core.date.DateUtil;
 import com.jpsoft.smart.modules.wechat.entity.AccessToken;
 import net.sf.json.JSONObject;
 import org.apache.commons.lang3.StringUtils;
@@ -14,29 +15,31 @@ import java.util.regex.Pattern;
 public class WechatMessageUtil {
 
 
-	
+
 	public static final String send_template = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";
-	
+
 
 
 
 
 	private static final String TEMPLATE_REDIRECT_PRE_URL = "http://wuyeopenlocktest-wecat.sudaonline.net";
 
+	private static final String TEMPERATURE_ALARM_PRE_URL = "http://wisdomhousewechat.sudaonline.net/123.jpg";
+
+
+
 
-	
-	
 
 	public static boolean sendBillInfo(String fullName, BigDecimal amount, String openId,
 									   String detailAmount, String propertyName, String billRemark, String billDetailId,String billTemplateId,String appId,String appSecret) {
 
 
 		JSONObject sendData = new JSONObject();
-		
+
 		JSONObject first = new JSONObject();
 		first.put("value", "您有一个新的账单,点击查看详情!");
 		first.put("color", "#FF0000");
-		
+
 		JSONObject keyword1 = new JSONObject();
 		keyword1.put("value", fullName);
 		keyword1.put("color", "#173177");
@@ -52,40 +55,40 @@ public class WechatMessageUtil {
 
 
 		String remarkStr = "账单来源:" + propertyName;
-		
+
 		if(StringUtils.isNotBlank(billRemark)){
 			remarkStr = remarkStr + "\n备注:"+ billRemark +"";
 		}
-		
+
 		JSONObject remark = new JSONObject();
 		remark.put("value", remarkStr);
 		remark.put("color", "#173177");
-		
+
 		sendData.put("first", first);
 		sendData.put("keyword1", keyword1);
 		sendData.put("keyword2", keyword2);
 		sendData.put("keyword3", keyword3);
 		sendData.put("remark", remark);
-		
+
 		//w8Zk_VQMFIEVSIBPZid7zSrvHmBdrgnqF76u8PLCZEs cs
 		boolean ret = sendTemplate(sendData, appId,appSecret,billTemplateId,openId, TEMPLATE_REDIRECT_PRE_URL + "/billDetail/" + billDetailId +"payTime=0&payType=bill");
-				
+
 		return ret;
 	}
-	
+
 	//
 	public static boolean sendBillPayedMessage(String fullName,String feeName,Date createTime,BigDecimal amount,String openId,String billDetailId,String payedTemplateId,String appId,String appSecret) {
 
 		JSONObject sendData = new JSONObject();
-		
+
 		JSONObject first = new JSONObject();
 		first.put("value", "账单支付成功!");
 		first.put("color", "#FF0000");
-		
+
 		JSONObject keyword1 = new JSONObject();
 		keyword1.put("value", fullName);
 		keyword1.put("color", "#173177");
-		
+
 		JSONObject keyword2 = new JSONObject();
 		keyword2.put("value", feeName);
 		keyword2.put("color", "#173177");
@@ -96,35 +99,35 @@ public class WechatMessageUtil {
 		JSONObject keyword3 = new JSONObject();
 		keyword3.put("value", sdf.format(createTime));
 		keyword3.put("color", "#173177");
-		
+
 		JSONObject keyword4 = new JSONObject();
-		
+
 		keyword4.put("value", "¥" + amount.setScale(2) + "元");
 		keyword4.put("color", "#173177");
-		
 
-		
 
-		
+
+
+
 		String remarkStr = "感谢您的支持,点击查看缴费详情";
-		
+
 		JSONObject remark = new JSONObject();
 		remark.put("value", remarkStr);
 		remark.put("color", "#173177");
-		
+
 		sendData.put("first", first);
 		sendData.put("keyword1", keyword1);
 		sendData.put("keyword2", keyword2);
 		sendData.put("keyword3", keyword3);
 		sendData.put("keyword4", keyword4);
 		sendData.put("remark", remark);
-		
+
 		//w8Zk_VQMFIEVSIBPZid7zSrvHmBdrgnqF76u8PLCZEs cs
 		boolean ret = sendTemplate(sendData,appId,appSecret,payedTemplateId ,openId,TEMPLATE_REDIRECT_PRE_URL + "/billDetail/" + billDetailId +"payTime=1&payType=bill");
-				
+
 		return ret;
 	}
-	
+
 	//
 	public static boolean sendScanPayedMessage(String fullName,String feeName,Date createTime,BigDecimal amount,String openId,String independentPayId,String payedTemplateId,String appId,String appSecret) {
 
@@ -175,7 +178,7 @@ public class WechatMessageUtil {
 
 		return ret;
 	}
-	
+
 	/**
 	 * 发送通知信息
 	 * @param noticeName 通知名称名称
@@ -191,36 +194,36 @@ public class WechatMessageUtil {
 		JSONObject first = new JSONObject();
 		first.put("value", "您好,园区通知如下:");
 		first.put("color", "#173177");
-		
+
 		JSONObject keyword1 = new JSONObject();
 		keyword1.put("value", noticeName);
 		keyword1.put("color", "#173177");
-		
 
-		
+
+
 		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
-		
+
 		JSONObject keyword2 = new JSONObject();
 		keyword2.put("value", sdf.format(new Date()));
 		keyword2.put("color", "#173177");
-		
+
 		JSONObject keyword3 = new JSONObject();
 		keyword3.put("value", finallyContent);
 		keyword3.put("color", "#173177");
-		
+
 		JSONObject remark = new JSONObject();
 		remark.put("value", "点击查看详情");
 		remark.put("color", "#173177");
-		
+
 		sendData.put("first", first);
 		sendData.put("keyword1", keyword1);
 		sendData.put("keyword2", keyword2);
 		sendData.put("keyword3", keyword3);
 		sendData.put("remark", remark);
-		
+
 		//noticeDetailId
 		boolean ret = sendTemplate(sendData,appId,appSecret,noticeTemplateId ,openId, TEMPLATE_REDIRECT_PRE_URL + "/#/noticeInfo/" + noticeDetailId);
-				
+
 		return ret;
 	}
 
@@ -267,7 +270,7 @@ public class WechatMessageUtil {
 		sendData.put("remark", remark);
 
 		//noticeDetailId
-		boolean ret = sendTemplate(sendData,appId,appSecret,noticeTemplateId ,openId, TEMPLATE_REDIRECT_PRE_URL + "/#/noticeInfo/" + noticeDetailId);
+		boolean ret = sendTemplate(sendData,appId,appSecret,noticeTemplateId ,openId, TEMPERATURE_ALARM_PRE_URL + "/#/noticeInfo/" + noticeDetailId);
 
 		return ret;
 	}
@@ -312,7 +315,7 @@ public class WechatMessageUtil {
 
 		return ret;
 	}
-	
+
 	/**
 	 * 微信发送模版
 	 * @param sendData 发送数据
@@ -322,39 +325,39 @@ public class WechatMessageUtil {
 	 * @return
 	 */
 	private static boolean sendTemplate(JSONObject sendData,String appId,String appSecret,String templateId,String openId,String url){
-		
+
 		boolean result = false;
 
 
 		AccessToken accessToken = WeixinUtil.getAccessToken(appId, appSecret);
-		
+
 		if(accessToken != null){
 			//发送模版内容
 			String sendTemplateUrl = send_template.replace("ACCESS_TOKEN", accessToken.getToken());
-			
+
 			JSONObject sendTemplateData = new JSONObject();
-			
+
 			sendTemplateData.put("touser", openId);
 			sendTemplateData.put("template_id", templateId);
 			sendTemplateData.put("url", url);
 			sendTemplateData.put("data", sendData);
-			
+
 			System.out.println("模版发送Id>>>>" + templateId + ">>>模版发送数据>>>>>" + sendTemplateData.toString());
-			
+
 			String sendTemplateRet =  HttpConnectionUtil.requestByPost(sendTemplateUrl, sendTemplateData.toString());
-			
+
 			System.out.println("模版发送返回数据>>>>>" + sendTemplateRet);
-			
+
 			if(StringUtils.isNotBlank(sendTemplateRet)){
 				JSONObject sendTemplateJson = JSONObject.fromObject(sendTemplateRet);
-				
+
 				if("0".equals(sendTemplateJson.getString("errcode"))){
 					//发送成功
 					result = true;
 				}
 			}
 		}
-		
+
 		return result;
 	}
 
@@ -371,18 +374,67 @@ public class WechatMessageUtil {
 
 		return finallyContent;
 	}
-	
 
-		
+	/**
+	 * 发送温度报警模板
+	 * @param openId
+	 * @param place
+	 * @param appId
+	 * @param appSecret
+	 * @param templateId
+	 * @return
+	 */
+	public static boolean sendTemperatureAlarmInfo( String openId,String place,String appId,String appSecret,String templateId) {
+
+
+		JSONObject sendData = new JSONObject();
+
+		JSONObject first = new JSONObject();
+		first.put("value", "疑似疫情报警!");
+		first.put("color", "#FF0000");
+
+		JSONObject keyword1 = new JSONObject();
+		keyword1.put("value", DateUtil.format(new Date(), "yyyy-MM-dd HH:mm"));
+		keyword1.put("color", "#173177");
+
+		JSONObject keyword2 = new JSONObject();
+		keyword2.put("value", place);
+		keyword2.put("color", "#173177");
+
+
+
+
+
+		String remarkStr = "发现有一例体温异常情况,点击查看详情";
+
+
+
+		JSONObject remark = new JSONObject();
+		remark.put("value", remarkStr);
+		remark.put("color", "#173177");
+
+		sendData.put("first", first);
+		sendData.put("keyword1", keyword1);
+		sendData.put("keyword2", keyword2);
+		sendData.put("remark", remark);
+
+		//w8Zk_VQMFIEVSIBPZid7zSrvHmBdrgnqF76u8PLCZEs cs
+		boolean ret = sendTemplate(sendData, appId,appSecret,templateId,openId, TEMPERATURE_ALARM_PRE_URL);
+
+		return ret;
+	}
+
+
+
 	public static void main(String[] args) {
 		/*AccessToken at = WeixinUtil.getAccessToken(APP_ID, APP_SECRET,"061iw9gy1sZ1dg09dqhy1ae3gy1iw9gq");
-		
+
 		System.out.println(at.getOpenid());*/
-		
+
 		/*for (int i = 0; i < 1; i++) {
 			doorMessage("1111", 2,"2018-09-22 09:00-12:00", 1, "2222222", "3333333", "oiFbN0p9jKphExeGIa3HtyL9HjqM");
 		}*/
-		
+
 		//orderConfirmMessage("12312321312", 1111, DEFAULT_OPEN_ID);
 		//sendBillInfo("测试", "测sendNoticeMessage试", "荆鹏创业", "张三", new BigDecimal(1), "o64fbt6TTUcqLC_tyVJ60I5kzWVc", "1111", new Date());
 		//sendBillPayedMessage("测试", "荆鹏创业", "张三", new BigDecimal(1), "o64fbt6TTUcqLC_tyVJ60I5kzWVc", "11111", new Date());
@@ -396,11 +448,12 @@ public class WechatMessageUtil {
 
 		//sendAlarmNoticeMessage("周界入侵警报", "周界入侵,目标ID:1419,区域范围:(0.327,0.698)(0.674,0.936)(0.67,0.985)(0.352,0.973)", "oHjCawgwCGen5k1-hAsimdEX5lZo", "","8dpP8XM1XaiiIByXiuAeFIZeNjEow1AleG_h8O2xyVA","wx7e70eb62a8459869","909d17e353268da57c4f18cc09798049");
 		//sendNoticeMessage("测试", "sdfsdfasfasdfafasdfasdf", "oHjCawgwCGen5k1-hAsimdEX5lZo", "2222","vsw6sb9lMA3bcsE8MdeaGENvI1HSUy2ht9B8hS3jEzA","wx7e70eb62a8459869","909d17e353268da57c4f18cc09798049");
+		sendTemperatureAlarmInfo("oLowyuOQ9ULF3LUGt6h3fTrsnbVE","荆鹏软件_门房考勤机","wx0b3c41a903053808","43557bd62f77b0c3d6670e991872f0e7","Mg9Ldk_kaoHAUwXFHEatrGugTlOz3yrMmMk7VoBca4M");
 		getContent("<p>内容</p>");
 
 	}
 
 
-	
-	
+
+
 }

+ 6 - 0
lapi/src/main/java/com/jpsoft/smart/lapi/handler/PersonVerificationHandler.java

@@ -89,8 +89,10 @@ public class PersonVerificationHandler extends SimpleChannelInboundHandler<Perso
         log.warn(map.toString());
 
 
+        //记录人员记录
         personDeviceLogService.deviceInsertLog(deviceNo,temperature,faceImageJson,libMatInfoListJson,matchPersonInfo,date);
 
+        //记录人员过滤记录
         personDeviceFilterLogService.deviceInsertFilterLog(deviceNo,temperature,faceImageJson,libMatInfoListJson,matchPersonInfo,date);
 
 
@@ -98,5 +100,9 @@ public class PersonVerificationHandler extends SimpleChannelInboundHandler<Perso
 
 
 
+
+
+
+
     }
 }