实现立案申请上传附件功能
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user