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

130 lines
4.4 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
http://10.10.21.20:9000/QingLong/plogin.html
# 资产管理干事
装备中心 丁虹元 dinghongyuan 123456
未来可能会扩展 xxx xxxx
# 办公室干事
## 市教辅单位
市教辅单位办公室干事 sjfgs 123456
## 直属学校
二中干事 erzhonggs 123456
长春市第二十中学干事 eszgs 123456
长春市第一实验东光学校干事 dggs 123456
长春市第八中学干事 bzgs 123456
长春市第二实验小学干事 esyxxgs 123456
长春市第二实验中学干事 esyzxgs 123456
长春希望高中干事 xwgzgs 123456
长春希望高中学生 stu67 123456
长春市朝鲜族中学干事 cxzzxgs 123456
长春市养正高级中学干事 yzgzgs 123456
长春市第一中学校干事 yzgs 123456
## 县区教育局资产填报干事
南关区教育局资产填报干事 nggs 123456
九台区教育局办公事干事 jtgs 123456
## 市教育局办公室干事
长春市教育局办公室干事 ccsjyjgs 123456
## 县区教育局下属学校校办干事
九台一中校办干事 jtyzxbgs 123456
九台一中学生账号 stu63 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;
-- 同步天喻平台数据的同步策略
1、单位表
id_int,
org_id,org_name,province_code,city_code,area_code,org_parent_id
org_level_code
org_category(单位类型)
org_category_title (6:九年一贯制,99:教育局.初中:1,小学0,2:高中,12:学前教育
完全中学:3 十二年一贯制:7 5:教学点 10:中职
)
status
2、部门表
id_int,org_id,parent_id,bureau_id,org_name
3、教师表
id_int,user_id,org_id,name,bureau_id
4、班级表
id_int,org_id,parent_id,bureau_id,org_name
三年级1班
九年级1班
高中三年级8班
5、学生表
id_int,user_id,org_id,name,bureau_id
步骤:
(1) 装备中心出据一个需要使用数据采集系统的全市教育单位名称(教辅单位,中小学,区县教育局),然后录入到我们的系统中,
再与天喻检查一下是不是这些单位都在天喻平台中存在,是否名称一致,不一致的话修改为一致,使得两方的单位名称对应上。
(2) 我们分别为每个合法单位创建一个校办干事,分配管理账号。
(3) 我系统中的发布到人相关接口修改SQL为查询天喻平步过来的基础数据表这样任务为直接发布给了天喻平台中的用户ID
(4) 教师、学生使用天喻平台的基础信息、密码登录使用CAS统一认证登录到我们的系统然后进行填报