| | |
| | | import com.ruoyi.system.api.domain.OrderAuctionBond; |
| | | import com.ruoyi.system.api.domain.dto.AuctionGoodsListDTO; |
| | | import com.ruoyi.system.api.domain.dto.BondDTO; |
| | | import com.ruoyi.system.api.domain.dto.BondReturnDTO; |
| | | import com.ruoyi.system.api.domain.dto.MemberAuctionSalesroomBondDTO; |
| | | import com.ruoyi.system.api.domain.dto.MemberAuctionSalesroomDTO; |
| | | import com.ruoyi.system.api.domain.dto.OrderAuctionBondDTO; |
| | |
| | | import javax.annotation.Resource; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | } |
| | | wrapper.eq(OrderAuctionBond::getBoundStatus,2); |
| | | wrapper.eq(OrderAuctionBond::getDelFlag,0); |
| | | wrapper.orderByDesc(OrderAuctionBond::getCreateTime); |
| | | List<OrderAuctionBond> list = iOrderAuctionBondService.list(wrapper); |
| | | return R.ok(list); |
| | | |
| | |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(OrderAuctionBond::getMemberId,memberAuctionSalesroomBondDTO.getMemberId()); |
| | | wrapper.eq(OrderAuctionBond::getAuctionGoodsId,memberAuctionSalesroomBondDTO.getAuctionGoodsId()); |
| | | wrapper.eq(OrderAuctionBond::getBoundStatus,1); |
| | | wrapper.eq(OrderAuctionBond::getBondType,1); |
| | | wrapper.eq(OrderAuctionBond::getBoundStatus,2); |
| | | wrapper.eq(OrderAuctionBond::getDelFlag,0); |
| | | OrderAuctionBond one = iOrderAuctionBondService.getOne(wrapper); |
| | | return R.ok(one); |
| | |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(OrderAuctionBond::getMemberId,memberAuctionSalesroomBondDTO.getMemberId()); |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId,memberAuctionSalesroomBondDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(OrderAuctionBond::getBondType,2); |
| | | wrapper.eq(OrderAuctionBond::getBoundStatus,2); |
| | | wrapper.eq(OrderAuctionBond::getDelFlag,0); |
| | | OrderAuctionBond one = iOrderAuctionBondService.getOne(wrapper); |
| | |
| | | |
| | | } |
| | | |
| | | @GetMapping("/refund-bond/{id}") |
| | | public R<?> returnBondByAuctionGoodsId(@PathVariable("id") Long id) { |
| | | iOrderAuctionBondService.returnBondByAuctionGoodsId(id); |
| | | @GetMapping("/refund-bond") |
| | | public R<?> returnBondByAuctionGoodsId(@RequestBody BondReturnDTO bondReturnDTO) { |
| | | iOrderAuctionBondService.returnBondByAuctionGoodsId(bondReturnDTO); |
| | | return R.ok(); |
| | | } |
| | | |