库管员机具关联优化
This commit is contained in:
parent
21fb5e8d87
commit
6079c91a89
|
|
@ -88,17 +88,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<delete id="deleteTypeKeeperByUserIdAndTypeId">
|
<delete id="deleteTypeKeeperByUserIdAndTypeId">
|
||||||
delete from ma_type_keeper where
|
delete from ma_type_keeper where
|
||||||
type_id in
|
type_id in
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" open="(" separator="," close=")">
|
||||||
(
|
|
||||||
#{item.typeId}
|
#{item.typeId}
|
||||||
)
|
|
||||||
</foreach>
|
</foreach>
|
||||||
and
|
and
|
||||||
user_id in
|
user_id in
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" open="(" separator="," close=")">
|
||||||
(
|
|
||||||
#{item.userId}
|
#{item.userId}
|
||||||
)
|
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue