You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QingLong/Doc/数据上报系统测试账号.txt

82 lines
2.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 项目地址
http://10.10.21.20:9000/QingLong/html/login.html
# 超级管理员
sys1
DsideaL4r5t6y7u
资产管理干事
装备中心
丁虹元 dinghongyuan 123456
校办干事
长春市第二十中学干事 eszgs 123456
长春市第一实验东光学校干事 dggs 123456
长春市第八中学干事 bzgs 123456
长春市第二实验小学干事 esyxxgs 123456
长春市第二实验中学干事 esyzxgs 123456
长春希望高中干事 xwgzgs 123456
长春市朝鲜族中学干事 cxzzxgs 123456
长春市养正高级中学干事 yzgzgs 123456
长春市第一中学校干事 yzgs 123456
# 县区教育局资产填报干事
南关区教育局资产填报干事 nggs 123456
九台区教育局办公事干事 jtgs 123456
# 市教育局办公室干事
长春市教育局办公室干事 ccsjyjgs 123456
# 县区教育局下属学校校办干事
九台一中校办干事 jtyzxbgs 123456
九台市电教站办公室干事 jtdjzgs 123456
# Q:如何设计才能让指定角色发的统计任务,让哪些指定角色接收到?
select * from t_base_org_type_principalship where name like '%校办干事%'
252,253,254
select * from t_base_org_type_principalship where name like '%资产%'
255
答:需要增加一个关系表,描述哪个角色发的任务,哪些角色可以接收到
t_importexcel_role_map
内容:
255 252 资产管理干事 幼儿园校办干事
255 253 资产管理干事 中小学校办干事
255 254 资产管理干事 职业学校校办干事
结论:
1发的角色可以是多个收的角色只能是一个
2如果某人有多个发的角色那么取第一个如果以后反馈不方便就修改为发现某人有多个发的角色那么让他选择一个。
truncate table t_collect_job restart identity;
truncate table t_collect_job_sheet restart identity;
truncate table t_collect_job_sheet_col restart identity;
truncate table t_collect_mapping restart identity;
truncate table t_collect_job_target restart identity;
truncate table t_collect_group restart identity;
-- 删除所有以ds_job开头的表
DO $$
DECLARE
rec record;
BEGIN
FOR rec IN
SELECT table_name
FROM information_schema.tables
WHERE table_name LIKE 'ds_job%'
LOOP
EXECUTE 'DROP TABLE ' || rec.table_name || ' CASCADE';
END LOOP;
END $$;
# 处理序列
-- 查看所有序列
SELECT relname,pg_sequence_last_value(relname ::text) AS seq_last_value FROM pg_class
WHERE relkind = 'S' AND relowner = (SELECT usesysid FROM pg_user WHERE usename = (SELECT CURRENT_USER));
-- 修改序列名称
ALTER SEQUENCE t_importexcel_process_id_seq RENAME TO t_collect_process_id_seq;