传奇开区一条龙有些数据存在关仓库BUG运行语句

[复制链接]
查看2312 | 回复0 | 2017-12-20 15:25:20 | 显示全部楼层 |阅读模式
有些数据存在关仓库BUG运行语句
有些数据存在关仓库BUG运行语句: CREATE procedure Close_warehouse
@Items varbinary(1200),
@uid varchar(10)
AS
set nocount on

declare @ec int
set @ec=0
declare @stat int
declare @num int
select @stat=OpenExt ,@num=ExtCKNum from warehouse where AccountID=@uid
set @ec=@@error | @ec
if @stat is not null --正常情况是不应该为空的
begin
if @stat=@num begin --主仓库
UPDATE warehouse SET Items=@Items where AccountID=@uid
set @ec=@@error | @ec
end else begin
UPDATE ExtWareHouse SET Items=@Items where AccountID=@uid and Number=@stat
set @ec=@@error | @ec
end

end
set nocount off




上一篇:传奇开区一条龙物品店的相关设置
下一篇:服务器设置禁Ping有何好处?
润芒论坛所有资源均免费下载,回复帖子即出现下载地址!站长QQ:83965268,开VIP会员传奇一条龙联系QQ691252787
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则