多单位版国产化地质资料管理系统
zs
2025-12-18 4f0d9bde31a80f6279e26466250da7716eec627f
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
package com.zbooksoft.gdmis.controller;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruili.wcp.web.model.AjaxResponse;
import com.ruili.wcp.web.model.ErrorInfo;
import com.zbooksoft.gdmis.data.entity.CheckQuestion;
import com.zbooksoft.gdmis.service.CheckQuestionService;
import org.apache.shiro.authz.annotation.RequiresUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
 
import java.util.List;
 
 
/**
 * @author 15280
 */
@Controller
@RequestMapping("/gdMisManage")
public class GdMisManageController {
    @Autowired
    CheckQuestionService checkQuestionService;
 
    private static final Logger logger = LoggerFactory.getLogger(GdMisManageController.class);
 
 
    @RequestMapping({"/selectRegion"})
    @RequiresUser
    public ModelAndView selectRegion(String hasSelectRegion) throws Exception {
 
        ModelAndView mav = new ModelAndView("gh/gdMisManage/selectRegion");
        mav.addObject("hasSelectRegion", hasSelectRegion);
        return mav;
    }
 
    @RequestMapping({"/selectCheckQuestion"})
    @RequiresUser
    public ModelAndView selectCheckQuestion() throws Exception {
 
        ModelAndView mav = new ModelAndView("gh/gdMisManage/selectCheckQuestion");
        return mav;
    }
 
    @RequestMapping({"/getCheckQuestion"})
    @ResponseBody
    @RequiresUser
    public Object getCheckQuestion(String question) {
        try {
            if (question != null && !question.equals("")) {
                QueryWrapper<CheckQuestion> checkQuestionQueryWrapper = new QueryWrapper<>();
                checkQuestionQueryWrapper.like("question", question);
                return checkQuestionService.list(checkQuestionQueryWrapper);
            }
            List<CheckQuestion> checkQuestionList = checkQuestionService.list();
            return checkQuestionList;
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
            return new AjaxResponse(new ErrorInfo("导入失败"), false);
        }
    }
 
    @RequestMapping({"/selectMineral"})
    @RequiresUser
    public ModelAndView mineralSelection() throws Exception {
        ModelAndView mav = new ModelAndView("gh/gdMisManage/selectMineral");
        return mav;
    }
 
    @RequestMapping({"/selectInflectionPoint"})
    @RequiresUser
    public ModelAndView selectInflectionPoint() throws Exception {
        ModelAndView mav = new ModelAndView("gh/gdMisManage/selectInflectionPoint");
        return mav;
    }
 
    @RequestMapping({"/selectClassInfo"})
    @RequiresUser
    public ModelAndView selectClassInfo() throws Exception {
        ModelAndView mav = new ModelAndView("gh/gdMisManage/selectClassified");
        return mav;
    }
 
 
}