Ver Fonte

产品需求,优惠券启用后,也可以修改领取时间

zouxuan há 1 ano atrás
pai
commit
07a4a0dcb2

+ 2 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SysCouponServiceImpl.java

@@ -74,6 +74,8 @@ public class SysCouponServiceImpl extends BaseServiceImpl<Integer, SysCoupon> im
                 oldCoupon.setWarningStatus(0);
             }
             oldCoupon.setUseCondition(sysCoupon.getUseCondition());
+            oldCoupon.setStartDate(sysCoupon.getStartDate());
+            oldCoupon.setEndDate(sysCoupon.getEndDate());
             sysCouponDao.update(oldCoupon);
         } else {
             switch (sysCoupon.getType()) {