|
@@ -6,12 +6,14 @@ import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.redis.service.RedisCache;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@RequestMapping("task")
|
|
|
@RestController
|
|
@@ -331,8 +333,10 @@ public class TaskController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/countIndexBaseData")
|
|
|
- public void countIndexBaseData(String month){
|
|
|
- indexBaseMonthDataService.indexBaseDataTask(month);
|
|
|
+ public void countIndexBaseData(@RequestBody List<String> months){
|
|
|
+ for (String month : months) {
|
|
|
+ indexBaseMonthDataService.indexBaseDataTask(month);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//乐团巡查计划当日9:00
|