| | |
| | | @Resource |
| | | private IAuctionSalesroomService iAuctionSalesroomService; |
| | | |
| | | @Resource |
| | | private IAuctionVideoService iAuctionVideoService; |
| | | |
| | | @Resource |
| | | private SysUserClient sysUserClient; |
| | | |
| | | /** |
| | | * 拍卖大屏获取拍卖信息 |
| | | * |
| | |
| | | @ResponseBody |
| | | @ApiOperation(value = "拍卖大屏获取拍卖信息") |
| | | public R<List<AuctionSalesroom>> getAuctionBidRecordList(@PathVariable("salesroomName") String salesroomName) { |
| | | LambdaQueryWrapper<AuctionSalesroom> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionSalesroom::getSalesroomName,salesroomName); |
| | | wrapper.eq(AuctionSalesroom::getDelFlag,0); |
| | | List<AuctionSalesroom> auctionBidRecordList=iAuctionSalesroomService.list(wrapper); |
| | | return R.ok(auctionBidRecordList); |
| | | return R.ok(iAuctionSalesroomService.getAuctionBidRecordList(salesroomName)); |
| | | |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = " 暖场视频or封面海报") |
| | | public R<ForepartAuctionSalesroomVO> getBaaner(@PathVariable("salesroomId") Integer SalesroomId) { |
| | | |
| | | LambdaQueryWrapper<AuctionVideo> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionVideo::getAuctionSalesroomId,SalesroomId); |
| | | wrapper.eq(AuctionVideo::getDelFlag,0); |
| | | AuctionVideo auctionVideo=iAuctionVideoService.getOne(wrapper); |
| | | ForepartAuctionSalesroomVO forepartAuctionSalesroomVO =new ForepartAuctionSalesroomVO(); |
| | | AuctionSalesroom auctionSalesroom=iAuctionSalesroomService.getById(SalesroomId); |
| | | forepartAuctionSalesroomVO.setAuctionSalesroomStatus(auctionSalesroom.getStatus().getCode()); |
| | | if (auctionVideo!=null){ |
| | | forepartAuctionSalesroomVO.setUrl(auctionVideo.getPromotionVideoUrl()); |
| | | }else{ |
| | | forepartAuctionSalesroomVO.setUrl(auctionSalesroom.getCoverPic()); |
| | | } |
| | | |
| | | return R.ok(forepartAuctionSalesroomVO); |
| | | return R.ok(iAuctionSalesroomService.getBaaner(SalesroomId)); |
| | | } |
| | | |
| | | |
| | |
| | | @ApiOperation(value = "扫码二维码获取拍卖场信息") |
| | | public R<AuctionSalesroom> getAuctionBidRecordOne(@RequestBody ForepartAuctionBidRecordDTO arepartAuctionBidRecordDTO) { |
| | | |
| | | R<SysUser> r=sysUserClient.queryUserByPhone(arepartAuctionBidRecordDTO.getPhone()); |
| | | SysUser sysUser=r.getData(); |
| | | |
| | | if (sysUser!=null){ |
| | | R.fail("手机号未注册"); |
| | | } |
| | | |
| | | if (!sysUser.getPassword().equals(arepartAuctionBidRecordDTO.getPassword())){ |
| | | R.fail("密码输入错误"); |
| | | } |
| | | |
| | | if (!sysUser.getUserType().equals("2")){ |
| | | R.fail("该人员不是拍卖师"); |
| | | } |
| | | |
| | | LambdaQueryWrapper<AuctionSalesroom> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionSalesroom::getAuctionSalesroomNo,arepartAuctionBidRecordDTO.getAuctionSalesroomQrcode()); |
| | | wrapper.eq(AuctionSalesroom::getDelFlag,0); |
| | | AuctionSalesroom auctionBidRecord=iAuctionSalesroomService.getOne(wrapper); |
| | | |
| | | return R.ok(auctionBidRecord); |
| | | |
| | | return R.ok(iAuctionSalesroomService.getAuctionBidRecordOne(arepartAuctionBidRecordDTO)); |
| | | } |
| | | |
| | | |