From f3bb76fa668530d5613700e57a30e6c7394d5224 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期四, 06 三月 2025 16:50:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- basic-server/src/main/resources/mapper/CertificationMapper.xml | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/basic-server/src/main/resources/mapper/CertificationMapper.xml b/basic-server/src/main/resources/mapper/CertificationMapper.xml index 4926d05..bb4ab06 100644 --- a/basic-server/src/main/resources/mapper/CertificationMapper.xml +++ b/basic-server/src/main/resources/mapper/CertificationMapper.xml @@ -3,17 +3,17 @@ <mapper namespace="com.ruoyi.basic.mapper.CertificationMapper"> <select id="getCertificationDetail" resultType="com.ruoyi.basic.pojo.Certification"> select b.* - from ( select a.`name`, a.`code`,a.organization,a.explanation,a.first_issuance_date,a.latest_issuance_date,c.expire_time FROM - (SELECT id,name,MIN(date_of_issuance) AS first_issuance_date, - MAX(date_of_issuance) AS latest_issuance_date, - c.`code`,c.organization,c.explanation - FROM - certification c + from ( select a.id, a.`name`, a.`code`,a.organization,a.explanation,a.first_issuance_date,a.latest_issuance_date,c.expire_time FROM + (SELECT id,name,MIN(date_of_issuance) AS first_issuance_date, + MAX(date_of_issuance) AS latest_issuance_date, + c.`code`,c.organization,c.explanation + FROM + certification c <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> - GROUP BY - name) a left join certification c on a.id=c.id + GROUP BY + name) a left join certification c on a.id=c.id ) b </select> </mapper> -- Gitblit v1.9.3