公司sql改为只查询公司级别

This commit is contained in:
liss
2025-10-13 10:34:16 +08:00
parent 6531737f5d
commit beb4f5ddaf

View File

@@ -29,6 +29,7 @@
left join SPLY_CPN_REL r on r.NUM = d.ID left join SPLY_CPN_REL r on r.NUM = d.ID
left join SPLY_ERP_CPN c on r.ERP_NUM = c.NUM left join SPLY_ERP_CPN c on r.ERP_NUM = c.NUM
where d.DELETED = 0 where d.DELETED = 0
and d.IS_COMPANY = 1
<if test="name != null"> <if test="name != null">
and d.NAME = #{name} and d.NAME = #{name}
</if> </if>