实现立案申请上传附件功能

This commit is contained in:
qitz
2023-09-26 14:52:17 +08:00
parent d52ecca5dc
commit e97418f979
5 changed files with 115 additions and 13 deletions
@@ -22,4 +22,33 @@
from case_attach
where case_appli_id =#{id}
</select>
<select id="queryCaseAttachList" resultMap="CaseAttachResult">
select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
from case_attach
<where>
<if test="id != null ">
AND case_appli_id = #{id}
</if>
<if test="annexType != null ">
AND annex_type = #{annexType}
</if>
<if test="annexTypeList != null and annexTypeList.size() > 0">
and annex_type in
<foreach item="annexType" collection="annexTypeList" open="(" separator="," close=")">
#{annexType}
</foreach>
</if>
</where>
</select>
<update id="updateCaseAttach" parameterType="CaseAttach">
update case_attach
set
case_appli_id= #{caseAppliId}
where annexId = #{annex_id}
</update>
</mapper>