|
@@ -10,6 +10,7 @@ class TempLessonApplyService extends CrudService {
|
|
constructor(ctx) {
|
|
constructor(ctx) {
|
|
super(ctx, 'templessonapply');
|
|
super(ctx, 'templessonapply');
|
|
this.model = this.ctx.model.Apply.TempLessonApply;
|
|
this.model = this.ctx.model.Apply.TempLessonApply;
|
|
|
|
+ this.studentModel = this.ctx.model.User.Student;
|
|
this.payOrderModel = this.ctx.model.Business.PayOrder;
|
|
this.payOrderModel = this.ctx.model.Business.PayOrder;
|
|
this.rssModel = this.ctx.model.Relation.RelationStudentSchool;
|
|
this.rssModel = this.ctx.model.Relation.RelationStudentSchool;
|
|
this.tran = new Transaction();
|
|
this.tran = new Transaction();
|
|
@@ -88,6 +89,7 @@ class TempLessonApplyService extends CrudService {
|
|
return result;
|
|
return result;
|
|
} catch (error) {
|
|
} catch (error) {
|
|
await this.tran.rollback();
|
|
await this.tran.rollback();
|
|
|
|
+ console.log(error);
|
|
} finally {
|
|
} finally {
|
|
this.tran.clean();
|
|
this.tran.clean();
|
|
}
|
|
}
|