|
@@ -41,13 +41,22 @@ public class HomeController {
|
|
|
@Autowired
|
|
|
private QzTaskReplyService qzTaskReplyService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MsReportService msReportService;
|
|
|
+
|
|
|
+
|
|
|
@GetMapping("/home/home.html")
|
|
|
- public ModelAndView home(ModelMap model) {
|
|
|
+ public ModelAndView home(ModelMap model)throws JsonProcessingException {
|
|
|
//UserOpen userOpen = homeService.getUserOpen();
|
|
|
model.put("user", new JsonWapper("{\"www\": \"er\"}"));
|
|
|
+ //初始化今日日报
|
|
|
+ Long userId=0L;
|
|
|
+ MsReport msReport =msReportService.getReportByDateNow(userId);
|
|
|
+ model.put("msReport", new JsonWapper(msReport));
|
|
|
return new ModelAndView("/home/home.ftl", model);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
//家庭求助
|
|
|
@GetMapping("/home/home/addFimaly")
|
|
|
public ModelOps family(@Pd(name = "taskTitle") String taskTitle,
|