修改附件展示
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user