| | |
| | | import cc.mrbird.febs.common.controller.BaseController; |
| | | import cc.mrbird.febs.common.entity.FebsConstant; |
| | | import cc.mrbird.febs.common.utils.FebsUtil; |
| | | import cc.mrbird.febs.mall.entity.MallOrderRefund; |
| | | import cc.mrbird.febs.mall.mapper.MallOrderRefundMapper; |
| | | import cc.mrbird.febs.mall.service.IAdminMallOrderService; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | |
| | | private final IAdminMallOrderService adminMallOrderService; |
| | | |
| | | private final MallOrderRefundMapper mallOrderRefundMapper; |
| | | |
| | | public static long idFromMember; |
| | | |
| | | public static long idFromRefund; |
| | | |
| | | /** |
| | | * 订单列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("orderRefundList") |
| | | @RequiresPermissions("orderRefundList:view") |
| | | public String orderRefundList() { |
| | | return FebsUtil.view("modules/order/orderRefundList"); |
| | | } |
| | | |
| | | /** |
| | | * 订单列表 |
| | |
| | | @RequiresPermissions("orderList:view") |
| | | public String orderList() { |
| | | return FebsUtil.view("modules/order/orderList"); |
| | | } |
| | | |
| | | /** |
| | | * 评论列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("commentList") |
| | | @RequiresPermissions("commentList:view") |
| | | public String commentList() { |
| | | return FebsUtil.view("modules/order/commentList"); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("seeRefund/{id}") |
| | | @GetMapping("refunding/{id}") |
| | | @RequiresPermissions("refunding:view") |
| | | public String seeReceiveInfo(@PathVariable long id, Model model) { |
| | | idFromRefund = id; |
| | | return FebsUtil.view("modules/order/Refunding"); |
| | | return FebsUtil.view("modules/order/refunding"); |
| | | } |
| | | |
| | | /** |
| | |
| | | return FebsUtil.view("modules/order/payMethodEdit"); |
| | | } |
| | | |
| | | /** |
| | | * 退款记录-订单详情 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("refundOrderDetail/{id}") |
| | | @RequiresPermissions("refundOrderDetail:view") |
| | | public String refundOrderDetail(@PathVariable long id, Model model) { |
| | | MallOrderRefund mallOrderRefund = mallOrderRefundMapper.selectById(id); |
| | | Long orderId = mallOrderRefund.getOrderId(); |
| | | AdminOrderDetailVo data = adminMallOrderService.getMallOrderDetailById(orderId); |
| | | model.addAttribute("refundOrderDetail", data); |
| | | return FebsUtil.view("modules/order/refundOrderDetail"); |
| | | } |
| | | |
| | | /** |
| | | * 退款记录-收款方式 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("refundPayInfo/{id}") |
| | | @RequiresPermissions("refundPayInfo:update") |
| | | public String refundPayInfo(@PathVariable long id, Model model) { |
| | | AdminMallMemberPaymentVo data = adminMallOrderService.getMallMemberRefundPayInfoByFlowId(id); |
| | | model.addAttribute("refundPayInfo", data); |
| | | return FebsUtil.view("modules/order/refundPayInfo"); |
| | | } |
| | | |
| | | /** |
| | | * 订单列表-统计商品份数 |
| | | * @return |
| | | */ |
| | | public static String orderIdsStr; |
| | | @GetMapping("/goodsStatistics/{statistics}") |
| | | @RequiresPermissions("goodsStatistics:update") |
| | | public String goodsStatistics(@PathVariable String statistics, Model model) { |
| | | orderIdsStr = statistics; |
| | | return FebsUtil.view("modules/order/goodsStatistics"); |
| | | } |
| | | |
| | | } |