|
@@ -120,6 +120,7 @@ public class LuckyDrawServiceImpl implements LuckyDrawService {
|
|
|
//先找出所有已上架的商品
|
|
//先找出所有已上架的商品
|
|
|
List<LuckyDraw> luckyDraws = luckyDrawMapper.selectList(Wrappers.lambdaQuery(LuckyDraw.class)
|
|
List<LuckyDraw> luckyDraws = luckyDrawMapper.selectList(Wrappers.lambdaQuery(LuckyDraw.class)
|
|
|
.eq(LuckyDraw::getStatus, true)
|
|
.eq(LuckyDraw::getStatus, true)
|
|
|
|
|
+ .eq(LuckyDraw::getDrawType, entity.getDrawType())
|
|
|
.ne(LuckyDraw::getId, entity.getId()));
|
|
.ne(LuckyDraw::getId, entity.getId()));
|
|
|
List<Integer> self = Jsons.parseList(entity.getPosition(), Integer.class);
|
|
List<Integer> self = Jsons.parseList(entity.getPosition(), Integer.class);
|
|
|
for (LuckyDraw luckyDraw : luckyDraws) {
|
|
for (LuckyDraw luckyDraw : luckyDraws) {
|