From a806fb3336a57791a87a382442e338c5bb370705 Mon Sep 17 00:00:00 2001 From: "OUMYYE\\Administrator" Date: Tue, 27 Feb 2024 14:49:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/biutag/lan/service/DataScreenService.java | 4 ++-- mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java b/mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java index 421149c..ea5c97e 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java @@ -269,14 +269,14 @@ public class DataScreenService extends ServiceImpl { } //获取主单位签收时长 Map signMap = baseMapper.getDuration(mailDetail.getId(), FlowNodeEnum.SECOND_SIGN.getKey()); - if(signMap.size()>0) { + if(StringUtils.isNotNull(signMap) && signMap.size()>0 ) { mailDetail.setSignDuration(signMap.get("consuming_time")); mailDetail.setSignDuration(signMap.get("limited_time")); mailDetail.setSignDurationStr(TimeUtils.secondsToTime(signMap.get("consuming_time"))); } //获取三级机构联系群众时长 Map contactMap = baseMapper.getDuration(mailDetail.getId(), FlowNodeEnum.CONTACT_WRITER.getKey()); - if(contactMap.size()>0) { + if(StringUtils.isNotNull(contactMap) && contactMap.size()>0) { mailDetail.setContactMassesDuration(contactMap.get("consuming_time")); mailDetail.setContactLimitedDuration(contactMap.get("limited_time")); mailDetail.setContactMassesDurationStr(TimeUtils.secondsToTime(contactMap.get("consuming_time"))); diff --git a/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml b/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml index ae3f808..44d4a31 100644 --- a/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml +++ b/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml @@ -220,6 +220,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where 1=1 and mail_id=#{mailId} and flow_key =#{flowKey} + order by create_time desc limit 1