Merge pull request 'demand: tms-统计报表-月结客户出货统计-查询性能优化' (#230) from develop into master

Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/230
This commit is contained in:
heyu 2025-11-11 17:52:11 +08:00
commit 36e89aa340

View File

@ -4124,6 +4124,18 @@
<if test="receiveCountry != null and receiveCountry != ''">
AND a.receive_country = #{receiveCountry}
</if>
<!-- 销售主管 -->
<if test="salesExecutive != null and salesExecutive != ''">
AND a3.sales_executive LIKE CONCAT('%', #{salesExecutive}, '%')
</if>
<!-- 销售支持 -->
<if test="salesSupport != null and salesSupport != ''">
AND a3.sales_support LIKE CONCAT('%', #{salesSupport}, '%')
</if>
<!-- 销售联系人 -->
<if test="salesmen != null and salesmen != ''">
AND a3.salesmen LIKE CONCAT('%', #{salesmen}, '%')
</if>
<!-- 运输方式筛选 -->
<if test="transType != null and transType != ''">
AND EXISTS (