/** * 删除记录. * * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(value = "delete") @ResponseBody public requestJson delete(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【环境影响登记告知承诺附件三删除】", user.getName()); requestJson j = new requestJson(); String resultVO = ""; resultVO = this.buSpywHjyxdjgzcns2Service.delete(json.getMsg()); j.setMsg(resultVO); return j; }
/** * 修改记录. * * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(params = "update") @ResponseBody protected requestJson update(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【外出登记修改】", user.getName()); requestJson j = new requestJson(); String resultVO = ""; resultVO = this.waiChuDengJiService.update(json.getMsg()); j.setMsg(resultVO); return j; }
/** * 删除记录. * * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(params = "delete") @ResponseBody public requestJson delete(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【外出登记删除】", user.getName()); requestJson j = new requestJson(); String wcdjId = request.getParameter("wcdjId"); boolean flag = this.waiChuDengJiService.delete(wcdjId); j.setSuccess(flag); return j; }
/** * 查询质监员信息 * * @param json * @return * @throws Exception */ @RequestMapping(params = "getZJY") @ResponseBody public requestJson getZJY(final HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【查询工程信息】", user.getName()); requestJson j = new requestJson(); String domresult = ""; domresult = this.projectsGongchengService.getZJY(); j.setMsg(domresult); return j; }
/** * 删除记录. * * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(params = "delete") @ResponseBody public requestJson delete(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【施工内容删除】", user.getName()); requestJson j = new requestJson(); String resultVO = ""; resultVO = this.projectsGongchengService.delete(json.getMsg()); j.setMsg(resultVO); return j; }
/** * 下载(转 PDF) * * @param json * @return * @throws Exception */ @RequestMapping(value = "download") @ResponseBody public String downloadCondition( final HttpServletRequest request, final HttpServletResponse response, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>>执行操作【资质转PDF】", user.getName()); requestJson j = new requestJson(); String domresult = ""; return this.buSpywJgysbaService.toword(response, request.getParameter("uid")); }
/** * 修改记录. * * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(value = "update") @ResponseBody protected requestJson update(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【竣工验收备案修改】", user.getName()); requestJson j = new requestJson(); String resultVO = ""; resultVO = this.buSpywJgysbaService.update(json.getMsg()); j.setMsg(resultVO); return j; }
/** * 查询json * * @param json * @return * @throws Exception */ @RequestMapping(params = "query") @ResponseBody public requestJson queryCondition(final HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【外出登记查询】", user.getName()); requestJson j = new requestJson(); String domresult = ""; domresult = this.waiChuDengJiService.queryCondition(json.getMsg()); j.setMsg(domresult); return j; }
/** * 查询json * * @param json * @return * @throws Exception */ @RequestMapping(value = "query") @ResponseBody public requestJson queryCondition(final HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【环境影响登记告知承诺附件三查询】", user.getName()); requestJson j = new requestJson(); String domresult = ""; domresult = this.buSpywHjyxdjgzcns2Service.queryCondition(json.getMsg()); j.setMsg(domresult); return j; }
/** * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(params = "queryStatusNums") @ResponseBody public requestJson queryStatusNums(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【queryStatusNums】", user.getName()); String resultVO = ""; requestJson j = new requestJson(); String projectsid = request.getParameter("projectsid"); resultVO = this.projectsGongchengService.queryStatusNums(projectsid); j.setMsg(resultVO); return j; }
/** * * 查询json * * @param json * @return * @throws Exception */ @RequestMapping(value = "download") @ResponseBody public requestJson download(final HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【施工许可申请表-下载】", user.getName()); requestJson j = new requestJson(); String domresult = ""; String id = request.getParameter("id"); domresult = this.buSpywHjyxdjgzcns2Service.download(id); j.setMsg(domresult); return j; }
@RequestMapping(params = "detail") @ResponseBody public requestJson getById(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【外出登记明细】", user.getName()); requestJson j = new requestJson(); String wcdjId = request.getParameter("wcdjId"); String resultVo = ""; resultVo = this.waiChuDengJiService.getById(wcdjId); j.setMsg(resultVo); return j; }
/** * 查询json * * @param json * @return * @throws Exception */ @RequestMapping(params = "query") @ResponseBody public requestJson queryCondition(final HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【施工内容查询】", user.getName()); requestJson j = new requestJson(); String domresult = ""; Map map = new HashMap(); map.put("type", request.getParameter("type")); map.put("status", request.getParameter("status")); domresult = this.projectsGongchengService.queryCondition(json.getMsg(), map); j.setMsg(domresult); return j; }
/** * 修改记录. * * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(value = "update") @ResponseBody protected requestJson update(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【环境影响登记告知承诺附件三修改】", user.getName()); requestJson j = new requestJson(); String resultVO = ""; Map<String, AtFileuploadVO> fils = null; if (request.getSession().getAttribute(Constants.FILE_KEY) != null) { fils = (Map<String, AtFileuploadVO>) request.getSession().getAttribute(Constants.FILE_KEY); } resultVO = this.buSpywHjyxdjgzcns2Service.update(json.getMsg(), fils); j.setMsg(resultVO); return j; }
/** * 修改外出记录状态 -----修改为返回. * * @param request * @param json * @return * @throws Exception * @since v1.00 */ @RequestMapping(params = "updateState") @ResponseBody public requestJson updateState(HttpServletRequest request, requestJson json) throws Exception { User user = RestContext.getCurrentUser(); logger.info("<{}>执行操作【外出登记修改】", user.getName()); requestJson j = new requestJson(); String id = request.getParameter("wcdjId"); String domresult = ""; try { waiChuDengJiService.updateState(id); domresult = "success"; } catch (Exception e) { e.printStackTrace(); } j.setMsg(domresult); return j; }