CZT
2023-09-14 db72a27d10fdc4de0926fb8c7cc411ec0d4ea51b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.ld.igds.web;
 
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
 
/**
 * 测试使用
 *
 * @author: andy.jia
 * @description:
 * @version:
 * @data:2019年12月17日
 */
@Controller
@RequestMapping
public class TestController {
 
 
    /**
     * 单组织大屏跳转
     *
     * @return
     */
    @RequestMapping("/test/grain-detail")
    public ModelAndView singleScreen() {
        // 用户信息
        ModelAndView view = new ModelAndView();
        view.setViewName("test/grainDetail");
        return view;
    }
 
    @RequestMapping("/test/print")
    public ModelAndView testPrint() {
        ModelAndView view = new ModelAndView();
        view.setViewName("test/demoPrint");
        return view;
    }
 
    @RequestMapping("/test/print-check")
    public ModelAndView testPrintCheck() {
        ModelAndView view = new ModelAndView();
        view.setViewName("test/demoCheckPrint");
        return view;
    }
 
    @RequestMapping("/test/inout/print/2019")
    public ModelAndView testPrint2019() {
        ModelAndView view = new ModelAndView();
        view.setViewName("test/print-out-2019");
        return view;
    }
 
    @RequestMapping("/test/gas-print")
    public ModelAndView testGasPrint() {
        ModelAndView view = new ModelAndView();
        view.setViewName("test/demoGasPrint");
        return view;
    }
 
    @RequestMapping("/test/demp")
    public ModelAndView testDemo(
            @RequestParam(name = "t", required = false) String t) {
        ModelAndView view = new ModelAndView();
 
        String desc = "……功能调试中……";
 
        if (StringUtils.isNotEmpty(t)) {
            if ("security-no".equals(t)) {
                desc = "……待三维模型图绘制完成后展示……";
            }
        }
        view.addObject("desc", desc);
 
        view.setViewName("test/demo");
        return view;
    }
 
    @RequestMapping("/test/no-access")
    public ModelAndView testNoAccess(
            @RequestParam(name = "t", required = false) String t) {
        ModelAndView view = new ModelAndView();
 
        String desc = "……您没有权限,请联系系统管理员……";
        view.addObject("desc", desc);
        view.setViewName("test/demo");
        return view;
    }
}