bug修复
This commit is contained in:
+20
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user