Commit 1956769c by guojuxing

店招品牌查询调整:group by t1.store_brand_id

parent 942a3025
...@@ -169,6 +169,8 @@ ...@@ -169,6 +169,8 @@
<if test="storeBrandId != null "> <if test="storeBrandId != null ">
and t1.store_brand_id &lt;&gt; #{storeBrandId} and t1.store_brand_id &lt;&gt; #{storeBrandId}
</if> </if>
group by t1.store_brand_id
</select> </select>
<select id="listStoreBrand" resultMap="BaseResultMap"> <select id="listStoreBrand" resultMap="BaseResultMap">
select select
...@@ -181,6 +183,9 @@ ...@@ -181,6 +183,9 @@
<if test="search != null and search != '' "> <if test="search != null and search != '' ">
and ( t1.store_brand_code like concat('%', #{search}, '%') or t1.store_brand_name like concat('%', #{search}, '%') ) and ( t1.store_brand_code like concat('%', #{search}, '%') or t1.store_brand_name like concat('%', #{search}, '%') )
</if> </if>
group by t1.store_brand_id
order by sort order by sort
</select> </select>
<select id="getPrevSort" resultMap="BaseResultMap"> <select id="getPrevSort" resultMap="BaseResultMap">
...@@ -235,6 +240,7 @@ ...@@ -235,6 +240,7 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
group by t1.store_brand_id
order by t1.store_brand_id order by t1.store_brand_id
</select> </select>
...@@ -248,6 +254,8 @@ ...@@ -248,6 +254,8 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
group by t1.store_brand_id
</select> </select>
<select id="getByStoreBrandName" resultMap="BaseResultMap"> <select id="getByStoreBrandName" resultMap="BaseResultMap">
...@@ -258,6 +266,8 @@ ...@@ -258,6 +266,8 @@
<if test="storeBrandName != null "> <if test="storeBrandName != null ">
and t1.store_brand_name = #{storeBrandName} and t1.store_brand_name = #{storeBrandName}
</if> </if>
group by t1.store_brand_id
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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