demand: tms-运单管理-接单/运单录入/运单修改/网点费用申请-查询销售支持接口过滤掉员工表已停用的员工、过滤掉计提表已停用的且寄件日期不在有效期内的

committer: heyu
This commit is contained in:
aike 2025-11-22 09:42:21 +08:00
parent c50d1cc705
commit 647db381d4

View File

@ -42,6 +42,10 @@
<if test="params.sendDate != null">
and start_date &lt;= #{params.sendDate} and end_date &gt;= #{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>