| | |
| | | package com.ruoyi.order.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.enums.BondStatusEnum; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.order.service.IOrderAuctionBondService; |
| | | import com.ruoyi.system.api.domain.OrderAuctionBond; |
| | | import com.ruoyi.system.api.domain.dto.BondVO; |
| | | 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 com.ruoyi.system.api.domain.vo.PayInfoVO; |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/getOrderAuctionBondList") |
| | | @ResponseBody |
| | | public R<List<OrderAuctionBond>> getOrderAuctionBondList(@RequestBody MemberAuctionSalesroomDTO memberAuctionSalesroomDTO) { |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(OrderAuctionBond::getMemberId,memberAuctionSalesroomDTO.getMemberId()); |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId,memberAuctionSalesroomDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(OrderAuctionBond::getBoundStatus,2); |
| | | wrapper.eq(OrderAuctionBond::getDelFlag,0); |
| | | List<OrderAuctionBond> list = iOrderAuctionBondService.list(wrapper); |
| | | return R.ok(list); |
| | | |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/SaveOrderAuctionBond") |
| | | @ResponseBody |
| | | public R<PayInfoVO> SaveOrderAuctionBond(@RequestBody MemberAuctionSalesroomBondDTO memberAuctionSalesroomBondDTO) { |
| | | return R.ok(iOrderAuctionBondService.SaveOrderAuctionBond(memberAuctionSalesroomBondDTO)); |
| | | |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/UpdateBond") |
| | | @ResponseBody |
| | | public R UpdateBond(@RequestBody BondVO ondVO) { |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(OrderAuctionBond::getOrderNo,ondVO.getOrderNO()); |
| | | wrapper.eq(OrderAuctionBond::getDelFlag,0); |
| | | OrderAuctionBond one = iOrderAuctionBondService.getOne(wrapper); |
| | | one.setBoundStatus(BondStatusEnum.PAID); |
| | | iOrderAuctionBondService.updateById(one); |
| | | return R.ok(); |
| | | |
| | | } |
| | | |
| | | } |