| | |
| | | import cc.mrbird.febs.mall.dto.MallOrderInfoDto; |
| | | import cc.mrbird.febs.mall.dto.MallOrderRefundDto; |
| | | import cc.mrbird.febs.mall.entity.*; |
| | | import cc.mrbird.febs.mall.mapper.MallOrderRefundOperationMapper; |
| | | import cc.mrbird.febs.mall.service.IAdminMallGoodsService; |
| | | import cc.mrbird.febs.mall.service.IAdminMallOrderService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | |
| | | } |
| | | |
| | | /** |
| | | * 订单退款列表 |
| | | * 订单退款-列表 |
| | | * @param mallOrderRefundDto |
| | | * @param request |
| | | * @return |
| | |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | /** |
| | | * 订单退款-详情 |
| | | */ |
| | | @GetMapping("/seeRefund") |
| | | public FebsResponse seeRefund(QueryRequest request, MallOrderRefund mallOrderRefund,Integer parentId) { |
| | | if(parentId==null){ |
| | | ViewMallOrderController.idFromRefund=0; |
| | | } |
| | | mallOrderRefund.setId(ViewMallOrderController.idFromRefund); |
| | | Map<String, Object> dataTable = getDataTable(adminMallOrderService.seeRefund(request, mallOrderRefund)); |
| | | return new FebsResponse().success().data(dataTable); |
| | | } |
| | | |
| | | /** |
| | | * 订单退款-同意 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("agreeRefund/{id}") |
| | | @ControllerEndpoint(operation = "订单退款-同意", exceptionMessage = "操作失败") |
| | | public FebsResponse agreeRefund(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return adminMallOrderService.agreeRefund(id); |
| | | } |
| | | |
| | | /** |
| | | * 订单退款-拒绝 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("disagreeRefund/{id}") |
| | | @ControllerEndpoint(operation = "订单退款-拒绝", exceptionMessage = "操作失败") |
| | | public FebsResponse disagreeRefund(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return adminMallOrderService.disagreeRefund(id); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |