|
|
@ -136,7 +136,10 @@ |
|
|
|
|
|
|
|
<sql id="spuWherePart"> |
|
|
|
<if test="query.spuName != null and query.spuName != ''"> and `goods_spu`.`name` like concat('%',#{query.spuName},'%') </if> |
|
|
|
<if test="query.skuCode != null and query.skuCode != ''"> and `goods_spu`.`goods_spu` like concat('%',#{query.skuCode},'%') </if> |
|
|
|
<if test="query.spuCodeOrName != null and query.spuCodeOrName != ''"> |
|
|
|
and (`goods_spu`.`name` like concat('%',#{query.spuCodeOrName},'%') or `goods_spu`.`spu_code` like concat('%',#{query.spuCodeOrName},'%')) |
|
|
|
</if> |
|
|
|
<if test="query.spuCode != null and query.spuCode != ''"> and `goods_spu`.`spu_code` like concat('%',#{query.spuCode},'%') </if> |
|
|
|
<if test="query.bookCodeList!=null and query.bookCodeList.size > 0"> |
|
|
|
and `goods_spu`.`book_belong` in |
|
|
|
<foreach collection="query.bookCodeList" item ="selectId" index="i" open="(" close=")" separator=","> |
|
|
|