|
@@ -9,13 +9,9 @@ import cn.com.ctop.common.module.entity.UserAllocation;
|
|
import cn.com.ctop.common.module.message.handle.impl.EmailSendMsgHandle;
|
|
import cn.com.ctop.common.module.message.handle.impl.EmailSendMsgHandle;
|
|
import cn.com.ctop.common.module.service.*;
|
|
import cn.com.ctop.common.module.service.*;
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
-import cn.com.ctop.kuaishou.modules.batch.service.*;
|
|
|
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouHistoryReportTaskService;
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyAgentService;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyAgentService;
|
|
-import cn.com.ctop.oa.modules.service.IWechatCheckinDataService;
|
|
|
|
-import cn.com.ctop.oa.modules.service.IWechatDepartmentService;
|
|
|
|
-import cn.com.ctop.oa.modules.service.IWechatNoListService;
|
|
|
|
-import cn.com.ctop.oa.modules.service.IWechatUserListService;
|
|
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IByteDanceVideoReportDailyService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IByteDanceVideoReportDailyService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceReportService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceReportService;
|
|
@@ -31,7 +27,6 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.test.context.ActiveProfiles;
|
|
import org.springframework.test.context.ActiveProfiles;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
-import java.text.ParseException;
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -51,54 +46,12 @@ public class SampleTest {
|
|
@Autowired
|
|
@Autowired
|
|
private IReportService reportService;
|
|
private IReportService reportService;
|
|
@Autowired
|
|
@Autowired
|
|
- private IUserAllocationService userAllocationService;
|
|
|
|
- @Autowired
|
|
|
|
private IByteDanceAdvertiserDataService advertiserDataService;
|
|
private IByteDanceAdvertiserDataService advertiserDataService;
|
|
@Autowired
|
|
@Autowired
|
|
private IKuaiShouHistoryReportTaskService kuaiShouHistoryReportTaskService;
|
|
private IKuaiShouHistoryReportTaskService kuaiShouHistoryReportTaskService;
|
|
- @Autowired
|
|
|
|
- private IKuaiShouDailyReportTaskService dailyReportTaskService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private IWechatDepartmentService wechatDepartment;
|
|
|
|
- @Autowired
|
|
|
|
- private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
|
|
- @Autowired
|
|
|
|
- private IWechatUserListService wechatUserInfoService;
|
|
|
|
- @Autowired
|
|
|
|
- private IWechatCheckinDataService wechatCheckinDataService;
|
|
|
|
- @Autowired
|
|
|
|
- private IWechatNoListService wechatNoListService;
|
|
|
|
- @Autowired
|
|
|
|
private ICtopOauthTokenService tokenService;
|
|
private ICtopOauthTokenService tokenService;
|
|
- @Autowired
|
|
|
|
- private IKuaishouRealTimeDataService realTimeDataService;
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- private IKuaiShouCreativeService creativeService;
|
|
|
|
- @Autowired
|
|
|
|
- private IMessageTemplate messageTemplate;
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- private ISendMessageService sendMessageService;
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- private IKuaiShouOverRunSendMessageService overRunSendMessageService;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @Test
|
|
|
|
- public void getDepartment() throws ParseException {
|
|
|
|
-
|
|
|
|
- /* String message = messageTemplate.getCreativeOverRunMessage(23212L, 2000, "hahah");
|
|
|
|
- // LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
|
- sendMessageService.sendMessage("14c3cd
|
|
|
|
- 5e5e434211a9bb5e8f9d8a335d", message);*/
|
|
|
|
-
|
|
|
|
- overRunSendMessageService.creativeOverRunSendMessage(23212L);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void loadBytedanceCreativeData() {
|
|
public void loadBytedanceCreativeData() {
|
|
@@ -109,7 +62,6 @@ public class SampleTest {
|
|
kuaiShouHistoryReportTaskService.createTask(token.getAccountId(), token.getAccessToken(), "2020-09-20", "2020-09-20", "daily");
|
|
kuaiShouHistoryReportTaskService.createTask(token.getAccountId(), token.getAccessToken(), "2020-09-20", "2020-09-20", "daily");
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@Test
|
|
@Test
|
|
@@ -244,7 +196,6 @@ public class SampleTest {
|
|
Date getDate = DateUtils.addDay(new Date(), -i);
|
|
Date getDate = DateUtils.addDay(new Date(), -i);
|
|
String date = DateUtils.formatDate(getDate);
|
|
String date = DateUtils.formatDate(getDate);
|
|
bytedanceReportService.bytedanceMaterialReport(token, date, date);
|
|
bytedanceReportService.bytedanceMaterialReport(token, date, date);
|
|
-// videoReportDailyService.videoInfoList(date, date);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|