✨ 应收账单状态筛选支持多选并默认排除作废
This commit is contained in:
@@ -85,7 +85,15 @@
|
||||
'%')
|
||||
</if>
|
||||
<if test="query.customerId != null">and customer_id = #{query.customerId}</if>
|
||||
<if test="query.status != null and query.status != ''">and status = #{query.status}</if>
|
||||
<choose>
|
||||
<when test="query.statuses != null and query.statuses.size() > 0">
|
||||
and status in
|
||||
<foreach collection="query.statuses" item="statusValue" open="(" separator="," close=")">
|
||||
#{statusValue}
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="query.status != null and query.status != ''">and status = #{query.status}</when>
|
||||
</choose>
|
||||
<if test="query.currency != null and query.currency != ''">and currency = #{query.currency}</if>
|
||||
<if test="query.billDateStart != null">and bill_date >= #{query.billDateStart}</if>
|
||||
<if test="query.billDateEnd != null">and bill_date <= #{query.billDateEnd}</if>
|
||||
|
||||
Reference in New Issue
Block a user