| | |
| | | private PestManager pestManager; |
| | | @Autowired |
| | | private ConfigGasImg gasImg; |
| | | /** |
| | | * 临时页面 |
| | | * |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | @RequestMapping("/pest-temp") |
| | | public ModelAndView newGas( |
| | | @RequestParam(value = "depotId", required = false) String depotId) { |
| | | ModelAndView view = new ModelAndView(); |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(null); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | view.addObject(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | | view.addObject("bizType", BizType.PEST.getCode()); |
| | | |
| | | String deptId = ContextUtil.subDeptId(user); |
| | | view.addObject("deptId", deptId); |
| | | |
| | | view.setViewName("admin/pest/temp"); |
| | | return view; |
| | | } |
| | | |
| | | /** |
| | | * 实际使用页面 |
| | |
| | | @RequestParam(value = "deptId", required = false) String deptId) { |
| | | ModelAndView view = new ModelAndView(); |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(null); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | view.addObject(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | | |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(user); |
| | | } |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(deptId); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | |
| | | view.addObject("bizType", BizType.PEST.getCode()); |
| | | |
| | | //获取当前用户所在的分库名称 |