|
|
|
@@ -80,10 +80,8 @@ public class WxCouponPasswordController extends BaseController { |
|
|
|
if (couponPassword.getIsStop().intValue() == EnumYesOrNo.YES.getCode().intValue()) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"卡密已经停用"); |
|
|
|
} |
|
|
|
|
|
|
|
WxCUserBasicInfo member = userService.getById(memberId,getFinalTenantId()); |
|
|
|
if(member == null) { |
|
|
|
logger.error("会员用户未找到: " + memberId); |
|
|
|
throw new MallinkException(ErrorCode.USER_IS_EMPTY.getCode(), "会员用户未找到" + memberId); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -92,9 +90,11 @@ public class WxCouponPasswordController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
} |
|
|
|
if (coupon.getStatus().equals(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode())) { |
|
|
|
logger.error("此券已作废:" + coupon.getId()); |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF); |
|
|
|
} |
|
|
|
if (coupon.getPrice() <= 0) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),"面值未设置,请联系管理员."); |
|
|
|
} |
|
|
|
|
|
|
|
// 卡密领取卡券 |
|
|
|
Integer pwdStatus = couponPassword.getStatus(); |
|
|
|
|