| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- set define off
- set echo on
- whenever sqlerror exit sql.sqlcode
- alter session set container=ORCLPDB;
- alter session set current_schema=PMS_TEST;
- declare
- v_count number;
- begin
- select count(*)
- into v_count
- from PMS_TEST.GRCD
- where GRCDID = 1025885
- and GRCDMBID = 1011
- and MC = '班级评比'
- and JLZTM = 1;
- if v_count <> 1 then
- raise_application_error(-20001, '未找到有效的班级评比菜单父节点 1025885');
- end if;
- select count(*)
- into v_count
- from PMS_TEST.GRCD
- where SJGRCDID = 1025885
- and DXM = 'fjyrjc';
- if v_count <> 0 then
- raise_application_error(-20002, '风纪仪容检查菜单已存在,请勿重复安装');
- end if;
- select count(*)
- into v_count
- from PMS_TEST.GW
- where GWID in (102121, 1015484)
- and FWC is not null;
- if v_count <> 2 then
- raise_application_error(-20003, '目标岗位 FWC 不完整');
- end if;
- end;
- /
- select GRCDID,GRCDMBID,SJGRCDID,XH,MC,DXM,GNM,JLZTM
- from PMS_TEST.GRCD
- where SJGRCDID = 1025885
- order by XH,GRCDID;
- exit
|