From 0087f04462b9521f9098fa54438904e1ccffd04c Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期六, 19 十月 2024 11:52:31 +0800 Subject: [PATCH] 2024-10-19 朱宝民 优化获取未关阀记录接口,增加强制隐藏未关阀记录接口 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/clientCard/ClientCardCtrl.java | 28 +++++++--------------------- 1 files changed, 7 insertions(+), 21 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/clientCard/ClientCardCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/clientCard/ClientCardCtrl.java index 8685ae7..dda7296 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/clientCard/ClientCardCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/clientCard/ClientCardCtrl.java @@ -11,7 +11,6 @@ import com.dy.pipIrrGlobal.voSe.VoCards2; import com.dy.pipIrrSell.clientCard.qo.QoCards; import com.dy.pipIrrSell.clientCard.qo.QoCards2; -import com.dy.pipIrrSell.result.SellResultCode; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Schema; @@ -42,7 +41,7 @@ private final ClientCardSv clientCardSv; /** - * 鑾峰彇鎸囧畾鐢ㄦ埛鍚嶄笅鍏ㄩ儴姘村崱 + * 鑾峰彇鎸囧畾鐢ㄦ埛鍚嶄笅鍏ㄩ儴姘村崱锛堢墿鐞嗗崱+铏氭嫙鍗★級 * @param clientId * @return */ @@ -136,15 +135,6 @@ @GetMapping(path = "getcards") @SsoAop() public BaseResponse<QueryResultVo<List<VoCards>>> getcards(QoCards vo){ - // 濡傛灉浼犲叆鐨勬槸10浣嶇殑姘村崱缂栧彿锛屽崌涓�17浣嶆按鍗$紪鍙� - if(vo != null && vo.getCardNum() != null) { - String cardNumS = String.valueOf(vo.getCardNum()).trim(); - if(cardNumS.length() == 10) { - cardNumS = "100000" + cardNumS.substring(0,6) + "0" + cardNumS.substring(6); - vo.setCardNum(Long.parseLong(cardNumS)); - } - } - try { QueryResultVo<List<VoCards>> res = clientCardSv.getCards(vo); return BaseResponseUtils.buildSuccess(res); @@ -175,11 +165,6 @@ QueryResultVo<List<VoCards>> res = clientCardSv.getUnreplaced(vo); return BaseResponseUtils.buildSuccess(res); - //if(res.itemTotal != null && res.itemTotal > 0) { - // return BaseResponseUtils.buildSuccess(res); - //}else { - // return BaseResponseUtils.buildFail(SellResultCode.THE_CARD_NOT_EXIST.getMessage()); - //} } catch (Exception e) { log.error("鏌ヨ鍐滄埛寮傚父", e); return BaseResponseUtils.buildException(e.getMessage()) ; @@ -196,11 +181,12 @@ public BaseResponse<QueryResultVo<List<VoCards2>>> getCardsByClientNameAndPhone(QoCards2 vo){ try { QueryResultVo<List<VoCards2>> res = clientCardSv.getCardsByClientNameAndPhone(vo); - if(res.itemTotal != null && res.itemTotal > 0) { - return BaseResponseUtils.buildSuccess(res); - }else { - return BaseResponseUtils.buildFail(SellResultCode.THE_CARD_NOT_EXIST.getMessage()); - } + return BaseResponseUtils.buildSuccess(res); + //if(res.itemTotal != null && res.itemTotal > 0) { + // return BaseResponseUtils.buildSuccess(res); + //}else { + // return BaseResponseUtils.buildFail(SellResultCode.THE_CARD_NOT_EXIST.getMessage()); + //} } catch (Exception e) { log.error("鏌ヨ姘村崱寮傚父", e); return BaseResponseUtils.buildException(e.getMessage()) ; -- Gitblit v1.8.0