liujc 2 anni fa
parent
commit
6090193f18

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TeacherAttendanceServiceImpl.java

@@ -409,7 +409,7 @@ public class TeacherAttendanceServiceImpl extends BaseServiceImpl<Long, TeacherA
                         studentCourseHomework.setGroupType(teacherAttendance.getGroupType());
                     }
 
-                    if (CollectionUtils.isEmpty(studentLessonTrainingDetails)) {
+                    if (!CollectionUtils.isEmpty(studentLessonTrainingDetails)) {
                         versionTag ="v2";
                     }
 

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/CourseHomeworkMapper.xml

@@ -104,6 +104,9 @@
 			<if test="expiryDate != null">
 				expiry_date_ = #{expiryDate},
 			</if>
+            <if test="versionTag != null">
+                version_tag_ = #{versionTag},
+            </if>
 			update_time_ = NOW()
 		</set>
 		WHERE id_ = #{id} and tenant_id_ = #{tenantId}