Browse Source

feat:首页

Joburgess 4 years ago
parent
commit
31bafc6b38

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

@@ -6,14 +6,12 @@ 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
@@ -333,10 +331,8 @@ public class TaskController extends BaseController {
 	}
 
 	@GetMapping("/countIndexBaseData")
-	public void countIndexBaseData(@RequestBody List<String> months){
-		for (String month : months) {
-			indexBaseMonthDataService.indexBaseDataTask(month);
-		}
+	public void countIndexBaseData(String month){
+		indexBaseMonthDataService.indexBaseDataTask(month);
 	}
 
 	//乐团巡查计划当日9:00