| | |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/getSimpleProjects") |
| | | public BaseResponse<QueryResultVo<List<VoProjectSimple>>> getSimpleProjects(QoProject qo) { |
| | | public BaseResponse<List<VoProjectSimple>> getSimpleProjects(QoProject qo) { |
| | | try { |
| | | QueryResultVo<List<VoProjectSimple>> res = irrigationSv.getSimpleProjects(qo); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | return BaseResponseUtils.buildSuccess(irrigationSv.getSimpleProjects(qo)); |
| | | } catch (Exception e) { |
| | | log.error("获取项目记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | |
| | | if(qo.getProjectId() == null) { |
| | | return BaseResponseUtils.buildErrorMsg("请选择项目"); |
| | | } |
| | | |
| | | |
| | | try { |
| | | QueryResultVo<List<VoGroupSimple>> res = irrigationSv.getSimpleGroups(qo); |