|
|
@@ -145,10 +145,10 @@ public class LifeCouponServiceImpl extends ServiceImpl<LifeCouponMapper, LifeCou
|
|
|
lifeCouponNew.setStatus(4);
|
|
|
lifeCouponMapper.update(lifeCouponNew, new LambdaUpdateWrapper<LifeCoupon>().eq(LifeCoupon::getSingleQty, 0));
|
|
|
//如果当前时间小于开始时间,则修改status状态为未开始 状态为2
|
|
|
- LifeCoupon lifeCouponNew1 = new LifeCoupon();
|
|
|
- lifeCouponNew1.setStoreId(storeId);
|
|
|
- lifeCouponNew1.setStatus(2);
|
|
|
- lifeCouponMapper.update(lifeCouponNew1, new LambdaUpdateWrapper<LifeCoupon>().gt(LifeCoupon::getStartDate, LocalDateTime.now()));
|
|
|
+// LifeCoupon lifeCouponNew1 = new LifeCoupon();
|
|
|
+// lifeCouponNew1.setStoreId(storeId);
|
|
|
+// lifeCouponNew1.setStatus(2);
|
|
|
+// lifeCouponMapper.update(lifeCouponNew1, new LambdaUpdateWrapper<LifeCoupon>().gt(LifeCoupon::getStartDate, LocalDateTime.now()));
|
|
|
return lifeCouponMapper.selectPage(lifeCouponIPage, wrapper);
|
|
|
}
|
|
|
|