1
This commit is contained in:
@@ -31,7 +31,7 @@ public class JDOrder extends BaseEntity {
|
||||
@Excel(name = "型号")
|
||||
private String modelNumber;
|
||||
|
||||
/** 列表筛选:型号不含此子串(对应 SQL NOT LIKE %值%),不入库 */
|
||||
/** 列表筛选:型号不含这些子串(逗号/空格分隔,对应 SQL 多条 NOT LIKE),不入库 */
|
||||
@Transient
|
||||
private String modelNumberExclude;
|
||||
|
||||
|
||||
@@ -68,7 +68,11 @@
|
||||
</if>
|
||||
<if test="distributionMark != null and distributionMark != ''"> and distribution_mark = #{distributionMark}</if>
|
||||
<if test="modelNumber != null and modelNumber != ''"> and model_number like concat('%', #{modelNumber}, '%')</if>
|
||||
<if test="modelNumberExclude != null and modelNumberExclude != ''"> and (model_number is null or model_number not like concat('%', #{modelNumberExclude}, '%'))</if>
|
||||
<if test="params.modelNumberExcludeList != null and params.modelNumberExcludeList.size() > 0">
|
||||
<foreach collection="params.modelNumberExcludeList" item="ex">
|
||||
and (model_number is null or model_number not like concat('%', #{ex}, '%'))
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="link != null and link != ''"> and link like concat('%', #{link}, '%')</if>
|
||||
<if test="paymentAmount != null"> and payment_amount = #{paymentAmount}</if>
|
||||
<if test="rebateAmount != null"> and rebate_amount = #{rebateAmount}</if>
|
||||
@@ -117,7 +121,11 @@
|
||||
</if>
|
||||
<if test="distributionMark != null and distributionMark != ''"> and distribution_mark = #{distributionMark}</if>
|
||||
<if test="modelNumber != null and modelNumber != ''"> and model_number like concat('%', #{modelNumber}, '%')</if>
|
||||
<if test="modelNumberExclude != null and modelNumberExclude != ''"> and (model_number is null or model_number not like concat('%', #{modelNumberExclude}, '%'))</if>
|
||||
<if test="params.modelNumberExcludeList != null and params.modelNumberExcludeList.size() > 0">
|
||||
<foreach collection="params.modelNumberExcludeList" item="ex">
|
||||
and (model_number is null or model_number not like concat('%', #{ex}, '%'))
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="link != null and link != ''"> and link like concat('%', #{link}, '%')</if>
|
||||
<if test="paymentAmount != null"> and payment_amount = #{paymentAmount}</if>
|
||||
<if test="rebateAmount != null"> and rebate_amount = #{rebateAmount}</if>
|
||||
|
||||
Reference in New Issue
Block a user