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

fix(release): 补齐最新图标与班级星级班右侧栏

apple 1 месяц назад
Родитель
Сommit
acd48015d4

+ 8 - 1
docs/06_生产运维与部署/2026-10-29_正式环境发布实施记录.md

@@ -2,7 +2,7 @@
 
 ## 发布结果
 
-正式环境 `feifan-pms/tomcat-pms` 已完成发布,应用容器单实例重启一次并恢复 `1/1 Ready`。
+正式环境 `feifan-pms/tomcat-pms` 已完成发布,应用容器单实例重启两次并恢复 `1/1 Ready`。
 
 ## 数据库
 
@@ -26,6 +26,7 @@ PMS_PROD_20261029_WJJL
 04_install_menus_permissions.sql
 MergeFwc20261029
 05_verify.sql
+08_install_star_rbar.sql
 ```
 
 发布后确认:
@@ -46,6 +47,8 @@ WJJL 原表仍为 0 条
 - 比赛、卫生、违纪和课程相关 XML/JSP/BPM
 - 10 个 H5 页面
 - 4 个 SVG 入口图标
+- PC/H5 最新 `icon-biz` CSS 与字体
+- 班级对象页面注册和右侧栏星级班报表
 
 `SerCfg.jsp` 两次执行均返回 `Serialize ConfigFile SUCCEED`。
 
@@ -103,6 +106,10 @@ RC 请假记录=2
 宿舍违纪个人列表:成功
 PC 菜单:4 个新入口均存在
 移动端快捷入口:7 个可见
+学员-班级右侧栏:返回星级文明班级评比总表
+PC 图标字体:110 条规则
+H5 图标字体:111 条规则
+4 个新 SVG:均返回 HTTP 200,image/svg+xml
 ```
 
 10 个新增 H5 页面均返回 HTTP 200。

+ 205 - 0
docs/06_生产运维与部署/prod_release_20261029/08_install_star_rbar.sql

@@ -0,0 +1,205 @@
+set serveroutput on
+set define off
+set feedback on
+
+declare
+    v_exists number;
+begin
+    select count(*) into v_exists
+      from user_tables
+     where table_name='PMS_STARCLASS_RBAR_GRCD_BAK_20261027';
+    if v_exists=0 then
+        execute immediate '
+            create table PMS_STARCLASS_RBAR_GRCD_BAK_20261027 as
+            select * from GRCD where 1=0';
+    end if;
+end;
+/
+
+insert into PMS_STARCLASS_RBAR_GRCD_BAK_20261027
+select g.*
+  from GRCD g
+ where g.DXM='ssnwjcStarClassSummary'
+   and g.GNM='search'
+   and not exists (
+       select 1
+         from PMS_STARCLASS_RBAR_GRCD_BAK_20261027 b
+        where b.GRCDID=g.GRCDID
+   );
+
+declare
+    v_bgmbid        number;
+    v_grtjid        number;
+    v_grtjmxid      number;
+    v_root_grtjid   number;
+    v_root_grtjmxid number;
+    v_count         number;
+    v_menu_count    number;
+    c_name constant varchar2(64) := '星级文明班级评比总表';
+    c_page constant varchar2(64) := 'ssnwjc_starClassSummary';
+begin
+    select count(*) into v_count
+      from BGMB
+     where DXM='bj'
+       and BJM=c_page
+       and BGMBLBM=51;
+    if v_count > 1 then
+        raise_application_error(-20001, 'BGMB duplicate');
+    elsif v_count = 1 then
+        select max(BGMBID) into v_bgmbid
+          from BGMB
+         where DXM='bj'
+           and BJM=c_page
+           and BGMBLBM=51;
+        update BGMB
+           set MC=c_name,
+               MS='星级文明班级评比总表',
+               LMMS='班级星级评比报表',
+               BGMBLXM=1,
+               FWSBLBM=1,
+               FWM=null,
+               JLZTM=51
+         where BGMBID=v_bgmbid;
+    else
+        insert into BGMB
+            (BGMBLBM,BGMBLXM,FWSBLBM,XH,MC,MS,LMMS,
+             DXM,FWM,BJM,JLZTM)
+        values
+            (51,1,1,0,c_name,'星级文明班级评比总表',
+             '班级星级评比报表','bj',null,c_page,51)
+        returning BGMBID into v_bgmbid;
+    end if;
+
+    select count(*) into v_count
+      from GRTJ
+     where DXM='bj'
+       and GRTJMBID=5712
+       and YYRYID is null
+       and GRTJLBM=51
+       and MC=c_name;
+    if v_count > 1 then
+        raise_application_error(-20002, 'GRTJ duplicate');
+    elsif v_count = 1 then
+        select max(GRTJID) into v_grtjid
+          from GRTJ
+         where DXM='bj'
+           and GRTJMBID=5712
+           and YYRYID is null
+           and GRTJLBM=51
+           and MC=c_name;
+        update GRTJ
+           set XH=1,KD=0,GD=0,JLZTM=51
+         where GRTJID=v_grtjid;
+    else
+        insert into GRTJ
+            (YYRYID,TJTLBM,GRTJMBID,YJTJZBM,MC,DXM,
+             XH,KD,GD,JLZTM,GRTJLBM)
+        values
+            (null,null,5712,null,c_name,'bj',
+             1,0,0,51,51)
+        returning GRTJID into v_grtjid;
+    end if;
+
+    select count(*) into v_count
+      from GRTJMX
+     where GRTJID=v_grtjid
+       and BGMBID=v_bgmbid;
+    if v_count > 1 then
+        raise_application_error(-20003, 'GRTJMX duplicate');
+    elsif v_count = 1 then
+        select max(GRTJMXID) into v_grtjmxid
+          from GRTJMX
+         where GRTJID=v_grtjid
+           and BGMBID=v_bgmbid;
+        update GRTJMX
+           set MC=c_name,XH=1,JLZTM=51
+         where GRTJMXID=v_grtjmxid;
+    else
+        insert into GRTJMX
+            (GRTJID,TJZBM,SJGRTJMXID,MC,XH,JLZTM,BGMBID)
+        values
+            (v_grtjid,null,null,c_name,1,51,v_bgmbid)
+        returning GRTJMXID into v_grtjmxid;
+    end if;
+
+    select count(*) into v_count
+      from GRTJ
+     where DXM='bj'
+       and GRTJMBID is null
+       and YYRYID is null
+       and GRTJLBM=51
+       and MC=c_name;
+    if v_count > 1 then
+        raise_application_error(-20004, 'root GRTJ duplicate');
+    elsif v_count = 1 then
+        select max(GRTJID) into v_root_grtjid
+          from GRTJ
+         where DXM='bj'
+           and GRTJMBID is null
+           and YYRYID is null
+           and GRTJLBM=51
+           and MC=c_name;
+        update GRTJ
+           set XH=1,KD=0,GD=0,JLZTM=51
+         where GRTJID=v_root_grtjid;
+    else
+        insert into GRTJ
+            (YYRYID,TJTLBM,GRTJMBID,YJTJZBM,MC,DXM,
+             XH,KD,GD,JLZTM,GRTJLBM)
+        values
+            (null,null,null,null,c_name,'bj',
+             1,0,0,51,51)
+        returning GRTJID into v_root_grtjid;
+    end if;
+
+    select count(*) into v_count
+      from GRTJMX
+     where GRTJID=v_root_grtjid
+       and BGMBID=v_bgmbid;
+    if v_count > 1 then
+        raise_application_error(-20005, 'root GRTJMX duplicate');
+    elsif v_count = 1 then
+        select max(GRTJMXID) into v_root_grtjmxid
+          from GRTJMX
+         where GRTJID=v_root_grtjid
+           and BGMBID=v_bgmbid;
+        update GRTJMX
+           set MC=c_name,XH=1,JLZTM=51
+         where GRTJMXID=v_root_grtjmxid;
+    else
+        insert into GRTJMX
+            (GRTJID,TJZBM,SJGRTJMXID,MC,XH,JLZTM,BGMBID)
+        values
+            (v_root_grtjid,null,null,c_name,1,51,v_bgmbid)
+        returning GRTJMXID into v_root_grtjmxid;
+    end if;
+
+    delete from GRCD
+     where DXM='ssnwjcStarClassSummary'
+       and GNM='search';
+    v_menu_count := sql%rowcount;
+
+    dbms_output.put_line('BGMBID=' || v_bgmbid);
+    dbms_output.put_line('GRTJID=' || v_grtjid);
+    dbms_output.put_line('GRTJMXID=' || v_grtjmxid);
+    dbms_output.put_line('ROOT_GRTJID=' || v_root_grtjid);
+    dbms_output.put_line('ROOT_GRTJMXID=' || v_root_grtjmxid);
+    dbms_output.put_line('removed_legacy_menus=' || v_menu_count);
+end;
+/
+
+commit;
+
+select g.GRTJID,g.GRTJMBID,g.DXM,g.GRTJLBM,g.MC grtj_mc,m.GRTJMXID,
+       b.BGMBID,b.MC bgmb_mc,b.FWM,b.BJM,b.JLZTM
+  from GRTJ g
+  join GRTJMX m on m.GRTJID=g.GRTJID
+  join BGMB b on b.BGMBID=m.BGMBID
+ where g.DXM='bj'
+   and (g.GRTJMBID=5712 or g.GRTJMBID is null)
+   and g.GRTJLBM=51
+   and b.BJM='ssnwjc_starClassSummary';
+
+select GRCDID,DXM,GNM,MC
+  from GRCD
+ where DXM='ssnwjcStarClassSummary';

+ 102 - 0
docs/06_生产运维与部署/prod_release_20261029/09_rollback_star_rbar.sql

@@ -0,0 +1,102 @@
+set serveroutput on
+set define off
+set feedback on
+
+declare
+    v_bgmbid        number;
+    v_grtjid        number;
+    v_root_grtjid   number;
+    v_count         number;
+    v_exists        number;
+    c_name constant varchar2(64) := '星级文明班级评比总表';
+    c_page constant varchar2(64) := 'ssnwjc_starClassSummary';
+begin
+    select count(*) into v_count
+      from BGMB
+     where DXM='bj' and BJM=c_page and BGMBLBM=51;
+    if v_count > 1 then
+        raise_application_error(-20011, 'BGMB duplicate');
+    elsif v_count = 1 then
+        select max(BGMBID) into v_bgmbid
+          from BGMB
+         where DXM='bj' and BJM=c_page and BGMBLBM=51;
+    else
+        v_bgmbid := null;
+    end if;
+
+    select count(*) into v_count
+      from GRTJ
+     where DXM='bj' and GRTJMBID=5712 and YYRYID is null
+       and GRTJLBM=51 and MC=c_name;
+    if v_count > 1 then
+        raise_application_error(-20012, 'GRTJ duplicate');
+    elsif v_count = 1 then
+        select max(GRTJID) into v_grtjid
+          from GRTJ
+         where DXM='bj' and GRTJMBID=5712 and YYRYID is null
+           and GRTJLBM=51 and MC=c_name;
+    else
+        v_grtjid := null;
+    end if;
+
+    select count(*) into v_count
+      from GRTJ
+     where DXM='bj' and GRTJMBID is null and YYRYID is null
+       and GRTJLBM=51 and MC=c_name;
+    if v_count > 1 then
+        raise_application_error(-20013, 'root GRTJ duplicate');
+    elsif v_count = 1 then
+        select max(GRTJID) into v_root_grtjid
+          from GRTJ
+         where DXM='bj' and GRTJMBID is null and YYRYID is null
+           and GRTJLBM=51 and MC=c_name;
+    else
+        v_root_grtjid := null;
+    end if;
+
+    if v_grtjid is not null then
+        delete from GRTJMX
+         where GRTJID=v_grtjid
+           and (v_bgmbid is null or BGMBID=v_bgmbid);
+        select count(*) into v_count from GRTJMX where GRTJID=v_grtjid;
+        if v_count=0 then
+            delete from GRTJ where GRTJID=v_grtjid;
+        end if;
+    end if;
+
+    if v_root_grtjid is not null then
+        delete from GRTJMX
+         where GRTJID=v_root_grtjid
+           and (v_bgmbid is null or BGMBID=v_bgmbid);
+        select count(*) into v_count from GRTJMX where GRTJID=v_root_grtjid;
+        if v_count=0 then
+            delete from GRTJ where GRTJID=v_root_grtjid;
+        end if;
+    end if;
+
+    if v_bgmbid is not null then
+        select count(*) into v_count from GRTJMX where BGMBID=v_bgmbid;
+        if v_count=0 then
+            delete from BGMB where BGMBID=v_bgmbid;
+        end if;
+    end if;
+
+    select count(*) into v_exists
+      from user_tables
+     where table_name='PMS_STARCLASS_RBAR_GRCD_BAK_20261027';
+    if v_exists=1 then
+        execute immediate '
+            insert into GRCD
+            select b.* from PMS_STARCLASS_RBAR_GRCD_BAK_20261027 b
+             where not exists (
+                   select 1 from GRCD g where g.GRCDID=b.GRCDID)';
+    end if;
+
+    dbms_output.put_line('removed BGMBID=' || nvl(to_char(v_bgmbid),'none'));
+    dbms_output.put_line('removed GRTJID=' || nvl(to_char(v_grtjid),'none'));
+    dbms_output.put_line('removed ROOT_GRTJID=' || nvl(to_char(v_root_grtjid),'none'));
+    dbms_output.put_line('restored legacy menus from PMS_STARCLASS_RBAR_GRCD_BAK_20261027');
+end;
+/
+
+commit;

+ 1 - 0
docs/06_生产运维与部署/prod_release_20261029/MergeFwc20261029.java

@@ -21,6 +21,7 @@ public class MergeFwc20261029 {
 
     static {
         SERVICES.put(1015263L, List.of(
+                "bj_cxsy",
                 "cswsjc", "cswsjc_ck", "cswsjc_lr",
                 "sswjjl", "sswjjl_ck", "sswjjl_lr",
                 "xxwjjl", "xxwjjl_ck", "xxwjjl_lr",

+ 9 - 2
docs/06_生产运维与部署/prod_release_20261029/README.md

@@ -28,6 +28,7 @@
 03_install_school_award.sql
 07_install_business_schema.sql
 04_install_menus_permissions.sql
+08_install_star_rbar.sql
 05_verify.sql
 ```
 
@@ -38,6 +39,7 @@
 
 ```text
 06_rollback.sql
+09_rollback_star_rbar.sql
 ```
 
 ## 正式环境基线
@@ -65,8 +67,9 @@ T21533 RYID=111148366,GWID=1015263
    `WEB-INF/cfg/ser/xss` 存在。
 6. 通过平台发布 `cswsjc_boxAdd`、`sswjjl_zj`、`xxwjjl_zj`、
    `xxhjjl_zj`。
-7. 重启 Deployment 并等待 `rollout status` 成功。
-8. 小程序必须使用 `https://m.sxlg.net` 构建,禁止使用测试地址。
+7. 发布 PC/H5 最新 `icon-biz` CSS、字体和 `load.js/base.js?v=20261027`。
+8. 重启 Deployment 并等待 `rollout status` 成功。
+9. 小程序必须使用 `https://m.sxlg.net` 构建,禁止使用测试地址。
 
 ## 验证
 
@@ -75,6 +78,8 @@ T21533 RYID=111148366,GWID=1015263
 - 场室卫生、宿舍违纪入口及历史列表。
 - 星级班月度、每日六项、具体扣分追踪。
 - 课程表首页、课程点名、课堂日志及首页滑动。
+- 学员-班级左侧列表右侧显示“星级文明班级评比总表”。
+- PC/H5/小程序三端新图标字体和 4 个业务 SVG 返回 HTTP 200。
 - 至少验证一个相邻业务,确认登录、考勤和请假无回归。
 
 ## 回滚
@@ -86,5 +91,7 @@ T21533 RYID=111148366,GWID=1015263
    只回退应用和权限。
 5. 重启 Deployment,并重新验证登录、考勤、请假和一个发布业务。
 
+星级班右侧栏使用 `09_rollback_star_rbar.sql` 单独回滚。
+
 仅执行 `kubectl rollout undo deploy/tomcat-pms` 不能恢复这些持久化 ROOT 文件,
 必须使用应用基线包。

+ 2 - 0
docs/06_生产运维与部署/正式环境测试账号.md

@@ -112,4 +112,6 @@ PC 菜单:4 个新菜单已加入班主任学工模板
 场室卫生:列表可加载
 宿舍违纪:个人列表可加载
 PC 菜单:场室卫生、宿舍违纪、学校违纪、学校获奖均可见
+PC/H5/小程序图标:已更新到 icon-biz 20261027
+学员-班级右侧栏:已显示“星级文明班级评比总表”
 ```