lrf 2 yıl önce
ebeveyn
işleme
ba77912b31
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/model/business/coachInBill.js

+ 1 - 1
app/model/business/coachInBill.js

@@ -5,7 +5,7 @@ const moneyPlugin = require('naf-framework-mongoose-free/lib/model/type-money-pl
 
 // 教练费明细
 const coachInBill = {
-  lesson_id: { type: String, required: false, zh: '课程id' }, //
+  lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title' ] }, //
   type: { type: String, required: false, zh: '类型' }, // 0:公开课收入;1私教课收入
   school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
   coach_id: { type: String, required: false, zh: '教练id', ref: 'Coach', getProp: [ 'name' ] }, //