多单位版国产化地质资料管理系统
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
package com.zbooksoft.gdmis.controller;
 
import com.ruili.wcp.service.config.ModuleService;
import com.zbooksoft.gdmis.service.*;
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.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
 
 
/**
 * @Description:
 * @Author: zhai
 * @Date: 2024/9/3
 **/
@Controller
@RequestMapping("/common")
public class CommonController {
//    @Autowired
//    JdbcTemplate jdbcTemplate;
//    @Autowired
//    ModuleService moduleService;
//
//    @Autowired
//    UserCheckService userCheckService;
//
//    @Autowired
//    CatAjjxxService catAjjxxService;
//    @Autowired
//    BorrowDetailService borrowDetailService;
//
//    @Autowired
//    ProcessingDetailService processingDetailService;
//
//    @Autowired
//    UtilizationUserService utilizationUserService;
 
    private static final Logger logger = LoggerFactory.getLogger(CommonController.class);
 
 
    /**
     * 利用提示
     *
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/commonTips")
    @RequiresUser
    public ModelAndView commonTips(Integer addNum, String type, Integer repeatNum, Integer existFileNum, Integer existItemNum, String urlPath) throws Exception {
        ModelAndView mav = new ModelAndView("gh/common/commonTips");
        mav.addObject("addNum", addNum);
        mav.addObject("repeatNum", repeatNum);
        mav.addObject("type", type);
        mav.addObject("existFileNum", existFileNum);
        mav.addObject("existItemNum", existItemNum);
        mav.addObject("existItemNum", existItemNum);
        mav.addObject("urlPath", urlPath);
        return mav;
    }
 
    /**
     * 关联附件提示
     *
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/relationFileTips")
    @RequiresUser
    public ModelAndView relationFileTips(Integer ysTotal, Integer ysSuccess, Integer ysFailed) throws Exception {
        ModelAndView mav = new ModelAndView("gh/common/relationFileTips");
        mav.addObject("ysTotal", ysTotal);
        mav.addObject("ysSuccess", ysSuccess);
        mav.addObject("ysFailed", ysFailed);
        return mav;
    }
}