Joburgess 4 سال پیش
والد
کامیت
83ea766b4e
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      mec-web/src/main/java/com/ym/mec/web/controller/TaskController.java

+ 6 - 2
mec-web/src/main/java/com/ym/mec/web/controller/TaskController.java

@@ -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