Commit 1956769c by guojuxing

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

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