diff --git a/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml b/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml index ff329f785..fb1f6e10b 100644 --- a/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml @@ -42,9 +42,12 @@ and start_date <= #{params.sendDate} and end_date >= #{params.sendDate} + - and exists(select 1 from sys_user a join emis_sales_commission_ratio b on a.emp_name = b.sales_support - where a.del_flag='0' and a.bl_open=#{params.userStatus}) + and exists(select 1 from sys_user + where emp_name = emis_sales_commission_ratio.sales_support + and del_flag='0' + and bl_open=#{params.userStatus}) ORDER BY id DESC