ec768bdfcb0a31ba1a0ef0f3ac131d52695d197a.svn-base 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package org.jeecg.modules.demo.test.controller;
  2. import lombok.extern.slf4j.Slf4j;
  3. import org.jeecg.common.system.base.controller.JeecgController;
  4. import org.jeecg.modules.demo.test.entity.JeecgDemo;
  5. import org.jeecg.modules.demo.test.service.IJeecgDemoService;
  6. import org.springframework.stereotype.Controller;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.servlet.ModelAndView;
  9. import java.util.ArrayList;
  10. import java.util.List;
  11. /**
  12. * @Description: 大屏预览入口
  13. * @Author: scott
  14. * @Date:2019-12-12
  15. * @Version:V1.0
  16. */
  17. @Slf4j
  18. @Controller
  19. @RequestMapping("/test/bigScreen/templat")
  20. public class BigScreenTemplatController extends JeecgController<JeecgDemo, IJeecgDemoService> {
  21. /**
  22. * @param modelAndView
  23. * @return
  24. */
  25. @RequestMapping("/html")
  26. public ModelAndView ftl(ModelAndView modelAndView) {
  27. modelAndView.setViewName("demo3");
  28. List<String> userList = new ArrayList<String>();
  29. userList.add("admin");
  30. userList.add("user1");
  31. userList.add("user2");
  32. log.info("--------------test--------------");
  33. modelAndView.addObject("userList", userList);
  34. return modelAndView;
  35. }
  36. /**
  37. * 生产销售监控模版
  38. * @param modelAndView
  39. * @return
  40. */
  41. @RequestMapping("/index1")
  42. public ModelAndView index1(ModelAndView modelAndView) {
  43. modelAndView.setViewName("/bigscreen/template1/index");
  44. return modelAndView;
  45. }
  46. /**
  47. * 智慧物流监控模版
  48. * @param modelAndView
  49. * @return
  50. */
  51. @RequestMapping("/index2")
  52. public ModelAndView index2(ModelAndView modelAndView) {
  53. modelAndView.setViewName("/bigscreen/template2/index");
  54. return modelAndView;
  55. }
  56. }