|
@@ -26,7 +26,7 @@
|
|
|
<if test=' this.has("merchantId") '> and merchant_id = #{merchantId} </if>
|
|
|
<if test=' this.has("merchantName") '> and merchant_name = #{merchantName} </if>
|
|
|
<if test=' this.has("goodsType") '> and goods_type = #{goodsType} </if>
|
|
|
- <if test=' this.has("goodsName") '> and goods_name = #{goodsName} </if>
|
|
|
+ <if test=' this.has("goodsName") '> and goods_name like concat('%', #{goodsName}, '%')</if>
|
|
|
<if test=' this.has("goodsUnits") '> and goods_units = #{goodsUnits} </if>
|
|
|
<if test=' this.has("price") '> and price = #{price} </if>
|
|
|
<if test=' this.has("placeOrigin") '> and place_origin = #{placeOrigin} </if>
|
|
@@ -54,7 +54,7 @@
|
|
|
<when test='sortType == 4'> goods_type desc </when>
|
|
|
<when test='sortType == 5'> goods_name desc </when>
|
|
|
<when test='sortType == 6'> goods_units desc </when>
|
|
|
- <when test='sortType == 7'> price desc </when>
|
|
|
+ <when test='sortType == 7'> price #{orderBy} </when>
|
|
|
<when test='sortType == 8'> place_origin desc </when>
|
|
|
<when test='sortType == 9'> discription desc </when>
|
|
|
<when test='sortType == 10'> stock desc </when>
|
|
@@ -63,6 +63,7 @@
|
|
|
<when test='sortType == 13'> audit_time desc </when>
|
|
|
<when test='sortType == 14'> remark desc </when>
|
|
|
<when test='sortType == 15'> create_time desc </when>
|
|
|
+ <when test='sortType == 150'> create_time asc </when>
|
|
|
<when test='sortType == 16'> create_by desc </when>
|
|
|
<when test='sortType == 17'> create_name desc </when>
|
|
|
<when test='sortType == 18'> update_time desc </when>
|