Commit 30c19983 authored by liudong1993's avatar liudong1993

1 甲鹤试听课调整

parent a8994290
...@@ -614,27 +614,30 @@ namespace Edu.Module.Course ...@@ -614,27 +614,30 @@ namespace Edu.Module.Course
if (stlist.Any()) { if (stlist.Any()) {
//每次试听课 算一个课时 //每次试听课 算一个课时
foreach (var item in stlist) { foreach (var item in stlist) {
stDateList.Add(new RB_Teaching_BonusDetail_ViewModel() if (item.ClassHourFee > 0)
{ {
BonusId = bonusId, stDateList.Add(new RB_Teaching_BonusDetail_ViewModel()
CheckInNum = item.CheckNum, {
ClassId = item.ReserveClassId, BonusId = bonusId,
CourseHour = 1, CheckInNum = item.CheckNum,
CreateBy = dmodel.CreateBy, ClassId = item.ReserveClassId,
CreateTime = DateTime.Now, CourseHour = 1,
Date = item.ClassDate, CreateBy = dmodel.CreateBy,
Group_Id = dmodel.Group_Id, CreateTime = DateTime.Now,
Id = 0, Date = item.ClassDate,
Money = item.ClassHourFee, Group_Id = dmodel.Group_Id,
School_Id = item.School_Id, Id = 0,
Status = 0, Money = item.ClassHourFee,
TeacherId = item.TeacherId, School_Id = item.School_Id,
Type = 1, Status = 0,
UnitPrice = item.ClassHourFee, TeacherId = item.TeacherId,
UpdateBy = dmodel.UpdateBy, Type = 1,
UpdateTime = DateTime.Now, UnitPrice = item.ClassHourFee,
CouseClassify = 2 UpdateBy = dmodel.UpdateBy,
}); UpdateTime = DateTime.Now,
CouseClassify = 2
});
}
} }
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment