|
|
@@ -171,12 +171,12 @@
|
|
|
</update>
|
|
|
|
|
|
|
|
|
- <select id="updateByaidAndDate" resultType="java.lang.Integer">
|
|
|
+ <update id="updateByaidAndDate" >
|
|
|
update admin_user_count a,(select aid,dates,count(*)counts
|
|
|
from (select aid,DATE_FORMAT(a.transfer_time , '%Y-%m-%d') dates
|
|
|
from user a where status =0 and source in(1,2,3) and share_type=0 and new_channel=0 and aid= #{aid}
|
|
|
and create_time BETWEEN #{startTime} and #{endTime})x group by aid,dates)b
|
|
|
set a.private_count =b.counts
|
|
|
where a.aid=b.aid and a.date_time=b.dates
|
|
|
- </select>
|
|
|
+ </update>
|
|
|
</mapper>
|