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; } }