|
@@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
@@ -36,16 +37,16 @@ public class YeWeiHuiController {
|
|
|
private QzTaskReplyService qzTaskReplyService;
|
|
|
|
|
|
@GetMapping("/yeweihui/home.html")
|
|
|
- public ModelAndView yeweihui(ModelMap model) {
|
|
|
+ public ModelAndView yeweihui(ModelMap model,@RequestParam(value = "userId", required = false,defaultValue = "0") Long userId) {
|
|
|
|
|
|
Map<String, Object> queryParam = Maps.newLinkedHashMap();
|
|
|
queryParam.put("userId", "12345677");
|
|
|
queryParam.put("statistics", "M");
|
|
|
|
|
|
List<QzTask> taskList = qzTaskService.selectAll();
|
|
|
- List<sysUptownUnit> rbList = rbService.selectAll();
|
|
|
+// List<sysUptownUnit> rbList = rbService.selectAll();
|
|
|
model.put("taskList", YvanUtil.toJsonPretty(taskList));
|
|
|
- model.put("rbList", YvanUtil.toJsonPretty(rbList));
|
|
|
+// model.put("rbList", YvanUtil.toJsonPretty(rbList));
|
|
|
|
|
|
return new ModelAndView("/yeweihui/home.ftl", model);
|
|
|
}
|
|
@@ -115,9 +116,9 @@ public class YeWeiHuiController {
|
|
|
@GetMapping("/yeweihui/ribao.html")
|
|
|
public ModelAndView yeweihuiRibao(ModelMap model) {
|
|
|
|
|
|
- List<QzTask> taskList = qzTaskService.selectAll();
|
|
|
-
|
|
|
- model.put("taskList", YvanUtil.toJsonPretty(taskList));
|
|
|
+// List<QzTask> taskList = qzTaskService.selectAll();
|
|
|
+//
|
|
|
+// model.put("taskList", YvanUtil.toJsonPretty(taskList));
|
|
|
|
|
|
return new ModelAndView("/yeweihui/ribao.ftl", model);
|
|
|
}
|