| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.query.TTicketOrderQuery; |
| | | import com.ruoyi.system.service.*; |
| | |
| | | return R.ok(tTicketOrderDetailVo); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "门票退款订单分页列表") |
| | | @PostMapping(value = "/refundPageList") |
| | | public R<Page<TTicketOrderVo>> refundPageList(@RequestBody TTicketOrderQuery query) { |
| | | Page<TTicketOrderVo> page = new Page<>(query.getPageNum(), query.getPageSize()); |
| | | Page<TTicketOrderVo> pageInfo = tTicketOrderService.refundPageList(page, query); |
| | | return R.ok(pageInfo); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "订单退款审核") |
| | | @PostMapping(value = "/refundAudit") |
| | | @Log(title = "订单退款审核", businessType = BusinessType.UPDATE) |
| | | public R<String> refundAudit(@RequestBody TTicketOrder tTicketOrder) { |
| | | TTicketOrder ticketOrder = tTicketOrderService.getById(tTicketOrder.getId()); |
| | | if(ticketOrder.getStatus()!=3){ |
| | | return R.fail("订单状态异常"); |
| | | } |
| | | if(tTicketOrder.getStatus()==null ){ |
| | | return R.fail("订单状态异常"); |
| | | } |
| | | if(tTicketOrder.getStatus()<4 || tTicketOrder.getStatus()>5){ |
| | | return R.fail("订单状态异常"); |
| | | } |
| | | ticketOrder.setStatus(tTicketOrder.getStatus()); |
| | | ticketOrder.setRefundMoney(tTicketOrder.getRefundMoney()); |
| | | ticketOrder.setHandlingFee(tTicketOrder.getHandlingFee()); |
| | | ticketOrder.setAuditContent(tTicketOrder.getAuditContent()); |
| | | tTicketOrderService.updateById(ticketOrder); |
| | | return R.ok("操作成功"); |
| | | } |
| | | |
| | | } |
| | | |