...
|
...
|
@@ -181,7 +181,7 @@ public class CouponServiceImpl implements ICouponService,IBusinessExportService{ |
|
|
if (!couponTypeEnum.isPresent()){
|
|
|
throw new ServiceException(400, "错误:不合法的优惠券类型");
|
|
|
}
|
|
|
// parseSkupForbidType(req);
|
|
|
//parseSkupForbidType(req);
|
|
|
req.setSkupForbidType(SKUP_FORBID_TYPE_NONE);
|
|
|
parseSkupAllowType(req);
|
|
|
|
...
|
...
|
@@ -233,6 +233,12 @@ public class CouponServiceImpl implements ICouponService,IBusinessExportService{ |
|
|
// 优惠券说明
|
|
|
couponSaveUpdateReq.setRemark(req.getRemark());
|
|
|
|
|
|
//结束时间
|
|
|
Integer endTime;
|
|
|
if (Objects.nonNull(endTime=req.getEndTime())){
|
|
|
couponSaveUpdateReq.setEndTime(endTime);
|
|
|
}
|
|
|
|
|
|
LOGGER.info("has coupon send, saveOrUpdateCoupon#update,req is {}",req);
|
|
|
couponMapper.updateByCouponSaveUpdateReq(couponSaveUpdateReq);
|
|
|
}else{
|
...
|
...
|
@@ -406,6 +412,11 @@ public class CouponServiceImpl implements ICouponService,IBusinessExportService{ |
|
|
return new PageResponseBO<>(total, result, req.getRows(), req.getPage());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 作废用户券
|
|
|
* @param request
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public ApiResponse invalidateUserCoupon(UserCouponBaseRequest request) {
|
|
|
if (request == null || StringUtils.isEmpty(request.getCouponCode()) || Objects.isNull(request.getUid())) {
|
...
|
...
|
|