From bdcd1b7aa9f24756b022392abddc88f38ffa46e8 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Tue, 3 Dec 2024 13:39:59 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=A1=88=E4=BB=B6=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=BF=94=E5=9B=9E=E7=BB=93=E6=9E=9C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=97=A5=E6=9C=9F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/supervision/police/vo/ConversationResVo.java | 6 ++++++ src/main/resources/mapper/ConversationMapper.xml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/supervision/police/vo/ConversationResVo.java b/src/main/java/com/supervision/police/vo/ConversationResVo.java index 3fabd31..bac6ebc 100644 --- a/src/main/java/com/supervision/police/vo/ConversationResVo.java +++ b/src/main/java/com/supervision/police/vo/ConversationResVo.java @@ -30,4 +30,10 @@ public class ConversationResVo { */ private String caseActorId; + + /** + * 创建日期 + */ + private String createDay; + } diff --git a/src/main/resources/mapper/ConversationMapper.xml b/src/main/resources/mapper/ConversationMapper.xml index 0b29012..3de022f 100644 --- a/src/main/resources/mapper/ConversationMapper.xml +++ b/src/main/resources/mapper/ConversationMapper.xml @@ -24,7 +24,8 @@ mc.case_name as caseName, mc.id as caseId, cp.id as caseActorId, - cp.name as caseActor + cp.name as caseActor, + DATE_FORMAT(c.create_time, '%m-%d') as createDay from conversation c left join model_case mc on c.case_id = mc.id left join case_person cp on (c.case_id = cp.case_id and cp.case_actor_flag = 1 and cp.role_code = '1')