# t_sql

执行:
alter table op_seae_edi
alter column [SHIPPERNAME] [varchar](100) NULL

alter table op_seae_edi
alter column [SHIPPERADDR1] [varchar](100) NULL

	alter table op_seae_edi
alter column [SHIPPERADDR2] [varchar](100) NULL
	alter table op_seae_edi
alter column [SHIPPERADDR3] [varchar](100) NULL
	alter table op_seae_edi
alter column [CONSIGNEENAME] [varchar](100) NULL
	alter table op_seae_edi
alter column [CONSIGNEEADDR1] [varchar](100) NULL
	alter table op_seae_edi
alter column [CONSIGNEEADDR2] [varchar](100) NULL
	alter table op_seae_edi
alter column [CONSIGNEEADDR3] [varchar](100) NULL
    alter table op_seae_edi
alter column [NOTIFYPARTYNAME] [varchar](100) NULL
	alter table op_seae_edi
alter column [NOTIFYPARTYADDR1] [varchar](100) NULL
	alter table op_seae_edi
alter column [NOTIFYPARTYADDR2] [varchar](100) NULL
	alter table op_seae_edi
alter column[NOTIFYPARTYADDR3] [varchar](100) NULL


执行:
---
INSERT INTO [t_sys_soft]([版本号],[系统],[版本1],[版本2],[版本3],[软件名称]) VALUES('7.19.1231',NULL,'7','19','1231','d7')
---
GO 


/****** Object:  Table [dbo].[Cust_Price_Detail]    Script Date: 2019/12/31 11:07:57 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Cust_Price_Detail](
	[GID] [varchar](50) NOT NULL,
	[LINKGID] [varchar](50) NOT NULL,
	[FORWARDER] [varchar](50) NULL,
	[PRICE] [numeric](19, 2) NULL,
	[PRICEF] [numeric](19, 2) NULL,
	[REMARK] [varchar](200) NULL,
 CONSTRAINT [PK_Cust_Price_Detail] PRIMARY KEY CLUSTERED 
(
	[GID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Cust_Price_Detail] ADD  CONSTRAINT [DF_Cust_Price_Detail_PRICE]  DEFAULT ((0)) FOR [PRICE]
GO

ALTER TABLE [dbo].[Cust_Price_Detail] ADD  CONSTRAINT [DF_Cust_Price_Detail_PRICEF]  DEFAULT ((0)) FOR [PRICEF]
GO


执行:
---
INSERT INTO [t_sys_soft]([版本号],[系统],[版本1],[版本2],[版本3],[软件名称]) VALUES('7.20.0220',NULL,'7','20','0220','d7')
---
GO 

alter table [info_client] add LOADPORT varchar(50) null default''


执行:
---
INSERT INTO [t_sys_soft]([版本号],[系统],[版本1],[版本2],[版本3],[软件名称]) VALUES('7.20.0401',NULL,'7','20','0401','d7')
---
GO 

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[WLXX_MBLNO](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[MBLNO] [varchar](50) NOT NULL,
	[MFNO] [varchar](50) NOT NULL,
 CONSTRAINT [PK_WLXX_MBLNO] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO


CREATE function [dbo].[GetBLNO](@MFNO varchar(50))   
    returns nvarchar(50)   
    as   
       begin      
          declare  @S nvarchar(50)  

          select @S= case when isnull(HBLNO,'')='' then MBLNO else HBLNO end  from op_seae_edi where MFNO= @MFNO

          return @S   
      end   
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO


执行:
---
INSERT INTO [t_sys_soft]([版本号],[系统],[版本1],[版本2],[版本3],[软件名称]) VALUES('7.20.0424',NULL,'7','20','0424','d7')
---
GO 


CREATE TABLE [dbo].[Sys_Task_Execution](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[DESCRIPTION] [varchar](200) NULL,
	[PROP1] [varchar](200) NULL,
	[PROP2] [varchar](200) NULL,
	[PROP3] [varchar](200) NULL,
	[PROP4] [varchar](200) NULL,
	[PROP5] [varchar](200) NULL,
	[NAME] [varchar](200) NULL,
	[STATEKEY] [int] NULL
) ON [PRIMARY]

GO

CREATE TABLE [dbo].[Sys_Task_Progress_Index](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[EXECUTIONID] [varchar](50) NOT NULL,
	[DESCRIPTION] [varchar](50) NULL,
	[CURRENTSTATEID] [varchar](50) NULL,
	[FINISHSTATEID] [varchar](50) NULL,
	[PROP1] [varchar](200) NULL,
	[PROP2] [varchar](200) NULL,
	[PROP3] [varchar](200) NULL,
	[PROP4] [varchar](200) NULL,
	[PROP5] [varchar](200) NULL,
 CONSTRAINT [PK_Sys_Task_Progress_Index] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

CREATE TABLE [dbo].[Sys_Task_State](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[NAME] [varchar](50) NULL,
	[DESCRIPTION] [varchar](200) NULL,
	[PROP1] [varchar](200) NULL,
	[PROP2] [varchar](200) NULL,
	[PROP3] [varchar](200) NULL,
	[PROP4] [varchar](200) NULL,
	[PROP5] [varchar](200) NULL,
	[STATEKEY] [int] NULL,
 CONSTRAINT [PK_Sys_Task_State] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO



delete from sys_module where gid ='3287FEF84-AE3C-4785-9B1C-FA9DD443794'
delete from sys_module where gid ='3E98DC74-AC7B-4470-ACF0-DF65D8457CEC'
delete from sys_module where gid ='72A7CD46-4D87-4064-8C3E-177D92A969F6'
delete from sys_module where gid ='BDC6AC99-1D64-4F9A-AD64-A33FB9C65EAF'
insert sys_module values('3287FEF84-AE3C-4785-9B1C-FA9DD443794','modSysTask_Index','任务状态管理','SysMng/SysTask','Module.gif'
,0,2,'3E98DC74-AC7B-4470-ACF0-DF65D8457CEC','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),NULL,NULL,0,0,NULL,NULL)
insert sys_module values('3E98DC74-AC7B-4470-ACF0-DF65D8457CEC','modSysTask','任务状态流程配置管理','#','Module.gif'
,0,99,'2fb6734-7bf6-4a90-8258-510e8b3e2a13','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),NULL,NULL,0,0,NULL,NULL)
insert sys_module values('72A7CD46-4D87-4064-8C3E-177D92A969F6','modSys_Execution','任务执行类型','SysMng/SysTask/Execution','Module.gif'
,0,3,'3E98DC74-AC7B-4470-ACF0-DF65D8457CEC','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),NULL,NULL,0,0,NULL,NULL)
insert sys_module values('BDC6AC99-1D64-4F9A-AD64-A33FB9C65EAF','modSysTask_Progress','任务流程配置','SysMng/SysTask/Sys_Task_Progress','Module.gif'
,0,1,'3E98DC74-AC7B-4470-ACF0-DF65D8457CEC','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),NULL,NULL,0,0,NULL,NULL)

delete from [action] where gid ='3287FEF84-AE3C-4785-9B1C-FA9DD443794'
delete from [action] where gid ='3E98DC74-AC7B-4470-ACF0-DF65D8457CEC'
delete from [action] where gid ='72A7CD46-4D87-4064-8C3E-177D92A969F6'
delete from [action] where gid ='BDC6AC99-1D64-4F9A-AD64-A33FB9C65EAF'
insert [action] values('3287FEF84-AE3C-4785-9B1C-FA9DD443794','CarrierMng/Ds_Duty_Team_State','任务状态管理'
,'3287FEF84-AE3C-4785-9B1C-FA9DD443794','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),null,null,0,0)
insert [action] values('3E98DC74-AC7B-4470-ACF0-DF65D8457CEC','#','任务状态流程配置管理'
,'3E98DC74-AC7B-4470-ACF0-DF65D8457CEC','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),null,null,0,0)
insert [action] values('72A7CD46-4D87-4064-8C3E-177D92A969F6','SysMng/SysTask/Execution','任务执行类型'
,'72A7CD46-4D87-4064-8C3E-177D92A969F6','1BEC90E1-9780-472F-90C2-0C6390C044A4','2019-09-17 10:46:34.810',null,null,0,0)
insert [action] values('BDC6AC99-1D64-4F9A-AD64-A33FB9C65EAF','SysMng/SysTask/Sys_Task_Progress','任务流程配置'
,'BDC6AC99-1D64-4F9A-AD64-A33FB9C65EAF','1BEC90E1-9780-472F-90C2-0C6390C044A4','2019-09-17 10:46:34.750',null,null,0,0)


执行:
---
INSERT INTO [t_sys_soft]([版本号],[系统],[版本1],[版本2],[版本3],[软件名称]) VALUES('7.20.0428',NULL,'7','20','0428','d7')
---
GO 


create function [dbo].[GetTaskStateNameBySTATEKEY](@STATEKEY varchar(50))   
    returns varchar(50)
    as   
       begin      
          declare  @S varchar(50)
          select @s=''   

          select @S=@S+isnull(NAME,'') from sys_task_state 
          where STATEKEY=@STATEKEY
      
          return @S   
      end   

GO
/*
drop function [GetUSER]
*/
go

create function [dbo].[GetUSER](@USERID varchar(50))   
    returns varchar(50)
    as   
       begin      
          declare  @S varchar(50)
          select @s=''   

          select @S=@S+isnull(SHOWNAME,'') from vw_user 
          where USERID=@USERID 
      
          return @S   
      end   
GO

create function [dbo].[GetTaskStatePROP5BySTATEKEY](@STATEKEY varchar(50))   
    returns varchar(50)
    as   
       begin      
          declare  @S varchar(50)
          select @s=''   

          select @S=@S+isnull(PROP5,'') from sys_task_state 
          where STATEKEY=@STATEKEY
      
          return @S   
      end   
GO



SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[VGM_HEAD](
	[GID] [varchar](50) NOT NULL,
	[MFNO] [varchar](50) NULL,
	[FORWARDSTATUS] int NULL default 0,
	[FORWARDOP] [varchar](50) NULL,
	[FORWARDTIME] [datetime] NULL,
	[RECEIPTSTATUS] int NULL default 0,
	[RECEIPTTIME] [datetime] NULL,
	[SENDTIME] [datetime] NULL,
	[SENDER] [varchar](50) NULL,
	[SENDCUSTOMER] [varchar](50) NULL,
	[OPTYPE] [varchar](50) NULL,
	[OPREMARK] [varchar](500) NULL,
	[TIPSTEXT] [varchar](1000) NULL,
	[MBLNO] [varchar](50) NULL,
	[CARRIER] [varchar](50) NULL,
	[VESSEL] [varchar](60) NULL,
	[VOYNO] [varchar](50) NULL,
	[ETD] [datetime] NULL,
	[CORPID] [varchar](50) NULL,
	[DEPTGID] [varchar](50) NULL,
	[TIMEMARK] [timestamp] NULL,
 CONSTRAINT [PK_VGM_HEAD] PRIMARY KEY CLUSTERED 
(
	[GID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO


SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[VGM_CTN](
	[GID] [varchar](50) NOT NULL,
	[VGMGID] [varchar](50) NULL,
	[MFNO] [varchar](50) NULL,
	[SEQUENCE] int NULL default 0,
	[CTNCODE] [varchar](2) NULL,
	[CTN] [varchar](2) NULL,
	[CNTRNO] [datetime] NULL,
	[SEALNO] [datetime] NULL,
	[TAREWEIGHT]  numeric(18,3) NULL default 0,
	[KGS]  numeric(18,3) NULL default 0,
	[CHENGZHONGFANGSHI] [varchar](50) NULL,
	[CHENGZHONGZHONGLIANG] numeric(18,3) NULL default 0,
	[CHENGZHONGSHIJIA] [datetime] NULL,
 CONSTRAINT [PK_VGM_CTN] PRIMARY KEY CLUSTERED 
(
	[GID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

declare @GID varchar(50) set @GID = '1DA0FAB6-4FD1-44E3-9F50-4E552977F980'
delete from sys_module where GID =@GID
insert sys_module(GID,NAME,DESCRIPTION,MODULEURL,MODULEICON,STATE,SORT
,PARENTID,CREATEUSER,CREATETIME,MODIFIEDUSER,MODIFIEDTIME,SHOWROOTSTATE,TYPE,ename) 
values(@GID,'modVGM_HEAD','VGM工作台账','/MvcShipping/VGM/Index','Module.gif',0,4
,'E9AC150F-F6E2-4DB3-AC26-879DC92A0DBC','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),NULL,NULL,0,0,NULL)
delete from [action] where GID =@GID
insert [action](GID,NAME,DESCRIPTION,MODULEID,CREATEUSER,CREATETIME,MODIFIEDUSER,MODIFIEDTIME,STATE,SORT) 
values(@GID,'modVGM_HEAD','VGM工作台账',@GID
,'1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),NULL,NULL,0,4)
go

delete from [user_authority_info] where gid='1DA0FAB6-4FD1-44E3-9F50-4E552977F980'
GO
	INSERT INTO [user_authority_info]([GID],[NAME],[DESCRIPTION],[MODULEURL],[ISALL],[ISCOMPANY],[ISDEPT],[ISPERSON]
	,[CREATEUSER],[CREATETIME],[MODIFIEDUSER],[MODIFIEDTIME],[ISDELETE]) 
	VALUES('1DA0FAB6-4FD1-44E3-9F50-4E552977F980','modVGM_HEAD','VGM工作台账','#'
	,'False','False','False','False','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),'1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),'False')
GO




insert Sys_Task_State(NAME,DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,STATEKEY) values(		''	,	'转发状态0'	,	'canchange,candelete,clearsend'	,	''	,	''	,	''	,	''	,	1000	)
insert Sys_Task_State(NAME,DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,STATEKEY) values(		'已转发'	,	'转发状态1'	,	'savesendtime'	,	''	,	''	,	''	,	'feestatus_settle'	,	1001	)
insert Sys_Task_State(NAME,DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,STATEKEY) values(		''	,	'回执状态0'	,	'candelete,clearreceipt'	,	''	,	''	,	''	,	''	,	1100	)
insert Sys_Task_State(NAME,DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,STATEKEY) values(		'船公司已接收'	,	'回执状态1'	,	'savereceipttime'	,	''	,	''	,	''	,	'feestatus_pass'	,	1101	)
insert Sys_Task_State(NAME,DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,STATEKEY) values(		'船公司已拒绝'	,	'回执状态2'	,	'savereceipttime'	,	''	,	''	,	''	,	'feestatus_nopass'	,	1102	)

insert Sys_Task_Execution(DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,NAME,STATEKEY) values(		'转发'	,	'设为已转发'	,	''	,	''	,	''	,	''	,	''	,	1001	)
insert Sys_Task_Execution(DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,NAME,STATEKEY) values(		'取消转发'	,	'清空转发状态'	,	''	,	''	,	''	,	''	,	''	,	1000	)
insert Sys_Task_Execution(DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,NAME,STATEKEY) values(		'接受回执'	,	'更新回执:船公司接收'	,	''	,	''	,	''	,	''	,	''	,	1101	)
insert Sys_Task_Execution(DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,NAME,STATEKEY) values(		'拒绝回执'	,	'更新回执:船公司拒绝'	,	''	,	''	,	''	,	''	,	''	,	1102	)
insert Sys_Task_Execution(DESCRIPTION,PROP1,PROP2,PROP3,PROP4,PROP5,NAME,STATEKEY) values(		'回执取消'	,	'清除回执'	,	''	,	''	,	''	,	''	,	''	,	1100	)

insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1001'	,	''	,	'1000'	,	'1001'	,	''	,	''	,	''	,	''	,	''	)
insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1000'	,	''	,	'1001'	,	'1000'	,	''	,	''	,	''	,	''	,	''	)
insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1101'	,	''	,	'1100'	,	'1101'	,	''	,	''	,	''	,	''	,	''	)
insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1101'	,	''	,	'1102'	,	'1101'	,	''	,	''	,	''	,	''	,	''	)
insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1102'	,	''	,	'1100'	,	'1102'	,	''	,	''	,	''	,	''	,	''	)
insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1102'	,	''	,	'1101'	,	'1102'	,	''	,	''	,	''	,	''	,	''	)
insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1100'	,	''	,	'1101'	,	'1100'	,	''	,	''	,	''	,	''	,	''	)
insert Sys_Task_Progress_Index(EXECUTIONID,DESCRIPTION,CURRENTSTATEID,FINISHSTATEID,PROP1,PROP2,PROP3,PROP4,PROP5) values(		'1100'	,	''	,	'1102'	,	'1100'	,	''	,	''	,	''	,	''	,	''	)


执行:
---
INSERT INTO [t_sys_soft]([版本号],[系统],[版本1],[版本2],[版本3],[软件名称]) VALUES('7.20.0430',NULL,'7','20','0430','d7')
---
GO 

delete from [user_authority_info] where gid='19A9F57F-6B05-48CC-B743-B3A403EC5BF2'
  INSERT INTO [user_authority_info]([GID],[NAME],[DESCRIPTION],[MODULEURL],[ISALL],[ISCOMPANY],[ISDEPT],[ISPERSON],[CREATEUSER],[CREATETIME],[MODIFIEDUSER],[MODIFIEDTIME],[ISDELETE])
  VALUES('19A9F57F-6B05-48CC-B743-B3A403EC5BF2','priceTrendAnalysis','运价走势分析','priceTrendAnalysis','False','False','False','False','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),'1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),'False')


    delete from sys_module where GID='95D4EF6D-4028-4CB7-A0BA-67D967CB2A99'    
    INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION],[MODULEURL],[MODULEICON],[STATE],[SORT],  [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE]) 
  VALUES('95D4EF6D-4028-4CB7-A0BA-67D967CB2A99',  'priceTrendAnalysis',  '运价走势分析','MaerskSubscribe/Freight/FareTrend',  'Module.gif',0,30,  'F2F61CC7-0175-4530-AD82-6223E312D4A8',
  '1BEC90E1-9780-472F-90C2-0C6390C044A4',  getdate(),0,0)

  DELETE FROM action WHERE GID='95D4EF6D-4028-4CB7-A0BA-67D967CB2A99'
  INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT]) 
  VALUES('95D4EF6D-4028-4CB7-A0BA-67D967CB2A99','priceTrendAnalysis','运价走势分析',
  '95D4EF6D-4028-4CB7-A0BA-67D967CB2A99','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
  
  --衣国豪权限认证列表添加
INSERT INTO [user_action]([GID],[ACTIONID],[USERID],[CREATEUSER],[CREATETIME],[MODIFIEDUSER],[MODIFIEDTIME])
VALUES('6C6FABD2-2856-4580-AB26-282A6FC48277','95D4EF6D-4028-4CB7-A0BA-67D967CB2A99','d85fd590-d9f6-4410-93a1-f6fac77b606e'
,'1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),NULL,getdate())

 --添加表索引
CREATE NONCLUSTERED INDEX [id_msk_200622] ON [dbo].[msk_subscribe_rec_data_sub] 
(
	[FromCity] ASC,
	[ToCity] ASC,
	[BoxType] ASC,
	[StartTime] ASC
)
INCLUDE ( [VesselName],
[VoyageNumber]) WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]

GO


执行:
update sys_module set MODULEURL='/MvcShipping/MsFormRequisition/StandingBook' where GID='85959456-DC4E-4411-A4CD-F7B600BFCA99'
alter table op_seae_px add PXCOMNAME varchar(50)  
alter table COMNAME_INFO add ISPXCOMPANY int 
alter table COMNAME_INFO add PXCOMACCOUNT varchar(50)  
alter table COMNAME_INFO add PXCOMPASSWORD varchar(50) 
go


