|
|
|
@@ -92,15 +92,16 @@ public class WxGameServiceImpl implements WxGameService { |
|
|
|
wxCouponOrder.setcUserId(userId); |
|
|
|
wxCouponOrder.setOrderId(orderId); |
|
|
|
|
|
|
|
try { |
|
|
|
wxCouponOrder = wxCouponOrderMapper.selectOne(wxCouponOrder); |
|
|
|
} catch (Exception e){ |
|
|
|
return new ResultData(ErrorCode.COUPON_ORDER_IS_NULL); |
|
|
|
} |
|
|
|
|
|
|
|
if (wxCouponOrder == null) |
|
|
|
return new ResultData(ErrorCode.COUPON_ORDER_IS_NULL); |
|
|
|
if (orderId != 0) { |
|
|
|
try { |
|
|
|
wxCouponOrder = wxCouponOrderMapper.selectOne(wxCouponOrder); |
|
|
|
} catch (Exception e) { |
|
|
|
return new ResultData(ErrorCode.COUPON_ORDER_IS_NULL); |
|
|
|
} |
|
|
|
|
|
|
|
if (wxCouponOrder == null) |
|
|
|
return new ResultData(ErrorCode.COUPON_ORDER_IS_NULL); |
|
|
|
} |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
WxGameActionLog wxGameActionLog = new WxGameActionLog(); |
|
|
|
wxGameActionLog.setUserId(userId); |
|
|
|
|