Commit f06d6a7e authored by szh's avatar szh

update

parent 8cc09fe0
......@@ -77,7 +77,7 @@ func (courseListService *CourseListService)GetCourseListInfoList(info courseReq.
if err != nil {
return
}
for _, v := range courseLists {
for k, v := range courseLists {
var cs course.CourseSignup
err = global.GVA_DB.Model(&course.CourseSignup{}).Where("uid = ? and cid = ?",cu.ID,v.ID).First(&cs).Error
if err != nil && err != gorm.ErrRecordNotFound{
......@@ -87,10 +87,10 @@ func (courseListService *CourseListService)GetCourseListInfoList(info courseReq.
continue
}
if err == nil && cs.ID >0 {
v.IsSign = true
courseLists[k].IsSign = true
}
if *cs.IsPass {
v.IsPass = true
courseLists[k].IsPass = true
}
global.GVA_LOG.Info("info",zap.Any("detail",v))
}
......
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