Commit dde6b0a321dc11c243ccae99ce8e4cc3cd7991df

Authored by syduan
1 parent ec48e9c8

刷线上课数据

Showing 1 changed file with 7 additions and 7 deletions
database/sql_log.sql
@@ -3032,15 +3032,15 @@ update zygj_solution_class zc,class c set zc.class_alias=c.class_name where zc @@ -3032,15 +3032,15 @@ update zygj_solution_class zc,class c set zc.class_alias=c.class_name where zc
3032 -- 执行环境 予发布和灰度 3032 -- 执行环境 予发布和灰度
3033 -- START 3033 -- START
3034 -- ---------------------------- 3034 -- ----------------------------
3035 -create table zygj_class_schedule_bf as select * from gxb_core.zygj_class_schedule 3035 +create table zygj_class_schedule_bf as select * from gxb_core.zygj_class_schedule;
3036 3036
3037 -create table zygj_class_schedule_classroom_bf as select * from gxb_core.zygj_class_schedule_classroom 3037 +create table zygj_class_schedule_classroom_bf as select * from gxb_core.zygj_class_schedule_classroom;
3038 3038
3039 -create table zygj_class_schedule_info_bf as select * from gxb_core.zygj_class_schedule_info 3039 +create table zygj_class_schedule_info_bf as select * from gxb_core.zygj_class_schedule_info;
3040 3040
3041 -update zygj_class_schedule set delete_flag=0  
3042 -update zygj_class_schedule_classroom set delete_flag=0  
3043 -update zygj_class_schedule_info set delete_flag=0 3041 +update zygj_class_schedule set delete_flag=0;
  3042 +update zygj_class_schedule_classroom set delete_flag=0;
  3043 +update zygj_class_schedule_info set delete_flag=0;
3044 3044
3045 update zygj_solution_class set class_status=1 and type=1 where class_id in( 3045 update zygj_solution_class set class_status=1 and type=1 where class_id in(
3046 5, 3046 5,
@@ -3098,7 +3098,7 @@ update zygj_solution_class set class_status=1 and type=1 where class_id in( @@ -3098,7 +3098,7 @@ update zygj_solution_class set class_status=1 and type=1 where class_id in(
3098 ); 3098 );
3099 3099
3100 update zygj_solution_class t1,(select IFNULL(c.root_class,zc.class_id) root_class,zc.class_id from zygj_solution_class zc join class c on zc.class_id=c.class_id where zc.delete_flag=1 and c.delete_flag=1 group by zc.class_id 3100 update zygj_solution_class t1,(select IFNULL(c.root_class,zc.class_id) root_class,zc.class_id from zygj_solution_class zc join class c on zc.class_id=c.class_id where zc.delete_flag=1 and c.delete_flag=1 group by zc.class_id
3101 -)t2 set t1.class_id=t2.root_class where t1.class_id=t2.class_id and t1.delete_flag=1 and t1.class_status=0 and t1.type=0 3101 +)t2 set t1.class_id=t2.root_class where t1.class_id=t2.class_id and t1.delete_flag=1 and t1.class_status=0 and t1.type=0;
3102 -- ---------------------------- 3102 -- ----------------------------
3103 -- 2017-09-20 段世尧 脚本版本 201709211053 END 3103 -- 2017-09-20 段世尧 脚本版本 201709211053 END
3104 -- ---------------------------- 3104 -- ----------------------------
3105 \ No newline at end of file 3105 \ No newline at end of file