|
@ -159,6 +159,9 @@ |
|
|
and `goods_spu`.`del_flag` = 0 |
|
|
and `goods_spu`.`del_flag` = 0 |
|
|
<if test="query.id != null"> and `goods_spu`.`id` = #{query.id}</if> |
|
|
<if test="query.id != null"> and `goods_spu`.`id` = #{query.id}</if> |
|
|
<if test="query.spuCode != null and query.spuCode != ''"> and `goods_spu`.`spu_code` like concat('%', #{query.spuCode},'%')</if> |
|
|
<if test="query.spuCode != null and query.spuCode != ''"> and `goods_spu`.`spu_code` like concat('%', #{query.spuCode},'%')</if> |
|
|
|
|
|
<if test="query.spuCodeOrName != null and query.spuCodeOrName != ''"> |
|
|
|
|
|
and (`goods_spu`.`spu_code` like concat('%', #{query.spuCodeOrName},'%') or `goods_spu`.`spu_code` like concat('%', #{query.spuCodeOrName},'%') ) |
|
|
|
|
|
</if> |
|
|
<if test="query.name != null and query.name != ''"> and `goods_spu`.`name` like concat('%', #{query.name},'%') </if> |
|
|
<if test="query.name != null and query.name != ''"> and `goods_spu`.`name` like concat('%', #{query.name},'%') </if> |
|
|
<if test="query.categoryFirst != null"> and `goods_spu`.`category_first` = #{query.categoryFirst}</if> |
|
|
<if test="query.categoryFirst != null"> and `goods_spu`.`category_first` = #{query.categoryFirst}</if> |
|
|
<if test="query.categorySecond != null"> and `goods_spu`.`category_second` = #{query.categorySecond}</if> |
|
|
<if test="query.categorySecond != null"> and `goods_spu`.`category_second` = #{query.categorySecond}</if> |
|
|