From ad81eebcc8d98ad2c0bf85e2125f363e789fa3c7 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 08 二月 2021 16:36:22 +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