后台商品筛选上下架问题处理

This commit is contained in:
Chopper
2021-05-14 17:56:37 +08:00
parent 839902e770
commit bffca15b3c
3 changed files with 0 additions and 6 deletions

View File

@@ -35,7 +35,6 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -263,8 +262,6 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
updateWrapper.set(Goods::getMarketEnable, goodsStatusEnum.name());
updateWrapper.set(Goods::getUnderMessage, underReason);
updateWrapper.in(Goods::getId, goodsIds);
//商品审核通过的才可以上架
updateWrapper.eq(Goods::getMarketEnable, GoodsStatusEnum.UPPER.name());
this.update(updateWrapper);
//修改规格商品

View File

@@ -1,7 +1,6 @@
package cn.lili.modules.statistics.serviceimpl;
import cn.hutool.core.date.DateUtil;
import cn.lili.common.enums.SwitchEnum;
import cn.lili.modules.statistics.mapper.MemberStatisticsDataMapper;
import cn.lili.modules.statistics.model.dos.MemberStatisticsData;
import cn.lili.modules.statistics.model.dto.StatisticsQueryParam;