|  |  |  | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoIr.IrProject; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoPr.PrIntake; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoProject; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoProjectOne; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voPr.VoIntake; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSe.VoActiveCard; | 
|---|
|  |  |  | import com.dy.pipIrrIrrigate.result.IrrigateResultCode; | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "one") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<IrProject> one(@RequestParam Long id) { | 
|---|
|  |  |  | IrProject irProject = this.projectSv.selectById(id); | 
|---|
|  |  |  | if (irProject == null) { | 
|---|
|  |  |  | return BaseResponseUtils.buildFail(IrrigateResultCode.NO_PROJECT.getMessage()); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | public BaseResponse<VoProjectOne> one(@RequestParam Long id) { | 
|---|
|  |  |  | VoProjectOne irProject = this.projectSv.selectById(id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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); | 
|---|