部门修改

This commit is contained in:
TL
2025-07-24 16:23:02 +08:00
parent 8a257df3b1
commit d807a79d8c
4 changed files with 10 additions and 7 deletions

View File

@ -32,7 +32,7 @@
left join cosco_access_category cac on caw.id = cac.access_work_id
left join cosco_access_supplier cas on caw.id = cas.access_work_id
LEFT JOIN cosco_supplier_base csb ON cas.supplier_id = csb.id and csb.del_flag = 'normal'
LEFT JOIN cosco_access_supplier_category casc ON casc.category_id = cac.category_id AND casc.dept_id = #{deptId} and cas.supplier_id = casc.supplier_id and casc.del_flag = 'normal'
LEFT JOIN cosco_access_supplier_category casc ON casc.category_id = cac.category_id AND casc.org_id = #{deptId} and cas.supplier_id = casc.supplier_id and casc.del_flag = 'normal'
where caw.id = #{accessWorkId} AND casc.id IS NULL;
</select>