From 79b026c753c25f998776d8a6210fc6afab97e647 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 16 十月 2025 09:14:35 +0800
Subject: [PATCH] 统计

---
 framework/src/main/resources/mapper/lmk/GoodsCustomizeTemplateMapper.xml |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/framework/src/main/resources/mapper/lmk/GoodsCustomizeTemplateMapper.xml b/framework/src/main/resources/mapper/lmk/GoodsCustomizeTemplateMapper.xml
index 3ea3f8f..470805f 100644
--- a/framework/src/main/resources/mapper/lmk/GoodsCustomizeTemplateMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/GoodsCustomizeTemplateMapper.xml
@@ -37,5 +37,37 @@
             AND LGCT.status = #{query.status}
         </if>
     </select>
+    <resultMap id="getCustomizeTemplateMap" type="cn.lili.modules.lmk.domain.vo.CustomizeTemplateVO">
+        <id property="id" column="id"/>
+        <result property="name" column="template_name"/>
+        <collection property="templateImgs" ofType="cn.lili.modules.lmk.domain.entity.TemplateImgs">
+            <id property="id" column="imgId"/>
+            <result property="imgUrl" column="img_url"/>
+        </collection>
+        <collection property="templateConstomizeTitles" ofType="cn.lili.modules.lmk.domain.entity.TemplateConstomizeTitle">
+            <id property="id" column="titleId"/>
+            <result property="contentType" column="content_type"/>
+            <result property="templateTitle" column="template_title"/>
+        </collection>
+    </resultMap>
+    <select id="getCustomizeTemplate" resultMap="getCustomizeTemplateMap">
+        SELECT
+            lgct.id,
+            lgct.template_name,
+            lti.id imgId,
+            lti.img_url,
+            ltct.id titleId,
+            ltct.template_title,
+            ltct.content_type
+        FROM
+            lmk_goods_customize_template lgct
+                JOIN lmk_template_imgs lti ON lti.template_id = lgct.id
+                JOIN lmk_template_constomize_title ltct ON ltct.template_id = lgct.id
+        WHERE
+          lgct.id = #{id}
+          AND lgct.delete_flag = 0
+          AND lti.delete_flag = 0
+          AND ltct.delete_flag = 0
+    </select>
 
 </mapper>

--
Gitblit v1.8.0