bug修复

This commit is contained in:
18792927508
2024-02-20 09:06:43 +08:00
parent b8ad0dfc8c
commit 0b96d4351d
18 changed files with 233 additions and 111 deletions
@@ -65,7 +65,16 @@
<delete id="deleteCaseAttachByCasedIdAndType">
delete from ms_case_attach
where case_appli_id = #{caseAppliId}
<if test="annexType != null ">
and annex_type = #{annexType}
</if>
</delete>
<delete id="batchDelete">
delete from ms_case_attach
where case_appli_id in
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="queryCaseAttachList" resultMap="CaseAttachResult">
@@ -150,4 +150,8 @@
select m.* ,f.* from ms_template_manage m join ms_template_manage_file f on m.id=f.template_manage_id
where m.id=#{id}
</select>
<select id="selectByCreditCode" resultType="java.lang.Long">
select m.id from ms_dept_identify i join ms_template_manage m on m.identify_id=i.id
where i.credit_code=#{creditCode} and i.del_flag=0 and i.identify_status=1 limit 1
</select>
</mapper>