修改查询条件
This commit is contained in:
parent
baf92d1b81
commit
f89dce2f97
|
|
@ -6,7 +6,7 @@
|
|||
select d.id as org_id,
|
||||
o.com_name as depart_name,
|
||||
d.org_code,
|
||||
d.server_url,
|
||||
concat(d.url , d.context_path) as server_url,
|
||||
o.org_leader,
|
||||
o.org_leader_phone,
|
||||
o.org_address,
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
from sys_depart d
|
||||
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 and o.status = '2' and d.del_flag = '0'
|
||||
where 1=1 and o.status = '2' and d.del_flag = '0'
|
||||
<if test="orgCode != null and orgCode != ''">
|
||||
and d.org_code IN
|
||||
<foreach item="item" collection="orgCode.split(',')" open="(" separator="," close=")">
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
from sys_depart d
|
||||
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 in ('2','4','5') and d.del_flag = '0' and d.server_url is not null and s.iz_history = 'N'
|
||||
where 1=1 and o.status in ('2','4','5') and d.del_flag = '0' and s.iz_history = 'N'
|
||||
and s.open_id = #{openId}
|
||||
<if test="orgCode != null and orgCode != ''">
|
||||
and d.org_code IN
|
||||
|
|
|
|||
Loading…
Reference in New Issue