修复了车型项目库标准删除不是关联标准id和项目id删除而是直接按照标准id删除标准的bug

This commit is contained in:
yanyizhou
2021-08-08 10:17:38 +08:00
parent 626cf1c25d
commit 9f4bbd2eb6
5 changed files with 35 additions and 12 deletions
@@ -19,10 +19,10 @@
</select>
<delete id="deleteByIds">
delete from sar_stand_project_relation where stand_id in (
<foreach collection="ids" item="list" separator=",">
#{list}
delete from sar_stand_project_relation where
<foreach collection="ids" item="list" separator="or">
( project_id= #{list.projectId} and stand_id = #{list.standId} )
</foreach>
)
</delete>
</mapper>