From 96b224b8d5fa87dc33324015b01e12e1b68ded21 Mon Sep 17 00:00:00 2001 From: hupeng Date: Thu, 10 Jan 2019 21:49:40 +0800 Subject: [PATCH] =?UTF-8?q?[B=E7=AB=AF][=E4=BF=AE=E5=A4=8D]:=E5=BD=93?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E7=9A=84=E5=8D=A1=E5=88=B8=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=B8=8D=E5=AF=B9=E6=97=B6=E8=BF=94=E5=9B=9E=E6=89=BE?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E5=8D=A1=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxCouponOrderServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java index 9c70a43ef..7ca71168d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java @@ -226,8 +226,12 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { logger.error("商户不存在:" + bUserId); throw new MallinkException(ErrorCode.MERCHANT_INFO_NOT_FOUND); } - - WxCouponOrderCVo wxCouponOrderCVo = wxCouponOrderMapper.findDetailOfCUser(Long.valueOf(couponOrderId)); + WxCouponOrderCVo wxCouponOrderCVo = null; + try { + wxCouponOrderCVo = wxCouponOrderMapper.findDetailOfCUser(Long.valueOf(couponOrderId)); + } catch (Exception e) { + return new ResultData(ErrorCode.COUPON_ORDER_IS_NULL); + } if (wxCouponOrderCVo == null) return new ResultData(ErrorCode.COUPON_ORDER_IS_NULL); return new ResultData(wxCouponOrderCVo);