公司关系,逻辑优化

This commit is contained in:
liss
2025-10-15 17:44:29 +08:00
parent 3173a7509e
commit 5be2b280e6
3 changed files with 11 additions and 2 deletions

View File

@@ -30,7 +30,6 @@
left join SPLY_ERP_CPN c on r.ERP_NUM = c.NUM
where d.DELETED = 0
and d.IS_COMPANY = 1
and r.DELETED = 0
<if test="name != null">
and d.NAME = #{name}
</if>
@@ -44,4 +43,11 @@
and d.DEPT_SOURCE = #{departmentSource}
</if>
</select>
<delete id="removeByIds">
delete from SPLY_CPN_REL where ID in
<foreach item="ids" collection="list" separator="," open="(" close=")">
#{item}
</foreach>
</delete>
</mapper>