| | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | |
| | | @Override |
| | | public List<AdminMallGoodsCouponTreeListVo> findAdminMallGoodsVoTreeList() { |
| | | QueryWrapper<MallGoods> objectQueryWrapper = new QueryWrapper<>(); |
| | | objectQueryWrapper.eq("is_sale",1); |
| | | List<MallGoods> mallGoodsList = mallGoodsMapper.selectList(objectQueryWrapper); |
| | | List<MallGoods> mallGoodsList = mallGoodsMapper.selectList( |
| | | new LambdaQueryWrapper<MallGoods>() |
| | | .select(MallGoods::getId, MallGoods::getGoodsName) |
| | | .eq(MallGoods::getIsSale, MallGoods.ISSALE_STATUS_ENABLE) |
| | | ); |
| | | |
| | | List<AdminMallGoodsCouponTreeListVo> objects = new ArrayList<>(); |
| | | if(CollUtil.isNotEmpty(mallGoodsList)){ |