公司关系,逻辑优化
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user