|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
<select id="getMaxHourByProjectIdAndStatDate" resultType="java.lang.Integer">
|
|
<select id="getMaxHourByProjectIdAndStatDate" resultType="java.lang.Integer">
|
|
SELECT
|
|
SELECT
|
|
- max(t2.stat_hour)
|
|
|
|
|
|
+ max(t2.hour)
|
|
FROM
|
|
FROM
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
LEFT JOIN application.kuaishou_account_report_hourly_dw t2 ON t1.account_id = t2.account_id
|
|
LEFT JOIN application.kuaishou_account_report_hourly_dw t2 ON t1.account_id = t2.account_id
|
|
@@ -58,7 +58,7 @@
|
|
</if>
|
|
</if>
|
|
|
|
|
|
<if test="statHour != null">
|
|
<if test="statHour != null">
|
|
- and t2.stat_hour <= #{statHour}
|
|
|
|
|
|
+ and t2.hour <= #{statHour}
|
|
</if>
|
|
</if>
|
|
<if test="systemType != null">
|
|
<if test="systemType != null">
|
|
and t1.system_type = #{systemType}
|
|
and t1.system_type = #{systemType}
|
|
@@ -112,7 +112,7 @@
|
|
</if>
|
|
</if>
|
|
|
|
|
|
<if test="statHour != null">
|
|
<if test="statHour != null">
|
|
- and t2.stat_hour <= #{statHour}
|
|
|
|
|
|
+ and t2.hour <= #{statHour}
|
|
</if>
|
|
</if>
|
|
<if test="systemType != null">
|
|
<if test="systemType != null">
|
|
and t1.system_type = #{systemType}
|
|
and t1.system_type = #{systemType}
|