|
@@ -517,6 +517,13 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
if (orderNew.getPayType() == 2) {
|
|
if (orderNew.getPayType() == 2) {
|
|
// 金额归还对应账户
|
|
// 金额归还对应账户
|
|
paramUser.setdBalance(user.getdBalance().add(orderNew.getTotalPrice()));
|
|
paramUser.setdBalance(user.getdBalance().add(orderNew.getTotalPrice()));
|
|
|
|
+ // 余额记录
|
|
|
|
+ TConsumptionLog tConsumptionLog = new TConsumptionLog();
|
|
|
|
+ tConsumptionLog.setAmount(orderNew.getTotalPrice().negate());
|
|
|
|
+ tConsumptionLog.setBillNo(orderNew.getOrderNo());
|
|
|
|
+ tConsumptionLog.setOpenId(orderNew.getcOpenId());
|
|
|
|
+ tConsumptionLog.setBillType(BillTypeEnum.REFUSE_ACCEPT_REFUND.getCode());
|
|
|
|
+ tConsumptionLog.setNote("拒绝接单退款到余额");
|
|
} else {
|
|
} else {
|
|
// 微信支付
|
|
// 微信支付
|
|
// 生成退款单退款
|
|
// 生成退款单退款
|