fix(手动添加权限历史数据处理): 手动添加权限历史数据处理 See merge request dcuc-tjdsj/auth-service!42
@@ -1,2 +1,4 @@
ALTER TABLE `T_SERVICE_AUTH_RESULT` ADD `reason` varchar(200) DEFAULT NULL COMMENT '理由';
+-- 处理手动添加的历史数据
+UPDATE `t_service_auth_result` set `auth_status` = '1' where `deleted` = '0' AND `start_time` is NULL and `end_time` is NULL;
@@ -1,3 +1,5 @@
alter table T_SERVICE_AUTH_RESULT add reason varchar2(200);
comment on column T_SERVICE_AUTH_RESULT.reason is '理由';
+UPDATE T_SERVICE_AUTH_RESULT set AUTH_STATUS = '1' where DELETED = '0' AND START_TIME is NULL and END_TIME is NULL;