| | |
| | | LambdaQueryWrapper< MemberGoodsCollection> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(MemberGoodsCollection::getMemberId,auctionCollectionDTO.getMemberId()); |
| | | wrapper.eq(MemberGoodsCollection::getTargetId,auctionCollectionDTO.getGoodsSkuId()); |
| | | wrapper.eq(MemberGoodsCollection::getType,auctionCollectionDTO.getType()); |
| | | if (auctionCollectionDTO.getState()==1){ |
| | | List<MemberGoodsCollection> list = this.list(wrapper); |
| | | if (list.size()==0){ |
| | | MemberGoodsCollection m =new MemberGoodsCollection(); |
| | | m.setMemberId(auctionCollectionDTO.getMemberId()); |
| | | m.setTargetId(auctionCollectionDTO.getGoodsSkuId()); |
| | | m.setType(auctionCollectionDTO.getType()); |
| | | this.save(m); |
| | | } |
| | | }else{ |
| | |
| | | auctionGoodsVO.setIsCollection(2); |
| | | auctionGoodsVO.setType(auctionCollection.getType()); |
| | | auctionGoodsVOS.add(auctionGoodsVO); |
| | | } if(auctionCollection.getType()==2){ |
| | | } if(auctionCollection.getType()==3){ |
| | | HomeGoodsSkuListVO auctionGoodsVO=new HomeGoodsSkuListVO(); |
| | | GoodsSeckill goodsSeckill = goodsSeckillMapper.selectById(auctionCollection.getTargetId()); |
| | | GoodsSku goodsSku = goodsSkuMapper.selectById(goodsSeckill.getGoodsSkuId()); |
| | |
| | | auctionGoodsVO.setXiaosPrice(goodsSku.getPrice()); |
| | | auctionGoodsVO.setType(auctionCollection.getType()); |
| | | auctionGoodsVOS.add(auctionGoodsVO); |
| | | } if(auctionCollection.getType()==3){ |
| | | } if(auctionCollection.getType()==2){ |
| | | GoodsGroupPurchase goodsGroupPurchase = goodsGroupPurchaseMapper.selectById(auctionCollection.getTargetId()); |
| | | HomeGoodsSkuListVO auctionGoodsVO=new HomeGoodsSkuListVO(); |
| | | GoodsSku goodsSku = goodsSkuMapper.selectById(goodsGroupPurchase.getGoodsSkuId()); |