demand: tms-运单管理-接单/运单录入/运单修改/网点费用申请-查询销售支持接口过滤掉员工表已停用的员工、过滤掉计提表已停用的且寄件日期不在有效期内的
committer: heyu
This commit is contained in:
parent
06f42e0520
commit
d8d7c8b7a9
@ -42,9 +42,12 @@
|
||||
<if test="params.sendDate != null">
|
||||
and start_date <= #{params.sendDate} and end_date >= #{params.sendDate}
|
||||
</if>
|
||||
<!-- 根据销售支持人员对应的用户状态过滤 -->
|
||||
<if test="params.userStatus != null and params.userStatus != ''">
|
||||
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})
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY id DESC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user