Commit ba959d4f authored by 罗可心's avatar 罗可心 😕

Merge remote-tracking branch 'origin/import' into import

parents 9e8f7ba5 94882dc0
...@@ -1186,15 +1186,15 @@ public class JieLinkServiceImpl implements IJieLinkService { ...@@ -1186,15 +1186,15 @@ public class JieLinkServiceImpl implements IJieLinkService {
messageInstance.setTitle("访客进入通知"); messageInstance.setTitle("访客进入通知");
mes = "已进入行政办公楼"; mes = "已进入行政办公楼";
} }
if ("1".equals(deviceInfo.getDeviceType())) {
for (Integer id : visitId) { for (Integer id : visitId) {
VisitInfoMation inf = visitInfomationRepository.selectById(id); VisitInfoMation inf = visitInfomationRepository.selectById(id);
//查询当天是否已经发送过消息,每天只发一次 //查询当天是否已经发送过消息,每天只发一次
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd"); MessageInstance instance = new MessageInstance();
QueryWrapper<MessageInstance> wrapper = new QueryWrapper(); instance.setRecipientId(BigInteger.valueOf(inf.getUserId()));
wrapper.eq("push_time", sf.format(new Date())); instance.setTitle(messageInstance.getTitle());
wrapper.eq("recipient_id", inf.getUserId()); instance.setPushTime(new Date());
wrapper.eq("title", messageInstance.getTitle()); List<MessageInstance> list = messageInstanceRepository.queryMessageInstances(instance);
List<MessageInstance> list = messageInstanceRepository.selectList(wrapper);
if (list.isEmpty()) { if (list.isEmpty()) {
messageInstance.setContent("您邀请的访客" + sysUserData.getName() + mes + messageInstance.setContent("您邀请的访客" + sysUserData.getName() + mes +
" <a href=\"/pages/init/init?flag=2&id=" + id + "\" style=\"color: #3497CE;\">点击查看</a>"); " <a href=\"/pages/init/init?flag=2&id=" + id + "\" style=\"color: #3497CE;\">点击查看</a>");
...@@ -1222,6 +1222,7 @@ public class JieLinkServiceImpl implements IJieLinkService { ...@@ -1222,6 +1222,7 @@ public class JieLinkServiceImpl implements IJieLinkService {
} }
} }
} }
}
@Override @Override
public void syncDeviceInfo() { public void syncDeviceInfo() {
......
...@@ -137,7 +137,7 @@ syncSchedule: ...@@ -137,7 +137,7 @@ syncSchedule:
config: false config: false
message: message:
config: false config: true
dahua: dahua:
videoStatus: false videoStatus: false
\ No newline at end of file
...@@ -137,7 +137,7 @@ syncSchedule: ...@@ -137,7 +137,7 @@ syncSchedule:
config: true config: true
message: message:
config: false config: true
dahua: dahua:
videoStatus: false videoStatus: false
\ No newline at end of file
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
where dr.del_flag = '0' where dr.del_flag = '0'
and dr.tenement_type = '0' and dr.tenement_type = '0'
and dr.record_type = '1' and dr.record_type = '1'
and dr.source = '1'
<if test="attendance.beginTime !=null and attendance.endTime != null "> <if test="attendance.beginTime !=null and attendance.endTime != null ">
and dr.cross_time between #{attendance.beginTime} and #{attendance.endTime} and dr.cross_time between #{attendance.beginTime} and #{attendance.endTime}
</if> </if>
......
...@@ -31,6 +31,12 @@ ...@@ -31,6 +31,12 @@
<if test="entity.flag !=null and entity.flag != '' "> <if test="entity.flag !=null and entity.flag != '' ">
and read_flag = #{entity.flag} and read_flag = #{entity.flag}
</if> </if>
<if test="entity.title !=null">
and title = #{entity.title}
</if>
<if test="entity.pushTime !=null">
and DATE_FORMAT(push_time,'%y%m%d') = DATE_FORMAT( #{entity.pushTime},'%y%m%d')
</if>
</select> </select>
<select id="queryMessageInstancesPaged" resultMap="BaseResultMap"> <select id="queryMessageInstancesPaged" resultMap="BaseResultMap">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment