@@ -17,4 +17,6 @@ public interface AdqAccountReportMapper {
void addAccountDailyListSD(@Param("adds") List<AdqAdvertiserReportDaily> dailyList);
void updateAdqAccountStatus();
+
+ void updateClAccountStatus();
}
@@ -242,4 +242,19 @@
where t.cost <= 0)
and media_type = 3
</update>
+ <update id="updateClAccountStatus">
+ update deepthink.advertiser_bind_info
+ set advertiser_status = 1
+ where advertiser_id in (select advertiser_id
+ from deepthink.advertiser_bind_info
+ from media_api.chuangliang_advertiser_media_report_daliy t1
+ where stat_datetime = date_format(now(), '%Y%m%d')
+ and media_type = '腾讯广告3.0'
+ and aggregate_cost > 0
+ group by advertiser_id)
+ and media_type = 3
+ and advertiser_status = 2)
+ </update>
</mapper>
@@ -10,4 +10,6 @@ public interface IAdqRetryReportService {
void getAccountDailyRetry(Long id, Long advertiserId, String accessToken, String startDate, String endDate, Integer page,Integer isSend);
@@ -319,4 +319,9 @@ public class AdqRetryReportServiceImpl implements IAdqRetryReportService {
accountReportMapper.updateAdqAccountStatus();
+ @Override
+ public void updateClAccountStatus() {
+ accountReportMapper.updateClAccountStatus();
+ }
@@ -181,5 +181,10 @@ public class AdqRetryReportJob {
retryReportService.updateAdqAccountStatus();
+ @XxlJob("updateClAccountStatus")
+ retryReportService.updateClAccountStatus();