|  |  | 
 |  |  | package com.dy.pipIrrModel.crops; | 
 |  |  |  | 
 |  |  | import com.dy.common.aop.SsoAop; | 
 |  |  | import com.dy.common.util.DateTime; | 
 |  |  | import com.dy.common.webUtil.BaseResponse; | 
 |  |  | import com.dy.common.webUtil.BaseResponseUtils; | 
 |  |  | import com.dy.common.webUtil.QueryResultVo; | 
 |  |  | 
 |  |  |                             schema = @Schema(implementation = VoCrops.class))} | 
 |  |  |             ) | 
 |  |  |     }) | 
 |  |  |     @PostMapping(path = "some") | 
 |  |  |     @GetMapping(path = "some") | 
 |  |  |     @SsoAop() | 
 |  |  |     public BaseResponse<QueryResultVo<List<VoCrops>>> some(@RequestBody CropsQo qo){ | 
 |  |  |     public BaseResponse<QueryResultVo<List<VoCrops>>> some(CropsQo qo){ | 
 |  |  |         try { | 
 |  |  |             QueryResultVo<List<VoCrops>> res = this.sv.selectSome(qo) ; | 
 |  |  |             return BaseResponseUtils.buildSuccess(res); | 
 |  |  | 
 |  |  |             return BaseResponseUtils.buildException(e.getMessage()) ; | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 客户端请求得到所有作物数据 | 
 |  |  |      * @return 所有作物数据 | 
 |  |  |      */ | 
 |  |  |     @Operation(summary = "获得所有作物", description = "返回所有作物数据") | 
 |  |  |     @ApiResponses(value = { | 
 |  |  |             @ApiResponse( | 
 |  |  |                     responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
 |  |  |                     description = "返回所有作物数据(BaseResponse.content:QueryResultVo[{}])", | 
 |  |  |                     content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
 |  |  |                             schema = @Schema(implementation = VoCrops.class))} | 
 |  |  |             ) | 
 |  |  |     }) | 
 |  |  |     @GetMapping(path = "all") | 
 |  |  |     @SsoAop() | 
 |  |  |     public BaseResponse<List<VoCrops>> all(){ | 
 |  |  |         try { | 
 |  |  |             List<VoCrops> res = this.sv.selectAll() ; | 
 |  |  |             return BaseResponseUtils.buildSuccess(res); | 
 |  |  |         } catch (Exception e) { | 
 |  |  |             log.error("查询作物异常", e); | 
 |  |  |             return BaseResponseUtils.buildException(e.getMessage()) ; | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      * 新增保存作物 | 
 |  |  |      * @param po 新增保存作物form表单对象 |