瀏覽代碼

服务中台 团购审核

qxy 3 月之前
父節點
當前提交
945e5afb79

+ 1 - 1
alien-entity/src/main/java/shop/alien/mapper/PlatformStoreLifeGroupBuyMainMapper.java

@@ -15,7 +15,7 @@ import java.util.List;
 public interface PlatformStoreLifeGroupBuyMainMapper extends BaseMapper<LifeGroupBuyMain> {
 
     @Select("SELECT\n" +
-            "\tlife.id,store.store_name,life.inventory_num,life.group_name,user.phone,life.created_time,life.start_time_value,life.end_time,life.status\n" +
+            "\tlife.id,store.store_name,life.inventory_num,life.group_name,user.phone,life.created_time,life.start_time_type,life.start_time_value,life.end_time,life.status\n" +
             "FROM\n" +
             "\tlife_group_buy_main life\n" +
             "\tJOIN store_info store ON store.id = life.store_id\n" +

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

@@ -255,7 +255,7 @@ public class PlatformStoreCouponServiceImpl implements PlatformStoreCouponServic
             lifeGroupBuyMain.setStatus(status);
             lifeGroupBuyMain.setApprovalComments(comment);
             // 审核通过后开始
-            if (lifeGroupBuyMain.getStartTimeType() == 0 && lifeGroupBuyMain.getStatus() == 5) {
+            if (lifeGroupBuyMain.getStartTimeType() == 0 && lifeGroupBuyMain.getStatus() == 2) {
                 lifeGroupBuyMain.setStartTimeValue(new Date());
             }
             // 将待办列表状态设置为已审核