From a6669ecb53d5bcb09177a85dbccc81d1469a1486 Mon Sep 17 00:00:00 2001 From: zhangheng <3226558941@qq.com> Date: Thu, 11 Jul 2024 09:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=BA=93=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/manage/wechattemplate/WechatTemplateMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postdischarge-manage/src/main/resources/mapper/manage/wechattemplate/WechatTemplateMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/wechattemplate/WechatTemplateMapper.xml index 654cb110..5a809e57 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/wechattemplate/WechatTemplateMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/wechattemplate/WechatTemplateMapper.xml @@ -127,7 +127,7 @@ wt.template_source, wt.template_sort, wt.template_remark, - wtst.id AS taskId, + IFNULL(MAX(wtst.id), 0) AS taskId, GROUP_CONCAT(wtst.suit_task_type_name SEPARATOR ',') as suitTaskTypeName from wechat_template wt left join wechat_template_suit_task wtst on wt.id = wtst.wechat_template_id