|
@@ -8,15 +8,16 @@
|
|
|
account_name as authName,
|
|
|
${filedAll}
|
|
|
FROM ctop_kuaishou_report_hourly_account t1
|
|
|
- WHERE stat_date = #{statDate}
|
|
|
- and stat_hour <= #{hour}
|
|
|
- AND account_id in
|
|
|
+ WHERE t1.stat_date = #{statDate}
|
|
|
+ and t1.`hour` <= #{hour}
|
|
|
+ AND t1.account_id in
|
|
|
<foreach item="item" index="index" collection="accountIds"
|
|
|
open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
- <if test="hasGroupBy == 1"></if>
|
|
|
- group by t1.account_id
|
|
|
+ <if test="hasGroupBy == 1">
|
|
|
+ group by t1.account_id
|
|
|
+ </if>
|
|
|
order by ${target} ${order}
|
|
|
</select>
|
|
|
</mapper>
|