以文本方式查看主題 - 昂捷論壇 (http://m.yzsenyi.com/bbs/index.asp) -- □-系統(tǒng)配置管理類 (http://m.yzsenyi.com/bbs/list.asp?boardid=34) ---- 一例傳輸(數(shù)據(jù)上傳)問題解決實例 (http://m.yzsenyi.com/bbs/dispbbs.asp?boardid=34&id=7353) |
-- 作者:dz_wangfj -- 發(fā)布時間:2010/4/28 10:11:47 -- 一例傳輸(數(shù)據(jù)上傳)問題解決實例 現(xiàn)象:需要把商戶租賃信息tb_contract_rent上傳到總部,定義了傳輸策略,沒有上傳。 查詢tbc_up_status沒有相關(guān)信息。 分析: 通過查詢tb_contract_rent表的觸發(fā)器trg_contract_rent_insert if ( dbo.uf_hier() in (\'分店\',\'配送中心\',\'分區(qū)總部\')) begin insert into tbc_to_highlevel(c_description,c_dest, c_column1,c_value1,c_column2,c_value2) select \'新增合同租金上傳\',\'\', \'c_con_no\',inserted.c_con_no, \'c_counter_no\',inserted.c_counter_no from inserted where len(c_mk_store_id) >= len(dbo.uf_store_id()) 插入tbc_to_highlevel 表的字段c_description內(nèi)容是“新增合同租金上傳” 而原來定義的策略 tbc_dts_policy 內(nèi)容是“商戶租賃信息上傳”。在上傳時找不到對應(yīng)的策略,所有造成沒有上傳。 解決:1、 update tbc_dts_policy set c_description=’ 新增合同租金上傳’ Where c_guid=’ 361dcdfc-c752-4ace-8af2-a1ac3b34a9f2’ 2、重啟:enjoytaskserver 3、把原來未上傳的數(shù)據(jù)手工上傳總部: 在總部數(shù)據(jù)庫執(zhí)行: insert into tb_contract_rent select * from srv_store_1101.enjoy_store.dbo.tb_contract_rent where not EXISTS (select * from tb_contract_rent b where b.c_guid=a.c_guid) 4、在系統(tǒng)中新增了一條商戶租賃商鋪的信息,信息可以上傳總部,問題解決。 |