demand: tms-运单管理-接单/运单录入/运单修改/网点费用申请-查询销售支持接口过滤掉员工表已停用的员工、过滤掉计提表已停用的且寄件日期不在有效期内的
committer: heyu
This commit is contained in:
parent
c50d1cc705
commit
647db381d4
@ -42,6 +42,10 @@
|
||||
<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=#{userStatus})
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY id DESC
|
||||
</select>
|
||||
@ -149,4 +153,4 @@
|
||||
<if test="id != null">AND id != #{id}</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user