From b9c32fda39d66a4532ac3e06d0ce139d549535ab Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 24 二月 2021 10:14:47 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/MatMapper.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/MatMapper.xml b/src/main/resources/mapper/MatMapper.xml
index d8a3053..d34f6f3 100644
--- a/src/main/resources/mapper/MatMapper.xml
+++ b/src/main/resources/mapper/MatMapper.xml
@@ -31,4 +31,14 @@
</resultMap>
+ <select id="listByPageByArea" resultMap="BaseResultMap">
+ SELECT
+ mm.*
+ FROM man_mat mm
+ LEFT JOIN man_tag mt ON mm.`tag_id` = mt.`id`
+ WHERE 1=1
+ AND (FIND_IN_SET(#{tagId}, mt.`path`) OR mt.`id` = #{tagId})
+ ORDER BY mm.create_time DESC
+ </select>
+
</mapper>
--
Gitblit v1.9.1