|
|
@@ -40,8 +40,8 @@ public class BytedanceXingTuController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/taskInfo")
|
|
|
- public void taskInfo() {
|
|
|
- List<JSONObject> xingTuTasks = bytedanceXingTuService.getXingTuActiveTask(null);
|
|
|
+ public void taskInfo(@RequestParam(required = false) Long advertiserId) {
|
|
|
+ List<JSONObject> xingTuTasks = bytedanceXingTuService.getXingTuActiveTask(advertiserId);
|
|
|
for (JSONObject taskJson : xingTuTasks) {
|
|
|
Long advId = taskJson.getLong("advertiser_id");
|
|
|
Long taskId = taskJson.getLong("task_id");
|
|
|
@@ -52,8 +52,8 @@ public class BytedanceXingTuController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/taskReport")
|
|
|
- public void taskReport() {
|
|
|
- List<JSONObject> xingTuTasks = bytedanceXingTuService.getXingTuReportTask(null);
|
|
|
+ public void taskReport(@RequestParam(required = false) Long advertiserId) {
|
|
|
+ List<JSONObject> xingTuTasks = bytedanceXingTuService.getXingTuReportTask(advertiserId);
|
|
|
for (JSONObject taskJson : xingTuTasks) {
|
|
|
Integer taskStatus = taskJson.getInteger("task_status");
|
|
|
Long advId = taskJson.getLong("advertiser_id");
|