| | |
| | | @SsoAop() |
| | | public BaseResponse<VoProjectOne> one(@RequestParam Long id) { |
| | | VoProjectOne irProject = this.projectSv.selectById(id); |
| | | if (irProject == null) { |
| | | return BaseResponseUtils.buildFail(IrrigateResultCode.NO_PROJECT.getMessage()); |
| | | } else { |
| | | |
| | | return BaseResponseUtils.buildSuccess(irProject); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | }) |
| | | @GetMapping(path = "some") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoProject>>> getIntakes(QueryVo vo) { |
| | | public BaseResponse<QueryResultVo<List<VoProject>>> getProjects(QueryVo vo) { |
| | | try { |
| | | QueryResultVo<List<VoProject>> res = projectSv.getProjects(vo); |
| | | if (res == null) { |
| | | return BaseResponseUtils.buildFail(IrrigateResultCode.NO_PROJECT.getMessage()); |
| | | } |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("获取项目记录异常", e); |