|
@@ -1,6 +1,5 @@
|
|
package com.bofeng.wx.controller;
|
|
package com.bofeng.wx.controller;
|
|
|
|
|
|
-import com.bofeng.entity.QzTask;
|
|
|
|
import com.bofeng.entity.UserHelpAnaly;
|
|
import com.bofeng.entity.UserHelpAnaly;
|
|
import com.bofeng.service.QzTaskReplyService;
|
|
import com.bofeng.service.QzTaskReplyService;
|
|
import com.bofeng.service.QzTaskService;
|
|
import com.bofeng.service.QzTaskService;
|
|
@@ -8,7 +7,6 @@ import com.bofeng.service.WuYeService;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
import com.yvan.Model;
|
|
import com.yvan.Model;
|
|
import com.yvan.mvc.Pd;
|
|
import com.yvan.mvc.Pd;
|
|
-import com.yvan.platform.YvanUtil;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
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;
|
|
@@ -16,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
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.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -37,9 +36,9 @@ public class WuYeController {
|
|
queryParam.put("userId", "12345677");
|
|
queryParam.put("userId", "12345677");
|
|
queryParam.put("statistics", "M");
|
|
queryParam.put("statistics", "M");
|
|
|
|
|
|
- List<QzTask> taskList = qzTaskService.selectAll(userId);
|
|
|
|
|
|
+// List<QzTask> taskList = qzTaskService.selectAll(userId);
|
|
// List<sysUptownUnit> rbList = rbService.selectAll();
|
|
// List<sysUptownUnit> rbList = rbService.selectAll();
|
|
- model.put("taskList", YvanUtil.toJsonPretty(taskList));
|
|
|
|
|
|
+// model.put("taskList", YvanUtil.toJsonPretty(taskList));
|
|
// model.put("rbList", YvanUtil.toJsonPretty(rbList));
|
|
// model.put("rbList", YvanUtil.toJsonPretty(rbList));
|
|
|
|
|
|
return new ModelAndView("/wuye/home.ftl", model);
|
|
return new ModelAndView("/wuye/home.ftl", model);
|
|
@@ -71,4 +70,11 @@ public class WuYeController {
|
|
return Model.newSuccess(wuYeService.queryUserHelpAnaly(userId, queryDate));
|
|
return Model.newSuccess(wuYeService.queryUserHelpAnaly(userId, queryDate));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping("/wuye/userHelpAnaly1")
|
|
|
|
+ public Model<List<UserHelpAnaly>> taskQuery1(@Pd(name = "queryDate") String queryDate, @Pd(name = "userId") Long userId) {
|
|
|
|
+ List<UserHelpAnaly> lst = new ArrayList<>();
|
|
|
|
+ lst.add(wuYeService.queryUserHelpAnaly(userId, queryDate));
|
|
|
|
+ return Model.newSuccess(lst);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|