Commit 1aaf5343 by 吕明尚

SQL增加去重

parent 85ee5672
...@@ -77,7 +77,16 @@ ...@@ -77,7 +77,16 @@
</select> </select>
<select id="selectListByStoreId" parameterType="Long" resultMap="SConsumerResult"> <select id="selectListByStoreId" parameterType="Long" resultMap="SConsumerResult">
select t1.id, t1.account, t1.nick_name, t1.avatar, t1.phone, t1.level, t1.role_type, t1.sex, t1.addres, t1.amount, select DISTINCT t1.id,
t1.account,
t1.nick_name,
t1.avatar,
t1.phone,
t1.level,
t1.role_type,
t1.sex,
t1.addres,
t1.amount,
t1.free_amount, t1.total_times, t1.duration, t1.status, t1.pwd, t1.create_time, t1.last_login_time t1.free_amount, t1.total_times, t1.duration, t1.status, t1.pwd, t1.create_time, t1.last_login_time
from s_consumer t1 from s_consumer t1
left join s_store_consumer t2 on t2.consumer_id = t1.id left join s_store_consumer t2 on t2.consumer_id = t1.id
......
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