| | |
| | | memberAuctionSalesroomBondDTO.setAuctionSalesroomId(byId.getId()); |
| | | } |
| | | } |
| | | |
| | | AuctionBondJl auctionBondJl=new AuctionBondJl(); |
| | | auctionBondJl.setAuctionGoodsId(memberAuctionSalesroomBondDTO.getAuctionGoodsId()); |
| | | auctionBondJl.setAuctionSalesroomId(memberAuctionSalesroomBondDTO.getAuctionSalesroomId()); |
| | | auctionBondJl.setIsState(0); |
| | | auctionBondJl.setBondType(memberAuctionSalesroomBondDTO.getBondType()); |
| | | auctionBondJl.setMemberId(memberAuctionSalesroomBondDTO.getMemberId()); |
| | | auctionBondJlMapper.insert(auctionBondJl); |
| | | |
| | | if (memberAuctionSalesroomBondDTO.getBondType()==1) { |
| | | LambdaQueryWrapper<AuctionBondJl> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionBondJl::getAuctionGoodsId, memberAuctionSalesroomBondDTO.getAuctionGoodsId()); |
| | | wrapper.eq(AuctionBondJl::getMemberId, memberAuctionSalesroomBondDTO.getMemberId()); |
| | | wrapper.eq(AuctionBondJl::getIsState, 0); |
| | | AuctionBondJl auctionSalesroom = auctionBondJlMapper.selectOne(wrapper); |
| | | if (auctionSalesroom==null){ |
| | | AuctionBondJl auctionBondJl = new AuctionBondJl(); |
| | | auctionBondJl.setAuctionGoodsId(memberAuctionSalesroomBondDTO.getAuctionGoodsId()); |
| | | auctionBondJl.setIsState(0); |
| | | auctionBondJl.setBondType(memberAuctionSalesroomBondDTO.getBondType()); |
| | | auctionBondJl.setMemberId(memberAuctionSalesroomBondDTO.getMemberId()); |
| | | auctionBondJlMapper.insert(auctionBondJl); |
| | | }else{ |
| | | throw new ServiceException("你已报名"); |
| | | } |
| | | }else{ |
| | | LambdaQueryWrapper<AuctionBondJl> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionBondJl::getAuctionSalesroomId, memberAuctionSalesroomBondDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(AuctionBondJl::getMemberId, memberAuctionSalesroomBondDTO.getMemberId()); |
| | | wrapper.eq(AuctionBondJl::getIsState, 0); |
| | | AuctionBondJl auctionSalesroom = auctionBondJlMapper.selectOne(wrapper); |
| | | if (auctionSalesroom==null){ |
| | | AuctionBondJl auctionBondJl = new AuctionBondJl(); |
| | | auctionBondJl.setAuctionSalesroomId(memberAuctionSalesroomBondDTO.getAuctionSalesroomId()); |
| | | auctionBondJl.setIsState(0); |
| | | auctionBondJl.setBondType(memberAuctionSalesroomBondDTO.getBondType()); |
| | | auctionBondJl.setMemberId(memberAuctionSalesroomBondDTO.getMemberId()); |
| | | auctionBondJlMapper.insert(auctionBondJl); |
| | | }else{ |
| | | throw new ServiceException("你已报名"); |
| | | } |
| | | } |
| | | |
| | | PayInfoVO payInfoVO = iAuctionSalesroomService.SaveSignUpNow(memberAuctionSalesroomBondDTO); |
| | | |