| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 | //同步语句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,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,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,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,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,case when c.WZZT='yt' then '3801' when c.WZZT='qt' then '3802' when c.WZZT='yqt' then '3803' else null  end,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,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,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,'',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)//所需数据字典生产经营活动类型 :存储         储罐材质: 碳钢 不锈钢 玻璃钢  存储场所产权:自有  租赁  储罐形式:储存性储罐 生产性储罐        储罐安装形式:地上 地下 半地上 物质状态: 液态 气态 液气态共存  储罐外形: 外浮顶 内浮顶 拱顶 球形罐 进料方式: 管道 槽车 出料方式: 管道 槽车 //插入数据字典语句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)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);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)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');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)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);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)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');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)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');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)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);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)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');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)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');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)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);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)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');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)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');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)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');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)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');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)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');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)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);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)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');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)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);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)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');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)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');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)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');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)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);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)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');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)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');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)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');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)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');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)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);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)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');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)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');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)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);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)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');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)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');
 |