|
|
@@ -94,7 +94,7 @@ public class AccessControlServiceImpl implements AccessControlService{
|
|
|
record.setRecord_type(type);
|
|
|
record.setStu_id(studentInfo.getStuId());
|
|
|
record.setStu_number(studentInfo.getStuNumber());
|
|
|
- record.setRecord_name(studentInfo.getStuName() + (type == 1 ? "进人" : "出去"));
|
|
|
+ record.setRecord_name(studentInfo.getStuName() + (type == 1 ? "进入" : "出去"));
|
|
|
accessControlRecordMapper.insertRecordSelective(record);
|
|
|
/**
|
|
|
* 3、推送消息到消息服务器(微信服务监听此消息发送微信消息)
|
|
|
@@ -104,10 +104,10 @@ public class AccessControlServiceImpl implements AccessControlService{
|
|
|
msg.setSecret(studentInfo.getSecret());
|
|
|
msg.setTouser(studentInfo.getOpenId());
|
|
|
msg.setTemplateId(accessControlTemplateId);
|
|
|
- msg.setTitle("出入校提醒");
|
|
|
+ msg.setTitle((type == 1 ? "入" : "出") + "校提醒");
|
|
|
msg.setKeyword1(studentInfo.getStuName());
|
|
|
msg.setKeyword2(DateUtils.format());
|
|
|
- msg.setRemark("您好! 你的孩子: " + studentInfo.getStuName() + (type == 1 ? " 进人" : " 出去") + "学校");
|
|
|
+ msg.setRemark("您好! 你的孩子: " + studentInfo.getStuName() + (type == 1 ? " 进入" : " 离开") + "学校");
|
|
|
wechatApi.sendMsg(msg);
|
|
|
}
|
|
|
|