在线播放亚洲第一字幕,大鸡巴操死我了视频网站,欧美日韩中文字,久久久999婷婷欧美一区

以文本方式查看主題

-  昂捷論壇  (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=4075)

--  作者:czg1981
--  發(fā)布時間:2008/7/17 18:55:04
--  店代碼不小心改變后要修改的數(shù)據(jù)

對應連鎖企業(yè)來說,我們系統(tǒng)在總部來統(tǒng)一修改參數(shù),然后由系統(tǒng)自動下發(fā)到每一個門店,這樣提高了我們的工作效率,但是有時候不小心把一些相對獨立的參數(shù)也一起下發(fā)了,比如店代碼.
店代碼修改后影響的數(shù)據(jù):用戶進入系統(tǒng)的權限,值單機構等;流水方面需要修改非自營商品的扣率,銷售成本,店代碼等
流水方面涉及的表有:tb_o_sg, tb_o_sm,tb_o_sg_today,tb_cursale
參考語句:

select * into #tb_o_sg
from tb_o_sg
where c_store_id=\'1\'
and datediff(day,c_datetime,getdate())=0

update #tb_o_sg
set c_deduct_rate=case when b.c_prom_deduct_rate<>0 then b.c_prom_deduct_rate else b.c_deduct_rate end,
 c_pt_cost=round(#tb_o_sg.c_price_disc*(1-0.01*case when b.c_prom_deduct_rate<>0 then b.c_prom_deduct_rate else b.c_deduct_rate end),2)
from tb_gdsprovider b
where #tb_o_sg.c_gds_type like \'自營%\'
and #tb_o_sg.c_gcode=b.c_gcode
and b.c_status=\'主供應商\'

update tb_o_sg
set c_deduct_rate=b.c_deduct_rate,c_pt_cost=b.c_pt_cost,c_store_id=dbo.uf_store_id()
from #tb_o_sg b
where tb_o_sg.c_guid=b.c_guid

update tb_o_sg_today
set c_deduct_rate=b.c_deduct_rate,c_pt_cost=b.c_pt_cost,c_store_id=dbo.uf_store_id()
from #tb_o_sg b
where tb_o_sg.c_guid=b.c_guid

update tb_o_sm
set c_store_id=dbo.uf_store_id()
where c_store_id=\'1\'
and datediff(day,c_datetime,getdate())=0

delete tb_cursale
where datediff(day,c_datetime,getdate())=0


--  作者:czg1981
--  發(fā)布時間:2008/7/17 18:58:41
--  
對應連鎖企業(yè)還有手工的調(diào)整上級的實時銷售監(jiān)測
如果做了其它單據(jù),就只能一一的修改了
阳城县| 青河县| 靖边县| 西平县| 彭州市| 靖安县| 图木舒克市| 威远县| 沁水县| 公主岭市| 巴彦县| 新野县| 两当县| 托克逊县| 萝北县| 宝山区| 铜鼓县| 淮安市| 吴桥县| 鄂伦春自治旗| 黎川县| 金湖县| 扬州市| 广灵县| 思南县| 永康市| 都安| 建始县| 运城市| 巴中市| 敖汉旗| 蓬溪县| 清苑县| 睢宁县| 和平县| 陆河县| 罗田县| 色达县| 墨脱县| 扎囊县| 廊坊市|