lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
ba77912b31
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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' ] }, //