|
@@ -1,13 +1,9 @@
|
|
|
package com.bofeng.wx.controller;
|
|
|
|
|
|
import com.bofeng.dao.RbMapper;
|
|
|
-import com.bofeng.entity.QzTask;
|
|
|
-import com.bofeng.entity.QzTaskReply;
|
|
|
-import com.bofeng.entity.SysUptownHouse;
|
|
|
-import com.bofeng.entity.sysUptownUnit;
|
|
|
+import com.bofeng.entity.*;
|
|
|
import com.bofeng.excel.ExcelUtils;
|
|
|
import com.bofeng.service.HomeService;
|
|
|
-import com.bofeng.entity.*;
|
|
|
import com.bofeng.service.QzTaskReplyService;
|
|
|
import com.bofeng.service.QzTaskService;
|
|
|
import com.bofeng.service.RbService;
|
|
@@ -20,7 +16,6 @@ import com.yvan.platform.JsonWapper;
|
|
|
import com.yvan.platform.YvanUtil;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.SneakyThrows;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -30,7 +25,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
-import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -52,15 +46,17 @@ public class YeWeiHuiController {
|
|
|
private RbMapper rbMapper;
|
|
|
|
|
|
@GetMapping("/yeweihui/home.html")
|
|
|
- public ModelAndView yeweihui(ModelMap model,@RequestParam(value = "userId", required = false,defaultValue = "0") Long userId) {
|
|
|
+ public ModelAndView yeweihui(ModelMap model,@RequestParam(value = "userId") Long userId) {
|
|
|
|
|
|
Map<String, Object> queryParam = Maps.newLinkedHashMap();
|
|
|
- queryParam.put("userId", "12345677");
|
|
|
- queryParam.put("statistics", "M");
|
|
|
-
|
|
|
-// List<QzTask> taskList = qzTaskService.selectAll(2L);
|
|
|
- List<sysUptownUnit> rbList = rbService.selectAll(1225331049509187586L);
|
|
|
-// model.put("taskList", YvanUtil.toJsonPretty(taskList));
|
|
|
+ queryParam.put("user_id", userId);
|
|
|
+// queryParam.put("statistics", "M");
|
|
|
+
|
|
|
+// List<QzTask> taskList = qzTaskService.selectAll(1225321682867105793L);
|
|
|
+// List<sysUptownUnit> rbList = rbService.selectAll(1225321682867105793L);
|
|
|
+ List<QzTask> taskList = qzTaskService.selectAll(userId);
|
|
|
+ List<sysUptownUnit> rbList = rbService.selectAll(userId);
|
|
|
+ model.put("taskList", YvanUtil.toJsonPretty(taskList));
|
|
|
model.put("rbList", YvanUtil.toJsonPretty(rbList));
|
|
|
|
|
|
return new ModelAndView("/yeweihui/home.ftl", model);
|