| | |
| | | } |
| | | |
| | | /** |
| | | * 根据农户编号获取卡信息 |
| | | * @param clientNum 农户编号 |
| | | * 根据水卡编号获取卡信息 |
| | | * @param cardNum 水卡编号 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "根据农户编号获取卡信息", description = "根据农户编号获取对应的卡信息") |
| | | @Operation(summary = "根据水卡编号获取卡信息", description = "根据水卡编号获取对应的卡信息") |
| | | @ApiResponses(value = { |
| | | @ApiResponse( |
| | | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, |
| | |
| | | schema = @Schema(implementation = VoCardByClientNum.class))} |
| | | ) |
| | | }) |
| | | @GetMapping(path = "getcardbyclientnum") |
| | | @GetMapping(path = "getcardbycardnum") |
| | | @SsoAop() |
| | | public BaseResponse<VoCardByClientNum> getCardByClientNum(@RequestParam String clientNum){ |
| | | public BaseResponse<VoCardByClientNum> getCardByCardNum(@RequestParam String cardNum){ |
| | | try { |
| | | VoCardByClientNum res = cardSv.getCardByClientNum(clientNum); |
| | | VoCardByClientNum res = cardSv.getCardByCardNum(cardNum); |
| | | if (res == null) { |
| | | return BaseResponseUtils.buildFail("未找到对应的卡信息"); |
| | | } |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("根据农户编号查询卡信息异常", e); |
| | | log.error("根据水卡编号查询卡信息异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | | } |
| | | } |