Commit ec48e9c8ac60f99e7de6a7116862a25841701689
1 parent
f789835e
刷线上课数据
Showing
1 changed file
with
82 additions
and
1 deletions
database/sql_log.sql
| @@ -3020,4 +3020,85 @@ create table zygj_solution_class_bf as select * from zygj_solution_class; | @@ -3020,4 +3020,85 @@ create table zygj_solution_class_bf as select * from zygj_solution_class; | ||
| 3020 | update zygj_solution_class zc,class c set zc.class_alias=c.class_name where zc.class_id=c.class_id; | 3020 | update zygj_solution_class zc,class c set zc.class_alias=c.class_name where zc.class_id=c.class_id; |
| 3021 | -- ---------------------------- | 3021 | -- ---------------------------- |
| 3022 | -- 2017-09-20 刘岱鹏 脚本版本 201709212030 END | 3022 | -- 2017-09-20 刘岱鹏 脚本版本 201709212030 END |
| 3023 | --- ---------------------------- | ||
| 3024 | \ No newline at end of file | 3023 | \ No newline at end of file |
| 3024 | +-- ---------------------------- | ||
| 3025 | + | ||
| 3026 | + | ||
| 3027 | + | ||
| 3028 | +-- ---------------------------- | ||
| 3029 | +-- 2017-09-21 | ||
| 3030 | +-- 段世尧 | ||
| 3031 | +-- 脚本版本 201709211053 | ||
| 3032 | +-- 涉及功能 备份排课数据,清除排课数据,更新线上课程状态,更新元课程 | ||
| 3033 | +-- 执行环境 予发布和灰度 | ||
| 3034 | +-- START | ||
| 3035 | +-- ---------------------------- | ||
| 3036 | +create table zygj_class_schedule_bf as select * from gxb_core.zygj_class_schedule | ||
| 3037 | + | ||
| 3038 | +create table zygj_class_schedule_classroom_bf as select * from gxb_core.zygj_class_schedule_classroom | ||
| 3039 | + | ||
| 3040 | +create table zygj_class_schedule_info_bf as select * from gxb_core.zygj_class_schedule_info | ||
| 3041 | + | ||
| 3042 | +update zygj_class_schedule set delete_flag=0 | ||
| 3043 | +update zygj_class_schedule_classroom set delete_flag=0 | ||
| 3044 | +update zygj_class_schedule_info set delete_flag=0 | ||
| 3045 | + | ||
| 3046 | +update zygj_solution_class set class_status=1 and type=1 where class_id in( | ||
| 3047 | +5, | ||
| 3048 | +18270, | ||
| 3049 | +18274, | ||
| 3050 | +18275, | ||
| 3051 | +18277, | ||
| 3052 | +18278, | ||
| 3053 | +18279, | ||
| 3054 | +18281, | ||
| 3055 | +18291, | ||
| 3056 | +18301, | ||
| 3057 | +18303, | ||
| 3058 | +18327, | ||
| 3059 | +18388, | ||
| 3060 | +18581, | ||
| 3061 | +18587, | ||
| 3062 | +18666, | ||
| 3063 | +18917, | ||
| 3064 | +18995, | ||
| 3065 | +19456, | ||
| 3066 | +19462, | ||
| 3067 | +19464, | ||
| 3068 | +19466, | ||
| 3069 | +19841, | ||
| 3070 | +20013, | ||
| 3071 | +20015, | ||
| 3072 | +20016, | ||
| 3073 | +20036, | ||
| 3074 | +20037, | ||
| 3075 | +20038, | ||
| 3076 | +20391, | ||
| 3077 | +20395, | ||
| 3078 | +20398, | ||
| 3079 | +20400, | ||
| 3080 | +20402, | ||
| 3081 | +20405, | ||
| 3082 | +20442, | ||
| 3083 | +20443, | ||
| 3084 | +20444, | ||
| 3085 | +20445, | ||
| 3086 | +20452, | ||
| 3087 | +20454, | ||
| 3088 | +20638, | ||
| 3089 | +20639, | ||
| 3090 | +20649, | ||
| 3091 | +20718, | ||
| 3092 | +20741, | ||
| 3093 | +20912, | ||
| 3094 | +20913, | ||
| 3095 | +20914, | ||
| 3096 | +20915, | ||
| 3097 | +20916, | ||
| 3098 | +20917 | ||
| 3099 | +); | ||
| 3100 | + | ||
| 3101 | +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 | ||
| 3102 | +)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 | ||
| 3103 | +-- ---------------------------- | ||
| 3104 | +-- 2017-09-20 段世尧 脚本版本 201709211053 END | ||
| 3105 | +-- ---------------------------- | ||
| 3025 | \ No newline at end of file | 3106 | \ No newline at end of file |