Просмотр исходного кода

docs(starclass): include account a report permission

harper 3 недель назад
Родитель
Сommit
0f89960be2

+ 18 - 2
docs/06_生产运维与部署/2026-11-05_星级班PC报表岗位权限修复.sql

@@ -27,11 +27,24 @@ begin
         ]';
     end if;
 
+    select count(*) into v_cnt
+      from user_tables
+     where table_name = 'BAK_20261105_GW_ACCOUNT_A';
+    if v_cnt = 0 then
+        execute immediate q'[
+            create table BAK_20261105_GW_ACCOUNT_A as
+            select * from GW where GWID = 102121
+        ]';
+    end if;
+
     for r in (
         select GWID, FWC
           from GW
          where JLZTM = 51
-           and dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
+           and (
+               dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
+               or GWID = 102121
+           )
     ) loop
         v_start := dbms_lob.instr(r.FWC, to_clob('"jw":['));
         if v_start > 0 then
@@ -78,7 +91,10 @@ select GWID,
        ) USER_COUNT
   from GW
  where JLZTM = 51
-   and dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
+   and (
+       dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
+       or GWID = 102121
+   )
  order by GWID;
 
 exit

+ 24 - 0
docs/06_生产运维与部署/2026-11-05_星级班最新功能正式发布实施记录.md

@@ -418,3 +418,27 @@ JSP 备份:
 3. 重新打开星级班总表。
 
 不需要删除小程序,也不需要重新发布小程序体验版。
+
+### 10.5 账号 `a` 补充授权
+
+账号 `a` 使用岗位:
+
+```text
+GWID=102121
+岗位=测试_平台技术部职员
+```
+
+该岗位没有 `bj_cxsy`,因此不包含在普通班主任批量授权范围内。用户明确使用 `a` 账号访问报表后,已额外为该岗位增加:
+
+```text
+xjbMonth_pcSummary
+xjbMonth_pcDetail
+```
+
+岗位授权备份:
+
+```text
+BAK_20261105_GW_ACCOUNT_A
+```
+
+该项同样只授予只读报表权限,不包含月结、同步或增扣分写入权限。