|
@@ -112,31 +112,6 @@ public class TestController {
|
|
@Autowired
|
|
@Autowired
|
|
private IBytedanceReportService bytedanceReportService;
|
|
private IBytedanceReportService bytedanceReportService;
|
|
|
|
|
|
-
|
|
|
|
- @GetMapping("/loadMatData")
|
|
|
|
- public Map<String, Object> getData(String startDate, String endDate, Long accountId) {
|
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
|
- CtopOauthToken token = tokenService.getTokenByAccountId(accountId);
|
|
|
|
- Date start = DateUtils.parseDate(startDate, "yyyy-MM-dd");
|
|
|
|
- int days = DateUtils.getdaysOfTwoDate(startDate, endDate) + 1;
|
|
|
|
- for (int i = 0; i < days; i++) {
|
|
|
|
- String getDate = DateUtils.formatDate(DateUtils.addDay(start, i));
|
|
|
|
- // bytedanceReportService.bytedanceMaterialReport(token, getDate, getDate);
|
|
|
|
-
|
|
|
|
- suzhaoService.submit(new Runnable() {
|
|
|
|
- @Override
|
|
|
|
- public void run() {
|
|
|
|
- bytedanceReportService.bytedanceMaterialReport(token, getDate, getDate);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
|
|
|
|
- return result;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@GetMapping("/testKuaishou")
|
|
@GetMapping("/testKuaishou")
|
|
public String kuaishouCallback(@RequestParam("auth_code") String authCode, @RequestParam("state") String state) {
|
|
public String kuaishouCallback(@RequestParam("auth_code") String authCode, @RequestParam("state") String state) {
|
|
try {
|
|
try {
|
|
@@ -1355,8 +1330,6 @@ public class TestController {
|
|
ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
|
|
ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- @Autowired
|
|
|
|
- private IBytedanceReportService bytedanceReportService;
|
|
|
|
|
|
|
|
@GetMapping("loadMatData")
|
|
@GetMapping("loadMatData")
|
|
public Map<String,Object>getData(String startDate,String endDate,Long accountId){
|
|
public Map<String,Object>getData(String startDate,String endDate,Long accountId){
|