以文本方式查看主題 - 昂捷論壇 (http://www.26035.net/bbs/index.asp) -- □-系統(tǒng)配置管理類(lèi) (http://www.26035.net/bbs/list.asp?boardid=34) ---- 一例傳輸(數(shù)據(jù)上傳)問(wèn)題解決實(shí)例 (http://www.26035.net/bbs/dispbbs.asp?boardid=34&id=7353) |
-- 作者:dz_wangfj -- 發(fā)布時(shí)間:2010/4/28 10:11:47 -- 一例傳輸(數(shù)據(jù)上傳)問(wèn)題解決實(shí)例 現(xiàn)象:需要把商戶(hù)租賃信息tb_contract_rent上傳到總部,定義了傳輸策略,沒(méi)有上傳。 查詢(xún)tbc_up_status沒(méi)有相關(guān)信息。 分析: 通過(guò)查詢(xú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)容是“新增合同租金上傳” 而原來(lái)定義的策略 tbc_dts_policy 內(nèi)容是“商戶(hù)租賃信息上傳”。在上傳時(shí)找不到對(duì)應(yīng)的策略,所有造成沒(méi)有上傳。 解決:1、 update tbc_dts_policy set c_description=’ 新增合同租金上傳’ Where c_guid=’ 361dcdfc-c752-4ace-8af2-a1ac3b34a9f2’ 2、重啟:enjoytaskserver 3、把原來(lái)未上傳的數(shù)據(jù)手工上傳總部: 在總部數(shù)據(jù)庫(kù)執(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)中新增了一條商戶(hù)租賃商鋪的信息,信息可以上傳總部,問(wèn)題解決。 |