修改bug
This commit is contained in:
parent
00f1726b8a
commit
f5eed5a4f3
|
|
@ -21,8 +21,10 @@
|
|||
a.sys_org_code,
|
||||
a.source_type,
|
||||
'1' AS type,
|
||||
'2' AS apply_status,
|
||||
a.id AS suppliers_id
|
||||
ifnull(b.apply_status,'2') as apply_status,
|
||||
a.id AS suppliers_id,
|
||||
IFNULL(b.id, a.id) as apply_id,
|
||||
'' as apply_content
|
||||
FROM nu_config_suppliers_info a
|
||||
LEFT JOIN nu_config_suppliers_apply b ON a.id = b.suppliers_id AND b.iz_history = 'N'
|
||||
WHERE a.del_flag = '0' AND a.iz_enabled = 'Y'
|
||||
|
|
@ -47,7 +49,9 @@
|
|||
b.source_type,
|
||||
'2' AS type,
|
||||
b.apply_status AS apply_status,
|
||||
b.suppliers_id AS suppliers_id
|
||||
b.suppliers_id AS suppliers_id,
|
||||
b.apply_id,
|
||||
b.apply_content
|
||||
FROM nu_config_suppliers_apply b
|
||||
WHERE b.suppliers_id NOT IN (SELECT id FROM nu_config_suppliers_info)
|
||||
AND b.opt_type = '入驻'
|
||||
|
|
|
|||
Loading…
Reference in New Issue