bug修复

This commit is contained in:
18792927508
2024-02-26 13:58:05 +08:00
parent da4a49956c
commit 86b8305dc2
4 changed files with 93 additions and 38 deletions
@@ -64,7 +64,18 @@
</where>
ORDER BY create_time DESC
</select>
<select id="selectTemplateListByIds" resultMap="TemplateManageResult">
SELECT *
FROM ms_template_manage_file
<where>
<if test="fileIds != null">
and file_id in
<foreach collection="fileIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</if>
</where>
</select>
<select id="selectById" resultMap="TemplateManageResult">
select * from ms_template_manage where id=#{id}
</select>
@@ -135,6 +146,14 @@
;
</delete>
<delete id="deleteTemplateManageFileByIdAndType">
delete from ms_template_manage_file where template_manage_id = #{id} and tem_type in
<foreach collection="types" item="it" open="(" separator="," close=")">
#{it}
</foreach>
;
</delete>
<select id="selectByIdAndType" resultMap="TemplateManageResult">
select f.* from ms_template_manage m join ms_template_manage_file f on m.id=f.template_manage_id