Commit 8e1f2b77 by 郑云飞

订单导出修改,退款0元逻辑处理

parent 02b3613a
......@@ -36,7 +36,7 @@ public class DbOrderVo {
/**
* 标题
*/
@ExcelProperty(value = "标题")
@ExcelProperty(value = "公司名称")
private String title;
/**
......@@ -86,7 +86,7 @@ public class DbOrderVo {
/**
* 管理员备注
*/
@ExcelProperty(value = "退款金额")
@ExcelProperty(value = "管理员备注")
private String adminRemark;
/**
* 备注说明
......@@ -124,7 +124,7 @@ public class DbOrderVo {
/**
* 修改时间
*/
@ExcelProperty(value = "修改时间")
// @ExcelProperty(value = "修改时间")
private Date modifyTime;
/**
......
......@@ -630,6 +630,11 @@ public class DbOrderServiceImpl implements IDbOrderService {
}
// 修改订单
order.setRefundAmount(refundAmount);
if (order.getPayAmount().compareTo(BigDecimal.ZERO) == 0) {
order.setStatus(OrderStatusEnum.REFUNDED.getCode());
baseMapper.updateById(order);
return R.ok("退款成功");
}
baseMapper.updateById(order);
// 组装退款参数
WxPayRefundRequest request = new WxPayRefundRequest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment