jyc 1 hónapja
szülő
commit
f4447422ca

+ 6 - 0
alien-store/src/main/java/shop/alien/store/service/impl/PlatformStoreCouponServiceImpl.java

@@ -260,6 +260,12 @@ public class PlatformStoreCouponServiceImpl implements PlatformStoreCouponServic
             if (lifeGroupBuyMain.getStartTimeType() == 0 && lifeGroupBuyMain.getStatus() == 5) {
                 lifeGroupBuyMain.setStartTimeValue(new Date());
             }
+
+            //审核通过 开始时间是手动设置且不在当前时间内
+            if (lifeGroupBuyMain.getStartTimeType() == 1 && lifeGroupBuyMain.getStatus() == 5 && lifeGroupBuyMain.getStartTimeValue().after(new Date())) {
+                lifeGroupBuyMain.setStatus(2);
+            }
+
             // 将待办列表状态设置为已审核
             LambdaUpdateWrapper<WebAudit> wrapper = new LambdaUpdateWrapper<>();
             wrapper.eq(WebAudit::getLifeGroupPackageId, id);