国产亚洲精品a在线看。,骚货想不想被艹,国产麻豆剧传媒兔子先生,好大好爽好想要被操视频


昂捷論壇≡FAQ≡□-系統(tǒng)配置管理類 → 前臺銷售傳不到后臺怎么處理?


  共有30918人關(guān)注過本帖樹形打印

主題:前臺銷售傳不到后臺怎么處理?

帥哥喲,離線,有人找我嗎?
czg1981
  1樓 個性首頁 | 信息 | 搜索 | 郵箱 | 主頁 | UC


加好友 發(fā)短信
等級:昂捷團隊↑ 帖子:262 積分:3772 威望:0 精華:3 注冊:2005/10/21 12:33:38
前臺銷售傳不到后臺怎么處理?  發(fā)帖心情 Post By:2010/7/19 18:44:53

系統(tǒng)中有前臺服務(wù)器和后臺服務(wù)器,前臺的銷售數(shù)據(jù)是直接傳到前臺服務(wù)器的,而后臺是通過作業(yè)定時從前臺獲取銷售記錄的。分析原因:

1 后臺定時執(zhí)行沒有執(zhí)行,由于數(shù)據(jù)庫的代理服務(wù)沒有啟動或者人為的將作業(yè)停了,導(dǎo)致后臺定時執(zhí)行沒有執(zhí)行;處理辦法,啟動作業(yè),開啟數(shù)據(jù)庫代理的服務(wù)

2 銷售拆分問題:銷售數(shù)據(jù)傳到后臺后,系統(tǒng)會進行拆分,拆分完成后,才會在相關(guān)報表中體現(xiàn),才會真正算銷售。銷售拆分出錯是絕大多少銷售沒有傳到后臺的原因。導(dǎo)致這樣的情況一般有下面幾個情況 1、有人修改tb_trans_status,導(dǎo)致記錄已拆分記錄錯誤 處理辦法:修改 tb_trans_status中銷售拆分的id,可以找最大tb_o_sg.c_identity;2、前臺硬件故障,銷售重復(fù)傳送,特征:tb_o_sale.c_guid重復(fù)處理辦法:刪除重復(fù)的c_guid;3、商品后臺不存在,這個一般由于后臺刪除商品后,沒有及時傳到前臺,前臺正好做了銷售,處理辦法:刪除改流水,用正確的商品編碼銷售;4、商品在一個門店存在2個部門,銷售拆分時不知道是哪個部門算哪個部門的銷售,處理辦法:刪除錯誤的部門。

輔助查詢語句:

/*tb_o_sale.c_guid重復(fù)*/

select * from tb_o_sale
where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
and exists (select * from tb_o_sg (nolock) where tb_o_sale.c_guid=tb_o_sg.c_guid)

/*一個商品在一個門店存在2個部門*/

select c_store_id,c_gcode,COUNT(*) as c_count
from(
 select tb_o_sale.c_gcode,tb_gdsstore.c_store_id,tb_gdsstore.c_adno
 from tb_o_sale(nolock),tb_gdsstore(nolock)
 where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
 and tb_o_sale.c_gcode=tb_gdsstore.c_gcode
 group by tb_o_sale.c_gcode,tb_gdsstore.c_store_id,tb_gdsstore.c_adno
)a
group by c_store_id,c_gcode
having COUNT(*)>1

/*商品編碼后臺不存在*/

select * from tb_o_sale
where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
and not exists (select * from tb_gds (nolock) where tb_o_sale.c_gcode=tb_gds.c_gcode)

and c_flag='G' 

 

[此貼子已經(jīng)被作者于2010-12-12 21:10:19編輯過]

使用IE9無法添加附件的解決方法 支持(0中立(0反對(0回到頂部
帥哥喲,離線,有人找我嗎?
大腦袋
  2樓 個性首頁 | 信息 | 搜索 | 郵箱 | 主頁 | UC


加好友 發(fā)短信
等級:少尉 帖子:142 積分:1797 威望:0 精華:0 注冊:2005/10/25 10:51:44
  發(fā)帖心情 Post By:2010/10/5 19:48:38

還有一種:

select c_guid from tb_o_sale
where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
group by c_guid

having count(*)>1


使用IE9無法添加附件的解決方法 支持(0中立(0反對(0回到頂部
帥哥喲,離線,有人找我嗎?
nizao2008
  3樓 個性首頁 | 信息 | 搜索 | 郵箱 | 主頁 | UC


加好友 發(fā)短信
等級:中士 帖子:23 積分:569 威望:0 精華:0 注冊:2010/1/27 9:20:26
  發(fā)帖心情 Post By:2010/10/13 8:54:15

還有一種情況,沒有可用的資源了,比方磁盤空間或者內(nèi)存設(shè)置過低 或者本身服務(wù)器內(nèi)存就比較小

導(dǎo)致服務(wù)被終止,傳輸無法運行,我這出現(xiàn)過類似的問題


使用IE9無法添加附件的解決方法 支持(0中立(0反對(0回到頂部
帥哥喲,離線,有人找我嗎?
czg1981
  4樓 個性首頁 | 信息 | 搜索 | 郵箱 | 主頁 | UC


加好友 發(fā)短信
等級:昂捷團隊↑ 帖子:262 積分:3772 威望:0 精華:3 注冊:2005/10/21 12:33:38
  發(fā)帖心情 Post By:2011/8/15 16:33:17

處理方法:

1 先將數(shù)據(jù)做好備份

2 刪除重復(fù)數(shù)據(jù)

3 觀察作業(yè)是否成功

以/*tb_o_sale.c_guid重復(fù)*/為例:

第一步:

select * into tb_o_sale_20110815

from tb_o_sale
where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
and exists (select * from tb_o_sg (nolock) where tb_o_sale.c_guid=tb_o_sg.c_guid)

第二步:

delete from tb_o_sale
where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
and exists (select * from tb_o_sg (nolock) where tb_o_sale.c_guid=tb_o_sg.c_guid)

第三步:

查看作業(yè)是否成功,實時銷售監(jiān)察是否正確


使用IE9無法添加附件的解決方法 支持(0中立(0反對(0回到頂部
帥哥喲,離線,有人找我嗎?
czg1981
  5樓 個性首頁 | 信息 | 搜索 | 郵箱 | 主頁 | UC


加好友 發(fā)短信
等級:昂捷團隊↑ 帖子:262 積分:3772 威望:0 精華:3 注冊:2005/10/21 12:33:38
  發(fā)帖心情 Post By:2014/6/25 11:58:59

如果不想讓錯誤數(shù)據(jù)影響當天銷售,可以建立作業(yè),將錯誤數(shù)據(jù)做好備份,讓剩余數(shù)據(jù)正常拆分,建議一天晚上執(zhí)行一次

 

if not exists(select * from sysobjects where name='tb_o_sale_err')
begin
 CREATE TABLE [dbo].[tb_o_sale_err](
  [c_guid] [varchar](36) NULL,
  [c_identity] [int] NOT NULL,
  [c_pos_identity] [int] NULL,
  [c_id] [int] NOT NULL,
  [c_computer_id] [int] NOT NULL,
  [c_datetime] [datetime] NOT NULL,
  [c_cashier] [varchar](10) NOT NULL,
  [c_flag] [char](1) NULL,
  [c_cardno] [varchar](20) NULL,
  [c_adno] [varchar](10) NULL,
  [c_gcode] [varchar](13) NOT NULL,
  [c_subcode] [varchar](10) NOT NULL,
  [c_pt_cost] [money] NULL,
  [c_price] [money] NULL,
  [c_price_pro] [money] NULL,
  [c_price_disc] [money] NULL,
  [c_qtty] [decimal](12, 3) NULL,
  [c_amount] [money] NULL,
  [c_score] [money] NULL,
  [c_gds_type] [varchar](20) NULL,
  [c_pro_status] [varchar](20) NULL,
  [c_present_name] [varchar](40) NULL,
  [c_type] [varchar](20) NULL,
  [c_seller] [varchar](10) NULL,
  [c_charger] [varchar](10) NULL,
  [c_in_code] [varchar](20) NULL,
  [c_note] [varchar](100) NULL,
  [c_store_id] [varchar](20) NULL
 ) ON [PRIMARY]

end
if exists (select * from tempdb.dbo.sysobjects where id=object_id('tempdb..#tb_o_sale'))
BEGIN
 drop table #tb_o_sale
END

select c_guid,MIN(c_identity) as c_identity  into #tb_o_sale
from tb_o_sale
where c_identity>(select isnull(c_id,0)
from tb_trans_status where c_proc='銷售分拆')
group by c_guid
having count(*)>1

insert into tb_o_sale_err(
 c_guid,c_identity,c_pos_identity,c_id,c_computer_id,c_datetime,c_cashier,c_flag,
 c_cardno,c_adno,c_gcode,c_subcode,c_pt_cost,c_price,c_price_pro,c_price_disc,c_qtty,
 c_amount,c_score,c_gds_type,c_pro_status,c_present_name,c_type,c_seller,c_charger,
 c_in_code,c_note,c_store_id
)
select c_guid,c_identity,c_pos_identity,c_id,c_computer_id,c_datetime,c_cashier,c_flag,
 c_cardno,c_adno,c_gcode,c_subcode,c_pt_cost,c_price,c_price_pro,c_price_disc,c_qtty,
 c_amount,c_score,c_gds_type,c_pro_status,c_present_name,c_type,c_seller,c_charger,
 c_in_code,c_note,c_store_id
from tb_o_sale(nolock)
where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
and (exists (select * from tb_o_sg (nolock) where tb_o_sale.c_guid=tb_o_sg.c_guid)
 or exists (select c_guid from #tb_o_sale b where tb_o_sale.c_guid=b.c_guid and tb_o_sale.c_identity<>b.c_identity))

delete from tb_o_sale
where c_identity>(select isnull(c_id,0) from tb_trans_status where c_proc='銷售分拆')
and (exists (select * from tb_o_sg (nolock) where tb_o_sale.c_guid=tb_o_sg.c_guid)
 or exists (select c_guid from #tb_o_sale b where tb_o_sale.c_guid=b.c_guid and tb_o_sale.c_identity<>b.c_identity))

go


使用IE9無法添加附件的解決方法 支持(0中立(0反對(0回到頂部
文成县| 紫金县| 秦皇岛市| 望谟县| 房山区| 南木林县| 高密市| 福贡县| 四平市| 阳春市| 苍溪县| 贵南县| 兰州市| 高碑店市| 文安县| 探索| 水富县| 昭平县| 德兴市| 木兰县| 巨野县| 介休市| 谢通门县| 南部县| 建湖县| 柳河县| 兰坪| 雅安市| 石楼县| 武隆县| 巨鹿县| 长武县| 福清市| 龙胜| 保山市| 迁西县| 林甸县| 五寨县| 南汇区| 汶川县| 通道|