浏览代码

修改代金券审核状态

qxy 2 月之前
父节点
当前提交
7d871f89a7

+ 1 - 1
alien-entity/src/main/java/shop/alien/entity/store/StoreInfo.java

@@ -39,7 +39,7 @@ public class StoreInfo {
 
     @ApiModelProperty(value = "容纳人数")
     @TableField("store_capacity")
-    private Integer storeCapacity;
+    private String storeCapacity;
 
     @ApiModelProperty(value = "门店面积(1:小于20平米, 2:20~50平米, 3:50~100平米, 4:100~300平米, 5:500~1000平米, 6:大于1000平米)")
     @TableField("store_area")

+ 1 - 1
alien-entity/src/main/java/shop/alien/entity/store/dto/StoreInfoDto.java

@@ -45,7 +45,7 @@ public class StoreInfoDto {
     private String storeTel;
 
     @ApiModelProperty(value = "容纳人数")
-    private Integer storeCapacity;
+    private String storeCapacity;
 
     @ApiModelProperty(value = "门店面积(1:小于20平米, 2:20~50平米, 3:50~100平米, 4:100~300平米, 5:500~1000平米, 6:大于1000平米)")
     private Integer storeArea;

+ 4 - 4
alien-store/src/main/java/shop/alien/store/service/impl/LifeCouponServiceImpl.java

@@ -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);
     }