demand: tms-oa接口-查询客户出货统计

This commit is contained in:
aike 2026-03-09 15:49:43 +08:00
parent a512286963
commit f33f3d3ab4

View File

@ -2928,7 +2928,16 @@
<if test="paymentType != null and paymentType != ''"> and FIND_IN_SET(payment_type,#{paymentType})</if>
<if test="calcFeeType != null and calcFeeType != ''"> and calc_fee_type=#{calcFeeType}</if>
<if test="custNo != null and custNo != ''"> and cust_no like concat('%', #{custNo}, '%')</if>
<if test="custName != null and custName != ''"> and cust_name like concat('%', #{custName}, '%')</if>
<if test="custName != null and custName != ''">
<choose><when test="customerType != null and customerType != '' and
customerType == 1">
and mu.company like concat('%', #{custName}, '%')
</when>
<otherwise>
and cust_name like concat('%', #{custName}, '%')
</otherwise>
</choose>
</if>
<if test="transLineType != null and transLineType != ''"> and trans_line_type=#{transLineType}</if>
<if test="productType != null and productType != ''"> and FIND_IN_SET(product_type,#{productType})</if>
<if test="timeType != null and timeType != ''"> and time_type like concat('%', #{timeType}, '%')</if>