| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.common.core.web.page.TableDataInfo; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.order.model.Order; |
| | | import com.ruoyi.order.model.RefundPass; |
| | | import com.ruoyi.order.service.OrderService; |
| | | import com.ruoyi.order.service.RefundPassService; |
| | | import com.ruoyi.order.vo.ApplyRefundPass; |
| | | import com.ruoyi.order.vo.OrderRefundPassList; |
| | | import com.ruoyi.order.vo.OrderRefundPassListVo; |
| | | import com.ruoyi.order.vo.RefundPassInfo; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/refund-pass") |
| | | public class RefundPassController { |
| | | public class RefundPassController extends BaseController { |
| | | |
| | | |
| | | @Resource |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/getOrderRefundPassList") |
| | | @ApiOperation(value = "获取售后列表数据", tags = {"管理后台-售后管理", "门店后台-售后管理"}) |
| | | public R<PageInfo<OrderRefundPassList>> getOrderRefundPassList(OrderRefundPassListVo refundPassListVo){ |
| | | return R.ok(refundPassService.getOrderRefundPassList(refundPassListVo)); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/authPassStatus/{id}/{status}") |
| | | @ApiOperation(value = "审核售后", tags = {"管理后台-售后管理", "门店后台-售后管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "售后数据id", required = true, dataType = "long"), |
| | | @ApiImplicitParam(name = "status", value = "审核状态(2=同意,3=拒绝)", required = true, dataType = "int"), |
| | | @ApiImplicitParam(name = "passRemark", value = "审核备注", required = false, dataType = "string"), |
| | | }) |
| | | public R authPassStatus(@PathVariable("id") Long id, @PathVariable("status") Integer status, @RequestParam("passRemark") String passRemark){ |
| | | return refundPassService.authPassStatus(id, status, passRemark); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PutMapping("/refundPassReceive/{id}") |
| | | @ApiOperation(value = "售后确认收货操作", tags = {"管理后台-售后管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "售后数据id", required = true, dataType = "long"), |
| | | }) |
| | | public R refundPassReceive(@PathVariable("id") Long id){ |
| | | return refundPassService.refundPassReceive(id); |
| | | } |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/getRefundPassInfo/{id}") |
| | | @ApiOperation(value = "获取售后数据详情", tags = {"管理后台-售后管理", "门店后台-售后管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "售后数据id", required = true, dataType = "long"), |
| | | }) |
| | | public R<RefundPassInfo> getRefundPassInfo(@PathVariable("id") Long id){ |
| | | RefundPassInfo refundPassInfo = refundPassService.getRefundPassInfo(id); |
| | | return R.ok(refundPassInfo); |
| | | } |
| | | |
| | | |
| | | } |
| | | |