| | |
| | | private UserWechatMapper wechatMapper; |
| | | |
| | | @Autowired |
| | | private UserPaymentV3Service paymentV3Service; |
| | | private UserPaymentSybService paymentSybService; |
| | | |
| | | @Autowired |
| | | private OrderRefundMapper orderRefundMapper; |
| | |
| | | salesItemMapper.updateById(item); |
| | | } |
| | | |
| | | public void doAudit(OrderSalesAuditDTO dto){ |
| | | public void doAudit(OrderSalesAuditDTO dto) throws Exception { |
| | | OrderSales s = salesMapper.selectById(dto.getId()); |
| | | s.setAuditRemarks(dto.getAuditRemarks()); |
| | | s.setAuditStatus(dto.getAuditStatus()); |
| | |
| | | if(Constants.SALES_AUDIT_STATUS.AGREE.name().equals(s.getAuditStatus())){ |
| | | if(totalAmount.doubleValue() > 0) { |
| | | Order o = orderMapper.selectById(s.getOrderId()); |
| | | String transferId = paymentV3Service.refundOrderSub(o, totalAmount); |
| | | String transferId = paymentSybService.refundOrderSub(o, totalAmount); |
| | | s.setTransferId(transferId); |
| | | |
| | | /*if(totalAmount.doubleValue() > o.getTotalAmount().doubleValue()){ |