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.

45 lines
1.9 KiB

计划:
一、事权
- [ ] 梳理事权项目涉及到的表、视图、存储过程并整理出完整的数据模型(方式方法不限)
- [x] 安装datahub对库进行扫描---->元数据、数据血缘、数据流向
- [ ] 整理事权高速公路建设项目综合管理信息平台查询SQL--->数据血缘
- [ ] 修改存储过程逻辑1.将删除后插入修改为:状态位修改插入或查询插入到临时表再插入新数据 2.增加日志表记录执行过程
工作日志:
1. WSL-docker 搭建datahub对事权库进行扫描
2. 对照事权-->数据填报采集系统及数据库设计文档梳理填报用到的表
3. 使用pdman对事权库逆向出ODS表89张与数据库设计文档提供的67张有差异其余22张表用途不明
4. 清除合同管理、征地拆迁测试数据
```sql
-- 合同管理
-- 合同签订情况总览、合同支付情况
select * from DW_CONTRACT where rownum<=10;
create table DW_CONTRACT_bak_zr_20230403 as select * from DW_CONTRACT;
-- truncate table DW_CONTRACT;
-- 征地拆迁
-- 项目征地拆迁进度及费用支付情况 DW_LAND_DETAIL、DW_MAIN_DIMENSION
select * from DW_LAND_DETAIL where rownum<=10;
create table DW_LAND_DETAIL_bak_zr_20230403 as select * from DW_LAND_DETAIL;
-- truncate table DW_LAND_DETAIL;
select * from DW_MAIN_DIMENSION where rownum<=10;
create table DW_MAIN_DIMENSION_bak_zr_20230403 as select * from DW_MAIN_DIMENSION;
-- truncate table DW_MAIN_DIMENSION;
-- 工程变更指定project_ID
delete from dw_change where ID_ in (
select ID_ from dw_change where MAIN_ID_ in (
select id from dw_main_dimension where PROJECT_ID in (600000000000000138))
)
-- 工程变更台账
delete from ods_change_account where PROJECT_ID in (600000000000000138)
```
5. 手动调用存储过程P_DW_MAIN_DIMENSION、P_DW_PROJECT_PROGRESS_LIST补充dw_main_dimension、dw_progress_complete表数据