diff --git a/nursing-unit-admin/nu-admin-biz/src/main/java/com/nu/modules/bizSuppliers/mapper/xml/NuBizSuppliersApplyMapper.xml b/nursing-unit-admin/nu-admin-biz/src/main/java/com/nu/modules/bizSuppliers/mapper/xml/NuBizSuppliersApplyMapper.xml index 1dc6bcb..897e22e 100644 --- a/nursing-unit-admin/nu-admin-biz/src/main/java/com/nu/modules/bizSuppliers/mapper/xml/NuBizSuppliersApplyMapper.xml +++ b/nursing-unit-admin/nu-admin-biz/src/main/java/com/nu/modules/bizSuppliers/mapper/xml/NuBizSuppliersApplyMapper.xml @@ -12,9 +12,9 @@ o.org_address, s.`status` as suppliers_status from sys_depart d - left join nu_org_apply_info o on d.id = o.pk_id and o.status = '2' + left join nu_org_apply_info o on d.id = o.pk_id left join nu_biz_suppliers_org s on d.org_code = s.org_code and s.iz_history = 'N' and s.open_id = #{openId} - where 1=1 and d.server_url is not null + where 1=1 and d.server_url is not null and o.status = '2' and d.del_flag = '0' and d.org_code IN @@ -33,12 +33,13 @@ d.server_url, o.org_leader, o.org_leader_phone, - o.org_address, - s.`status` as suppliers_status + o.org_address + ,s.`status` as suppliers_status from sys_depart d - left join nu_org_apply_info o on d.id = o.pk_id and o.status = '2' - left join nu_biz_suppliers_org s on d.org_code = s.org_code and s.iz_history = 'N' - where 1=1 and s.open_id = #{openId} and d.server_url is not null + left join nu_org_apply_info o on d.id = o.pk_id + left join nu_biz_suppliers_org s on d.org_code = s.org_code + where 1=1 and o.status = '2' and d.del_flag = '0' and d.server_url is not null and s.iz_history = 'N' + and s.open_id = #{openId} and d.org_code IN