|
|
@@ -18,11 +18,11 @@ package org.springblade.sing.goods.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import org.springblade.core.mp.support.Condition;
|
|
|
-import org.springblade.core.tool.utils.StringUtil;
|
|
|
import org.springblade.sing.active.entity.ActiveRecord;
|
|
|
import org.springblade.sing.active.mapper.ActiveRecordMapper;
|
|
|
+import org.springblade.sing.goods.entity.ActiveIdAndGoodsId;
|
|
|
import org.springblade.sing.goods.entity.PointGoods;
|
|
|
+import org.springblade.sing.goods.service.IActiveIdAndGoodsIdService;
|
|
|
import org.springblade.sing.goods.vo.PointGoodsVO;
|
|
|
import org.springblade.sing.goods.mapper.PointGoodsMapper;
|
|
|
import org.springblade.sing.goods.service.IPointGoodsService;
|
|
|
@@ -47,6 +47,8 @@ public class PointGoodsServiceImpl extends BaseServiceImpl<PointGoodsMapper, Poi
|
|
|
|
|
|
@Autowired
|
|
|
private ActiveRecordMapper activeRecordMapper;
|
|
|
+ @Autowired
|
|
|
+ private IActiveIdAndGoodsIdService activeIdAndGoodsIdService;
|
|
|
|
|
|
@Override
|
|
|
public IPage<PointGoodsVO> selectPointGoodsPage(IPage<PointGoodsVO> page, PointGoodsVO pointGoods) {
|
|
|
@@ -56,10 +58,18 @@ public class PointGoodsServiceImpl extends BaseServiceImpl<PointGoodsMapper, Poi
|
|
|
@Override
|
|
|
public IPage<PointGoods> queryList(Long activeId,Query query) {
|
|
|
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
+
|
|
|
+// List<ActiveIdAndGoodsId> activeIdAndGoodsIds = activeIdAndGoodsIdService.list(new LambdaQueryWrapper<ActiveIdAndGoodsId>().eq(ActiveIdAndGoodsId::getActiveId, activeId));
|
|
|
+//
|
|
|
+// for (ActiveIdAndGoodsId activeIdAndGoodsId : activeIdAndGoodsIds) {
|
|
|
+// ids.add(activeIdAndGoodsId.getGoodsId());
|
|
|
+// }
|
|
|
+
|
|
|
ActiveRecord activeRecord = activeRecordMapper.selectById(activeId);
|
|
|
Assert.notNull(activeRecord,"此活动不存在");
|
|
|
|
|
|
- List<Long> ids = new ArrayList<>();
|
|
|
+
|
|
|
List<PointGoods> list = baseMapper.selectList(null);
|
|
|
for (PointGoods pointGoods : list) {
|
|
|
String goodsActiveId = pointGoods.getActiveId();
|