| | |
| | | package com.ruoyi.auction.controller.forepart; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.auction.mapper.AuctionGoodsMapper; |
| | | import com.ruoyi.auction.service.IAuctionGoodsService; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | |
| | | if (auctionGoods.getListingStatus().getCode()==1){ |
| | | throw new ServiceException("商品拍卖下线"); |
| | | } |
| | | }else{ |
| | | AuctionSalesroom byId = iAuctionSalesroomService.getById(memberAuctionSalesroomBondDTO.getAuctionSalesroomId()); |
| | | if(byId==null){ |
| | | LambdaQueryWrapper<AuctionSalesroom> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionSalesroom::getAuctionSalesroomNo,memberAuctionSalesroomBondDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(AuctionSalesroom::getDelFlag,0); |
| | | byId =iAuctionSalesroomService.getOne(wrapper); |
| | | memberAuctionSalesroomBondDTO.setAuctionSalesroomId(byId.getId()); |
| | | } |
| | | } |
| | | PayInfoVO payInfoVO = iAuctionSalesroomService.SaveSignUpNow(memberAuctionSalesroomBondDTO); |
| | | |