|
@@ -5,6 +5,7 @@
|
|
<!-- 快手 时报 -->
|
|
<!-- 快手 时报 -->
|
|
<select id="getKuaiShouCostHourlyByUserIdList" resultType="Map">
|
|
<select id="getKuaiShouCostHourlyByUserIdList" resultType="Map">
|
|
SELECT
|
|
SELECT
|
|
|
|
+ t.`hour` as 'orders',
|
|
CONCAT(t.`hour`,':00') `hour`,
|
|
CONCAT(t.`hour`,':00') `hour`,
|
|
ROUND( SUM( charge ), 3 ) AS totalCost
|
|
ROUND( SUM( charge ), 3 ) AS totalCost
|
|
FROM
|
|
FROM
|
|
@@ -20,12 +21,13 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
GROUP BY t.`hour`
|
|
GROUP BY t.`hour`
|
|
- ORDER BY t.`hour`
|
|
|
|
|
|
+ ORDER BY orders
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 头条 时报 -->
|
|
<!-- 头条 时报 -->
|
|
<select id="getBytedanceCostHourlyByUserIdList" resultType="Map">
|
|
<select id="getBytedanceCostHourlyByUserIdList" resultType="Map">
|
|
SELECT
|
|
SELECT
|
|
|
|
+ `hour` as 'orders',
|
|
CONCAT( `hour`, ':00' ) `hour`,
|
|
CONCAT( `hour`, ':00' ) `hour`,
|
|
ROUND( SUM( cost ), 3 ) AS totalCost
|
|
ROUND( SUM( cost ), 3 ) AS totalCost
|
|
FROM
|
|
FROM
|
|
@@ -41,7 +43,7 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
GROUP BY `hour`
|
|
GROUP BY `hour`
|
|
- ORDER BY `hour`
|
|
|
|
|
|
+ ORDER BY orders
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|