瀏覽代碼

bugfix:代金券审核后开始

lyx 3 月之前
父節點
當前提交
63284e35ed

+ 2 - 1
alien-store/src/main/java/shop/alien/store/service/impl/PlatformStoreCouponServiceImpl.java

@@ -237,12 +237,13 @@ public class PlatformStoreCouponServiceImpl implements PlatformStoreCouponServic
             if (status == 2 && coupon.getStartDate().before(now) && coupon.getEndDate().after(now)) {
                 status = 5;
             }
-            coupon.setStatus(status);
             coupon.setApprovalComments(comment);
             // 审核后开始
             if ("0".equals(coupon.getSaleTimeStrType())) {
                 coupon.setStartDate(new Date());
+                status = 5;
             }
+            coupon.setStatus(status);
             // 将待办列表状态设置为已审核
             LambdaUpdateWrapper<WebAudit> wrapper = new LambdaUpdateWrapper<>();
             wrapper.eq(WebAudit::getCouponId, id);