diff --git a/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml b/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml index 748dce7b9..54409b6c3 100644 --- a/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSalesCommissionRatioMapper.xml @@ -42,6 +42,10 @@ 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=#{userStatus}) + ORDER BY id DESC @@ -149,4 +153,4 @@ AND id != #{id} - \ No newline at end of file +