| | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.google.common.collect.Lists; |
| | | import com.ruoyi.auction.domain.AuctionBidRecord; |
| | | import com.ruoyi.auction.domain.AuctionBondJl; |
| | | import com.ruoyi.auction.domain.AuctionSalesroomGoods; |
| | | import com.ruoyi.auction.mapper.AuctionBidRecordMapper; |
| | | import com.ruoyi.auction.mapper.AuctionBondJlMapper; |
| | | import com.ruoyi.auction.mapper.AuctionSalesroomGoodsMapper; |
| | | import com.ruoyi.auction.mapper.AuctionSalesroomMapper; |
| | | import com.ruoyi.auction.service.IAuctionBrowseRecordService; |
| | |
| | | |
| | | @Resource |
| | | private IAuctionSalesroomService iAuctionSalesroomService; |
| | | |
| | | |
| | | @Resource |
| | | private AuctionBondJlMapper auctionBondJlMapper; |
| | | |
| | | private static final ObjectMapper objectMapper = new ObjectMapper(); |
| | | |
| | |
| | | wrapper.eq(AuctionSalesroomGoods::getDelFlag,0); |
| | | wrapper.eq(AuctionSalesroomGoods::getBackupStatus,false); |
| | | wrapper.eq(AuctionSalesroomGoods::getAuctionSalesroomId,ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | wrapper.orderByAsc(AuctionSalesroomGoods::getSortNum); |
| | | wrapper.last("limit 1"); |
| | | AuctionSalesroomGoods auctionSalesroomGoods = this.getOne(wrapper); |
| | | ForepartAuctionSalesroomGoodsVO currentAuctionSalesroomGoods= new ForepartAuctionSalesroomGoodsVO(); |
| | |
| | | wrapper1.eq(AuctionSalesroomGoods::getBackupStatus,false); |
| | | wrapper1.eq(AuctionSalesroomGoods::getAuctionSalesroomId,ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | if (auctionSalesroomGoods!=null) { |
| | | wrapper1.eq(AuctionSalesroomGoods::getSortNum, auctionSalesroomGoods.getSortNum() + 1); |
| | | wrapper1.eq(AuctionSalesroomGoods::getSortNum, auctionSalesroomGoods.getSortNum() - 1); |
| | | |
| | | }else{ |
| | | LambdaQueryWrapper<AuctionSalesroomGoods> wrappers=Wrappers.lambdaQuery(); |
| | |
| | | wrappers.eq(AuctionSalesroomGoods::getDelFlag,0); |
| | | wrappers.eq(AuctionSalesroomGoods::getBackupStatus,false); |
| | | wrappers.eq(AuctionSalesroomGoods::getAuctionSalesroomId,ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | wrappers.orderByAsc(AuctionSalesroomGoods::getSortNum); |
| | | wrappers.orderByDesc(AuctionSalesroomGoods::getSortNum); |
| | | wrappers.last("limit 1"); |
| | | AuctionSalesroomGoods auctionSalesroomGoodss = this.getOne(wrappers); |
| | | if (auctionSalesroomGoodss!=null){ |
| | |
| | | } |
| | | wrapper2.eq(AuctionSalesroomGoods::getAuctionSalesroomId,ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | wrapper2.orderByAsc(AuctionSalesroomGoods::getStatus); |
| | | wrapper2.orderByAsc(AuctionSalesroomGoods::getSortNum); |
| | | wrapper2.orderByDesc(AuctionSalesroomGoods::getSortNum); |
| | | wrapper2.eq(AuctionSalesroomGoods::getBackupStatus,false); |
| | | List<AuctionSalesroomGoods> auctionSalesroomGoods2 = this.list(wrapper2); |
| | | for (AuctionSalesroomGoods salesroomGoods:auctionSalesroomGoods2){ |
| | |
| | | AuctionSalesroomGoodsInfoVO.setSpec(goodsSku.getSpec()); |
| | | AuctionSalesroomGoodsInfoVO.setSpecUnit(goodsSku.getSpecUnit()); |
| | | |
| | | |
| | | LambdaQueryWrapper<AuctionBondJl> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionBondJl::getAuctionSalesroomId,byId.getId()); |
| | | wrapper.eq(AuctionBondJl::getMemberId,auctionSalesroomGoodsInfoDTO.getMemberId()); |
| | | wrapper.eq(AuctionBondJl::getIsState,0); |
| | | AuctionBondJl auctionBondJl = auctionBondJlMapper.selectOne(wrapper); |
| | | if (auctionBondJl!=null){ |
| | | AuctionSalesroomGoodsInfoVO.setIsApply(2); |
| | | }else{ |
| | | AuctionSalesroomGoodsInfoVO.setIsApply(1); |
| | | } |
| | | |
| | | CustomConfig returnAddressUserName = sysUserClient.getconfig("MALL_ORDER_DESCRIPTION").getData(); |
| | | AuctionSalesroomGoodsInfoVO.setExplain(returnAddressUserName.getConfigValue()); |
| | | AuctionSalesroomGoodsInfoVO.setMinimumMarkupAmount(byId1.getMinimumMarkupAmount()); |