Commit 9aa20fb4 authored by hezhen's avatar hezhen

Merge branch 'master-tiande' into dev-tiande

parents a5af6fe1 2b887bc8
...@@ -24,6 +24,15 @@ public class GoodSearchDTO extends PageParam { ...@@ -24,6 +24,15 @@ public class GoodSearchDTO extends PageParam {
//商品名 //商品名
@ApiModelProperty(value = "标签id") @ApiModelProperty(value = "标签id")
private String tagId; private String tagId;
@ApiModelProperty("公司id")
private Long corporationId;
@ApiModelProperty("门店id")
private Integer companyId;
......
...@@ -117,6 +117,12 @@ ...@@ -117,6 +117,12 @@
<if test="params.name != null and params.name != ''"> <if test="params.name != null and params.name != ''">
and (g.`name` like CONCAT('%',#{params.name},'%') or g.introduce like CONCAT('%',#{params.name},'%')) and (g.`name` like CONCAT('%',#{params.name},'%') or g.introduce like CONCAT('%',#{params.name},'%'))
</if> </if>
<if test="params.companyId != null and params.companyId > 0">
and g.company_id=#{params.companyId}
</if>
<if test="params.corporationId != null and params.corporationId > 0 ">
and g.corporation_id=#{params.corporationId}
</if>
<if test="params.tagId != null and params.tagId != '' "> <if test="params.tagId != null and params.tagId != '' ">
and g.id in (SELECT good_id from tour_good_tag and g.id in (SELECT good_id from tour_good_tag
where tag_id = #{params.tagId} and is_del=0 ) where tag_id = #{params.tagId} and is_del=0 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment