修改附件展示

This commit is contained in:
sh
2025-12-04 12:29:50 +08:00
parent 905bfa1996
commit c8f9b6547a
5 changed files with 67 additions and 8 deletions

View File

@@ -62,4 +62,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<update id="updateIds">
update file
<if test="newBussinessid != null">
set bussinessid = #{newBussinessid}
</if>
<if test="newBussinessid == null">
set bussinessid = bussinessid
where 1 = 2
</if>
where
<if test="longs != null and longs.size() > 0">
id in (
<foreach collection="longs" item="oldId" separator=",">
#{oldId}
</foreach>
)
</if>
<if test="longs == null or longs.size() == 0">
1 = 2
</if>
</update>
</mapper>