记得上下班打卡 | git大法好,push需谨慎

Commit 4bae3f3b authored by 张国柄's avatar 张国柄

opt;

parent 1e48bb9c
......@@ -199,9 +199,12 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
initCoupon.setValMinus(parameter.getValMinus());
initCoupon.setOverlay(parameter.getOverlay());
initCoupon.setValidity(parameter.getValidity());
initCoupon.setRedeemValidity(parameter.getRedeemValidity());
Integer redeemValidity = parameter.getRedeemValidity();
if (null != redeemValidity || redeemValidity > 0) {
initCoupon.setRedeemValidity(redeemValidity);
initCoupon.setRedeemStart(eventAt.with(LocalTime.MIN));
initCoupon.setRedeemStop(eventAt.plusDays(parameter.getRedeemValidity()).withHour(23).withMinute(59).withSecond(59));
initCoupon.setRedeemStop(eventAt.plusDays(redeemValidity).withHour(23).withMinute(59).withSecond(59));
}
initCoupon.setEffectAt(eventAt.with(LocalTime.MIN));
initCoupon.setExpireAt(eventAt.plusDays(parameter.getValidity()).withHour(23).withMinute(59).withSecond(59));
initCoupon.setOperator(ShiroUtils.getLoginName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment