From a2558ea396c4ab3a62f1cc975cc079fd1078d178 Mon Sep 17 00:00:00 2001 From: lbaf23 <2282480289@qq.com> Date: Wed, 4 Aug 2021 11:17:20 +0800 Subject: [PATCH] fix: last learn bug --- models/student.go | 1 - 1 file changed, 1 deletion(-) diff --git a/models/student.go b/models/student.go index 26e349b..f97d3cd 100644 --- a/models/student.go +++ b/models/student.go @@ -140,7 +140,6 @@ func (l *LearnSection) Update() (err error) { Update(l) _, err = (&LastLearn{}).GetEngine(). Where("student_id = ?", l.StudentId). - Where("section_id = ?", l.SectionId). Update(&LastLearn{ StudentId: l.StudentId, SectionId: l.SectionId,