lrf 2 years ago
parent
commit
3a33fa0ab2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/service/business/lessonStudent.js

+ 2 - 1
app/service/business/lessonStudent.js

@@ -102,7 +102,8 @@ class LessonStudentService extends CrudService {
     await payOrderService.update({ _id: data.pay_id }, { status: '-3' });
     const payOrder = await payOrderModel.findById(data.pay_id);
     // 再生成账单记录
-    const obj = _.pick(payOrder, [ 'school_id', 'payer_role', 'payer_id', 'pay_for', 'from_id', 'money', 'pay_id' ]);
+    const obj = _.pick(payOrder, [ 'school_id', 'payer_role', 'payer_id', 'pay_for', 'from_id', 'money' ]);
+    obj.pay_id = data.pay_id;
     obj.type = '2';
     obj.is_pay = '1';
     obj.time = moment().format('YYYY-MM-DD HH:mm:ss');