From 77d7257c02fc811a53b8d9207e4239f69c8a600c Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 15 六月 2023 14:33:36 +0800 Subject: [PATCH] 题目和标签代码提交 --- smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml index b417d17..2b532bf 100644 --- a/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml @@ -17,6 +17,7 @@ <result property="isupload" column="isupload"/> <result property="uploadTime" column="upload_time"/> <result property="patid" column="patid"/> + <result property="tagname" column="tagname"/> </resultMap> <sql id="selectPatArchivetagVo"> @@ -48,6 +49,34 @@ </where> </select> + + <select id="selectPatArchivetagAndBaseTagList" parameterType="com.smartor.domain.PatArchivetag" + resultMap="PatArchivetagResult"> + select a.id, + a.tagcategoryid, + a.tagid, + a.orgid, + a. del_flag, + a.update_by, + a.update_time, + a.create_by, + a.create_time, + a.isupload, + a.upload_time, + a.patid, + b.tagname + from pat_archivetag a ,base_tag b + <where> + a.tagid=b.tagid + <if test="tagcategoryid != null ">and a.tagcategoryid = #{tagcategoryid}</if> + <if test="tagid != null ">and b.tagid = #{tagid}</if> + <if test="orgid != null and orgid != ''">and a.orgid = #{orgid}</if> + <if test="isupload != null ">and a.isupload = #{isupload}</if> + <if test="uploadTime != null ">and a.upload_time = #{uploadTime}</if> + <if test="patid != null ">and a.patid = #{patid}</if> + </where> + </select> + <select id="selectPatArchivetagById" parameterType="Long" resultMap="PatArchivetagResult"> <include refid="selectPatArchivetagVo"/> where id = #{id} -- Gitblit v1.9.3