Browse Source

会员拆分

zouxuan 5 months ago
parent
commit
23ce0b3d5e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

+ 2 - 1
mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

@@ -1086,7 +1086,8 @@
     </update>
     <update id="updateCloudTeacherEndTime">
         update student set member_rank_setting_id_ = 1,membership_end_time_ =
-        (select MAX(end_time_) from cloud_teacher_order where status_ = 2 AND end_time_ >= NOW() AND student_id_ = #{studentId})
+        (select max(new_end_time_) from student_member_update_log where id_ IN (
+            select max(id_) from student_member_update_log where student_id_ = #{studentId} group by level_))
         where user_id_ = #{studentId};
     </update>