Merge remote-tracking branch 'origin/master'
| | |
| | | |
| | | |
| | | |
| | | @PutMapping("/confirmDelivery/{orderId}") |
| | | @PostMapping("/confirmDelivery") |
| | | @ApiOperation(value = "已发货操作", tags = {"管理后台-订单管理"}) |
| | | public R confirmDelivery(@PathVariable("orderId") String orderId, String code){ |
| | | return orderService.confirmDelivery(orderId, code); |
| | | public R confirmDelivery(@RequestBody ConfirmDelivery confirmDelivery){ |
| | | return orderService.confirmDelivery(confirmDelivery.getOrderId(), confirmDelivery.getCode()); |
| | | } |
| | | |
| | | |
| | |
| | | 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 com.ruoyi.order.vo.*; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/authPassStatus/{id}/{status}") |
| | | @PostMapping("/authPassStatus") |
| | | @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); |
| | | public R authPassStatus(@RequestBody AuthPassStatus authPassStatus){ |
| | | return refundPassService.authPassStatus(authPassStatus.getId(), authPassStatus.getStatus(), authPassStatus.getPassRemark()); |
| | | } |
| | | |
| | | |
| | |
| | | * @param code |
| | | * @return |
| | | */ |
| | | R confirmDelivery(String orderId, String code); |
| | | R confirmDelivery(Long orderId, String code); |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R confirmDelivery(String orderId, String code) { |
| | | public R confirmDelivery(Long orderId, String code) { |
| | | Order order = this.getById(orderId); |
| | | if(1 == order.getPayStatus()){ |
| | | return R.fail("订单还未完成支付"); |
| | |
| | | //余额退款 |
| | | OrderBalancePayment orderBalancePayment = orderBalancePaymentService.getOne(new LambdaQueryWrapper<OrderBalancePayment>().eq(OrderBalancePayment::getOrderId, order.getId())); |
| | | BigDecimal balance = appUser.getBalance(); |
| | | appUser.setTotalRedPacketAmount(appUser.getTotalRedPacketAmount().add(orderBalancePayment.getRedPacketAmount()).setScale(2, RoundingMode.HALF_EVEN)); |
| | | appUser.setTotalDistributionAmount(appUser.getTotalDistributionAmount().add(orderBalancePayment.getDistributionAmount()).setScale(2, RoundingMode.HALF_EVEN)); |
| | | if(null != orderBalancePayment){ |
| | | appUser.setTotalRedPacketAmount(appUser.getTotalRedPacketAmount().add(orderBalancePayment.getRedPacketAmount()).setScale(2, RoundingMode.HALF_EVEN)); |
| | | appUser.setTotalDistributionAmount(appUser.getTotalDistributionAmount().add(orderBalancePayment.getDistributionAmount()).setScale(2, RoundingMode.HALF_EVEN)); |
| | | } |
| | | appUser.setBalance(balance.add(paymentAmount).setScale(2, RoundingMode.HALF_EVEN)); |
| | | appUser.setShopAmount(appUser.getShopAmount().subtract(paymentAmount).setScale(2, RoundingMode.HALF_EVEN)); |
| | | |
| | |
| | | VipSetting vipSetting = vipSettingClient.getVipSetting(vipId).getData(); |
| | | Integer vipLevelUpShopRole = vipSetting.getVipLevelUpShopRole(); |
| | | Integer vipLevelUpShop = vipSetting.getVipLevelUpShop(); |
| | | if(1 == vipLevelUpShopRole && shopPoint < vipLevelUpShop){ |
| | | return true; |
| | | } |
| | | return false; |
| | | return 1 == vipLevelUpShopRole && shopPoint < vipLevelUpShop; |
| | | } |
| | | |
| | | |
| | |
| | | refundPassInfo.setRefundReason(refundPass.getRefundReason()); |
| | | refundPassInfo.setUserRemark(refundPass.getUserRemark()); |
| | | refundPassInfo.setPics(refundPass.getPics()); |
| | | refundPassInfo.setPassStatus(refundPass.getPassStatus()); |
| | | refundPassInfo.setPassRemark(refundPass.getPassRemark()); |
| | | return refundPassInfo; |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty("审核状态(1待审核2同意3拒绝)") |
| | | private Integer passStatus; |
| | | @ApiModelProperty("审核注释") |
| | | private Integer passRemark; |
| | | private String passRemark; |
| | | @ApiModelProperty("售后申请时间") |
| | | private String passCreateTime; |
| | | @ApiModelProperty("售后类型(1退货退款2仅退款)") |
| | |
| | | |
| | | |
| | | |
| | | @PostMapping("/getRefundPassSetting") |
| | | @GetMapping("/getRefundPassSetting") |
| | | @ApiOperation(value = "获取售后设置", tags = {"管理后台-售后管理"}) |
| | | public R<RefundPassSettingVo> getRefundPassSetting(){ |
| | | BaseSetting one = baseSettingService.getOne(new LambdaQueryWrapper<BaseSetting>().eq(BaseSetting::getId, 5)); |