|
@@ -1,16 +1,23 @@
|
|
package com.bofeng.wx.controller;
|
|
package com.bofeng.wx.controller;
|
|
|
|
|
|
|
|
+import com.bofeng.entity.QzTask;
|
|
|
|
+import com.bofeng.service.QzTaskService;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
public class YeWeiHuiController {
|
|
public class YeWeiHuiController {
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private QzTaskService qzTaskService;
|
|
|
|
+
|
|
@GetMapping("/yeweihui/home.html")
|
|
@GetMapping("/yeweihui/home.html")
|
|
public ModelAndView yeweihui(ModelMap model) {
|
|
public ModelAndView yeweihui(ModelMap model) {
|
|
|
|
|
|
@@ -18,7 +25,9 @@ public class YeWeiHuiController {
|
|
queryParam.put("userId", "12345677");
|
|
queryParam.put("userId", "12345677");
|
|
queryParam.put("statistics", "M");
|
|
queryParam.put("statistics", "M");
|
|
|
|
|
|
- model.put("user", "{}");
|
|
|
|
|
|
+ List<QzTask> taskList = qzTaskService.selectAll();
|
|
|
|
+
|
|
|
|
+ model.put("taskList", taskList);
|
|
return new ModelAndView("/yeweihui/home.ftl", model);
|
|
return new ModelAndView("/yeweihui/home.ftl", model);
|
|
}
|
|
}
|
|
}
|
|
}
|