Commit 29b4d2ea authored by 38823's avatar 38823

报价信息历史数据显示完善

parent bd7a6587
......@@ -15,6 +15,7 @@ select *
where t.Id_Card_No =
(select hbm.id_card_no from hls_bp_master hbm where hbm.bp_id = ${@bp_id})
and t.unit_id in (select vv.unit_id from exp_emp_assign_e_v vv where vv.user_id = ${/session/@user_id})
and t.Id_Card_No is not null
and exists(
select vv.unit_id from exp_emp_assign_e_v vv where vv.user_id = ${/session/@user_id} and vv.POSITION_TYPE = 'SALES'
)
......@@ -24,6 +25,7 @@ select *
from con_contract_history_lv t
where t.Id_Card_No =
(select hbm.id_card_no from hls_bp_master hbm where hbm.bp_id = ${@bp_id})
and t.Id_Card_No is not null
and not exists(
select vv.unit_id from exp_emp_assign_e_v vv where vv.user_id = ${/session/@user_id} and vv.POSITION_TYPE = 'SALES'
)
......@@ -35,6 +37,7 @@ select *
from hls_bp_master hbm
where hbm.bp_id = ${@bp_id})
and t.unit_id in (select vv.unit_id from exp_emp_assign_e_v vv where vv.user_id = ${/session/@user_id})
and t.Id_Card_No is not null
and exists(
select vv.unit_id from exp_emp_assign_e_v vv where vv.user_id = ${/session/@user_id} and vv.POSITION_TYPE = 'SALES'
)
......@@ -45,6 +48,7 @@ select *
where t.social_code = (select hbm.social_code
from hls_bp_master hbm
where hbm.bp_id = ${@bp_id})
and t.Id_Card_No is not null
and not exists(
select vv.unit_id from exp_emp_assign_e_v vv where vv.user_id = ${/session/@user_id} and vv.POSITION_TYPE = 'SALES'
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment