lrf 2 년 전
부모
커밋
ba77912b31
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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' ] }, //