|  |  | 
 |  |  | 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; | 
 |  |  | 
 |  |  |     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()) ; |