储罐.txt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. //同步语句
  2. insert into GK_BASIC_JSJY_JYR_CG(id,ssjyr,whzyfzbh,qyccbh,scjyhdlx,cchxppzsl,zxgyjzysb,cccscq,gkzdwxybh,gkzdwxybabh,cgqmc,jtwz,cgzb,cgqmj,cggs,cgmc,cgxh,ywfhd,gjzxjl,cgcz,cgrj,cgxs,cgazxs,wzzt,cgwx,sjyl,sjgzyl,sjwd,sjgzwd,tcsj,
  3. sjsynx,jlfs,clfs,fjdsssfnjjzs,zsbh,tbr,lxdh,tbsj,hysl,hysm,bdzzsl,bdzzsm,qtsl,qtsm,mapid,hxpmc,hxppz,hxpsl,update_user,record_status,szd,szgq,zdwxycggs,zdwxycgrl,aqgd,zj,wxydj,create_date_time,update_date_time,create_user,szgk,
  4. ssgkglbm,aqid)(select sys_guid(),a.id,c.WHZYFZBH,c.QYCCBH,case when c.SCJYHDLX='cc' then '3401' else null end,c.CCHXPPZSL,c.ZXGYJZYSB,case when c.CCCSCQ='zy' then '3501' when c.CCCSCQ='zl' then '3502' else null end,c.GKZDWXYBH,
  5. c.GKZDWXYBABH,c.CGQMC,c.JTWZ,c.CGZB,c.CGQMJ,c.CGGS,c.CGMC,c.CGXH,case when c.YWFHD='有' then '501' when c.YWFHD='无' then '502' else null end,c.GJZXJL,case when c.CGCZ='1' then '3001' when c.CGCZ='2' then '3002' when c.CGCZ='3' then '3003' else null end,
  6. c.CGRJ,case when c.CGXS='cc' then '3601' when c.CGXS='sc' then '3602' else null end,case when c.CGAZXS='ds' then '3701' when c.CGAZXS='dx' then '3702' when c.CGAZXS='bds' then '3703' else null end,
  7. case when c.WZZT='yt' then '3801' when c.WZZT='qt' then '3802' when c.WZZT='yqt' then '3803' else null end,
  8. case when c.CGWX='ls' then '3901' when c.CGWX='qx' then '3902' when c.CGWX='ws' then '3903' when c.CGWX='qxg' then '3904' else null end,c.SJYL,c.SJGZYL,c.SJWD,c.SJGZWD,c.TCSJ,c.SJSYNX,
  9. case when c.JLFS='gd' then '4001' when c.JLFS='cc' then '4002' else null end,case when c.CLFS='gd' then '4101' when c.CLFS='cc' then '4102' else null end,case when c.FJDSSSFNJJZS='s' then '201' else '202' end,
  10. c.ZSBH,c.TBR,c.LXDH,c.TBSJ,c.HYSL,c.HYSM,c.BDZZSL,c.BDZZSM,c.QTSL,c.QTSM,c.MAPID,c.HXPMC,c.HXPPZ,c.HXPSL,'aq',1,b.szd,b.id,c.ZDWXYCGGS,c.ZDWXYCGRL,c.AQGD,c.ZJ,c.WXYDJ,systimestamp,systimestamp,'aq',b.szgk,'',
  11. c.ID from GK_BASIC_JSJY_JYR a,GK_BASIC_JSJY_GK_GQ b,aq.T_YJPT_CG c where c.record_status!=9 and c.GQ=b.aqid and a.aqid=c.DWMC)
  12. //所需数据字典
  13. 生产经营活动类型 :存储
  14. 储罐材质: 碳钢 不锈钢 玻璃钢
  15. 存储场所产权:自有 租赁
  16. 储罐形式:储存性储罐 生产性储罐
  17. 储罐安装形式:地上 地下 半地上
  18. 物质状态: 液态 气态 液气态共存
  19. 储罐外形: 外浮顶 内浮顶 拱顶 球形罐
  20. 进料方式: 管道 槽车
  21. 出料方式: 管道 槽车
  22. //插入数据字典语句
  23. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  24. values ('34', '00', '生产经营活动类型', 'SCJYHD', null, 34, to_timestamp('26-11-2015 18:54:20.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 18:54:20.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  25. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  26. values ('3401', '34', '存储', 'CC', null, null, to_timestamp('26-11-2015 18:58:04.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 18:58:04.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'cc');
  27. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  28. values ('35', '00', '存储场所产权', 'CCCSCQ', null, 35, to_timestamp('26-11-2015 19:07:33.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:07:33.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  29. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  30. values ('3501', '35', '自有', 'ZY', null, null, to_timestamp('26-11-2015 19:09:07.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:09:07.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'zy');
  31. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  32. values ('3502', '35', '租赁', 'ZL', null, null, to_timestamp('26-11-2015 19:09:07.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:09:07.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'zl');
  33. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  34. values ('36', '00', '储罐形式', 'CGXS', null, 36, to_timestamp('26-11-2015 19:16:24.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:16:24.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  35. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  36. values ('3601', '36', '储存性储罐', 'CC', null, null, to_timestamp('26-11-2015 19:18:05.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:18:05.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'cc');
  37. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  38. values ('3602', '36', '生产性储罐', 'SC', null, null, to_timestamp('26-11-2015 19:18:05.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:18:05.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'sc');
  39. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  40. values ('30', '00', '储罐材质', 'CGCZ', null, 30, to_timestamp('26-11-2015 15:06:18.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 15:06:18.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  41. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  42. values ('3001', '30', '碳钢', 'CG', null, null, to_timestamp('26-11-2015 15:08:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 15:08:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, '1');
  43. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  44. values ('3002', '30', '不锈钢', 'BXG', null, null, to_timestamp('26-11-2015 15:08:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 15:08:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, '2');
  45. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  46. values ('3003', '30', '玻璃钢', 'BLG', null, null, to_timestamp('26-11-2015 15:08:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 15:08:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, '3');
  47. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  48. values ('3701', '37', '地上', 'DS', null, null, to_timestamp('26-11-2015 19:36:39.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:36:39.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'ds');
  49. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  50. values ('3702', '37', '地下', 'DX', null, null, to_timestamp('26-11-2015 19:36:39.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:36:39.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'dx');
  51. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  52. values ('37', '00', '储罐安装形式', 'CGAZXX', null, 37, to_timestamp('26-11-2015 19:35:00.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:35:00.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  53. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  54. values ('3703', '37', '半地上', 'BDS', null, null, to_timestamp('26-11-2015 19:36:39.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:36:39.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'bds');
  55. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  56. values ('38', '00', '物质状态', 'WZZT', null, 38, to_timestamp('26-11-2015 19:37:07.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:37:07.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  57. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  58. values ('3801', '38', '液态', 'YT', null, null, to_timestamp('26-11-2015 19:38:21.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:38:21.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'yt');
  59. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  60. values ('3802', '38', '气态', 'QT', null, null, to_timestamp('26-11-2015 19:38:21.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:38:21.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'qt');
  61. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  62. values ('3803', '38', '液气态共存', 'YQT', null, null, to_timestamp('26-11-2015 19:38:21.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:38:21.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'yqt');
  63. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  64. values ('39', '00', '储罐外形', 'CGWX', null, 39, to_timestamp('26-11-2015 19:39:27.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:39:27.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  65. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  66. values ('3901', '39', '外浮顶', 'LS', null, null, to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'ls');
  67. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  68. values ('3902', '39', '内浮顶', 'QX', null, null, to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'qx');
  69. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  70. values ('3903', '39', '拱顶', 'WS', null, null, to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'ws');
  71. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  72. values ('3904', '39', '球形罐', 'QXG', null, null, to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 19:58:48.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'qxg');
  73. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  74. values ('40', '00', '进料方式', 'JLFS', null, 40, to_timestamp('26-11-2015 20:00:47.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 20:00:47.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  75. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  76. values ('4001', '40', '管道', 'GD', null, null, to_timestamp('26-11-2015 20:01:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 20:01:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'gd');
  77. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  78. values ('4002', '40', '槽车', 'CC', null, null, to_timestamp('26-11-2015 20:01:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 20:01:52.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'cc');
  79. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  80. values ('41', '00', '出料方式', 'CLFS', null, 41, to_timestamp('26-11-2015 20:02:56.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 20:02:56.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, null);
  81. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  82. values ('4101', '41', '管道', 'GD', null, null, to_timestamp('26-11-2015 20:04:23.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 20:04:23.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'gd');
  83. insert into GK_OPERATION_JSJY_CODE (id, pid, text, code, val, sortno, create_date_time, update_date_time, record_status, create_user, update_user, szd, group_code, yjptid)
  84. values ('4102', '41', '槽车', 'CC', null, null, to_timestamp('26-11-2015 20:04:23.', 'dd-mm-yyyy hh24:mi:ss.ff'), to_timestamp('26-11-2015 20:04:23.', 'dd-mm-yyyy hh24:mi:ss.ff'), 1, null, null, null, null, 'cc');