| | |
| | | import com.ruoyi.common.core.enums.AuctionStartStatusEnum; |
| | | import com.ruoyi.common.core.enums.BidStatusEnum; |
| | | import com.ruoyi.common.core.enums.OrderFromEnum; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.DateUtils; |
| | | import com.ruoyi.system.api.constants.NotificationTypeConstant; |
| | | import com.ruoyi.system.api.domain.*; |
| | |
| | | wrapper1.eq(AuctionSalesroomGoods::getStatus,2); |
| | | wrapper1.eq(AuctionSalesroomGoods::getDelFlag,0); |
| | | wrapper1.eq(AuctionSalesroomGoods::getAuctionSalesroomId,ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | wrapper1.orderByAsc(AuctionSalesroomGoods::getSortNum); |
| | | wrapper1.orderByDesc(AuctionSalesroomGoods::getSortNum); |
| | | wrapper1.last("limit 1"); |
| | | auctionSalesroomGoods = this.getOne(wrapper1); |
| | | if (auctionSalesroomGoods==null){ |
| | |
| | | public void auctionSalesroomStart(AuctionSalesroomDTO ationSalesroomGoodsDTO) { |
| | | AuctionSalesroom auctionSalesroom = auctionSalesroomMapper.selectById( |
| | | ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | |
| | | if (auctionSalesroom.getStatus().getCode()==1){ |
| | | throw new ServiceException("拍卖会已开始,请勿点击"); |
| | | } |
| | | |
| | | auctionSalesroom.setStatus(AuctionStartStatusEnum.IN_AUCTION); |
| | | auctionSalesroom.setStartTime(LocalDateTime.now()); |
| | | auctionSalesroomMapper.updateById(auctionSalesroom); |
| | | |
| | | |
| | | LambdaQueryWrapper<AuctionSalesroomGoods> wrapper2=Wrappers.lambdaQuery(); |
| | | wrapper2.eq(AuctionSalesroomGoods::getStatus,0); |
| | | wrapper2.eq(AuctionSalesroomGoods::getDelFlag,0); |