|
@@ -1,5 +1,6 @@
|
|
package com.rtrh.projects.web.controller.msglog;
|
|
package com.rtrh.projects.web.controller.msglog;
|
|
|
|
|
|
|
|
+import com.rtrh.projects.modules.system.service.SecUserService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
@@ -12,6 +13,8 @@ import com.rtrh.projects.modules.projects.service.SubInfoService;
|
|
import com.rtrh.projects.modules.projects.vo.SubInfoVO;
|
|
import com.rtrh.projects.modules.projects.vo.SubInfoVO;
|
|
import com.rtrh.projects.web.controller.BaseController;
|
|
import com.rtrh.projects.web.controller.BaseController;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping("/msgLog")
|
|
@RequestMapping("/msgLog")
|
|
public class MsgLogController extends BaseController {
|
|
public class MsgLogController extends BaseController {
|
|
@@ -19,12 +22,16 @@ public class MsgLogController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private SubInfoService subInfoService;
|
|
private SubInfoService subInfoService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SecUserService secUserService;
|
|
|
|
+
|
|
@GetMapping("/index")
|
|
@GetMapping("/index")
|
|
public ModelAndView index() {
|
|
public ModelAndView index() {
|
|
-
|
|
|
|
return new ModelAndView("/vmodules/msgLog/index.jsp");
|
|
return new ModelAndView("/vmodules/msgLog/index.jsp");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
@GetMapping("subDetail")
|
|
@GetMapping("subDetail")
|
|
public ModelAndView subDetail(ModelMap model, String subId, Boolean layer, String queryYear, String lastUrl) {
|
|
public ModelAndView subDetail(ModelMap model, String subId, Boolean layer, String queryYear, String lastUrl) {
|
|
model.put("subId", subId);
|
|
model.put("subId", subId);
|
|
@@ -38,6 +45,16 @@ public class MsgLogController extends BaseController {
|
|
return new ModelAndView("/vmodules/msgLog/subDetail.jsp");
|
|
return new ModelAndView("/vmodules/msgLog/subDetail.jsp");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping("sendMsg")
|
|
|
|
+ public ModelAndView sendMsg(ModelMap model, String subId, String content, String kind, String item) {
|
|
|
|
+ model.put("subId", subId);
|
|
|
|
+ model.put("content",content);
|
|
|
|
+ model.put("kind", kind);
|
|
|
|
+ model.put("item", item);
|
|
|
|
+ List userList = secUserService.getAllUser();
|
|
|
|
+ model.put("Users",userList);
|
|
|
|
+ return new ModelAndView("/vmodules/msgLog/sendMsg.jsp");
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
@GetMapping("kindDetail")
|
|
@GetMapping("kindDetail")
|
|
@@ -47,7 +64,6 @@ public class MsgLogController extends BaseController {
|
|
model.put("queryYear", queryYear);
|
|
model.put("queryYear", queryYear);
|
|
model.put("lastUrl", lastUrl);
|
|
model.put("lastUrl", lastUrl);
|
|
model.put("kind", kind);
|
|
model.put("kind", kind);
|
|
-
|
|
|
|
return new ModelAndView("/vmodules/msgLog/kindDetail.jsp");
|
|
return new ModelAndView("/vmodules/msgLog/kindDetail.jsp");
|
|
}
|
|
}
|
|
|
|
|