|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
<mapper namespace="cn.com.ctop.job.bytedance.data.mapper.ReportsAdPushMapper">
|
|
<mapper namespace="cn.com.ctop.job.bytedance.data.mapper.ReportsAdPushMapper">
|
|
|
<select id="updateTime" resultType="java.lang.String">
|
|
<select id="updateTime" resultType="java.lang.String">
|
|
|
- select date_format(max(update_time), '%Y-%m-%d %H:%i:%s') from application.media_ad_report_daily
|
|
|
|
|
|
|
+ select date_format(max(update_at), '%Y-%m-%d %H:%i:%s') from application.user_data_report_daily
|
|
|
where stat_date = ${date} limit 1
|
|
where stat_date = ${date} limit 1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -612,7 +612,7 @@
|
|
|
<include refid="waterProfit"/>,
|
|
<include refid="waterProfit"/>,
|
|
|
<include refid="waterEndAmount"/>,
|
|
<include refid="waterEndAmount"/>,
|
|
|
<include refid="endAmount"/>,
|
|
<include refid="endAmount"/>,
|
|
|
- date_format(max(update_time), '%Y-%m-%d %H:%i:%s') as update_time
|
|
|
|
|
|
|
+ date_format(max(update_at), '%Y-%m-%d %H:%i:%s') as update_time
|
|
|
from
|
|
from
|
|
|
(select sum(cost_amount) as cost_amount, sum(real_cost_amount) as real_cost_amount, max(update_time) as update_time
|
|
(select sum(cost_amount) as cost_amount, sum(real_cost_amount) as real_cost_amount, max(update_time) as update_time
|
|
|
from application.media_ad_report_daily
|
|
from application.media_ad_report_daily
|
|
@@ -620,7 +620,7 @@
|
|
|
) tb1,
|
|
) tb1,
|
|
|
(select sum(pay_amount) as pay_amount, sum(iaa_amount) as iaa_amount,
|
|
(select sum(pay_amount) as pay_amount, sum(iaa_amount) as iaa_amount,
|
|
|
sum(share_iaa_amount) as share_iaa_amount, sum(share_pay_amount) as share_pay_amount,
|
|
sum(share_iaa_amount) as share_iaa_amount, sum(share_pay_amount) as share_pay_amount,
|
|
|
- sum(share_iaa_amount_3) as share_iaa_amount_3
|
|
|
|
|
|
|
+ sum(share_iaa_amount_3) as share_iaa_amount_3, max(update_at) as update_at
|
|
|
from application.user_data_report_daily
|
|
from application.user_data_report_daily
|
|
|
where stat_date = #{date}
|
|
where stat_date = #{date}
|
|
|
) tb2
|
|
) tb2
|