You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/word/新协航_设计文档/数据库建表文档/1.0/前置脚本.sql

245 lines
12 KiB
MySQL

2 years ago
select * from sys_module where description like '<><C3B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
select * from [action] where description like '<><C3B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
select newid();
select * from [action] where description='<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD><EFBFBD>'
begin
delete from sys_module where gid='D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C', 'modXXH', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD><EFBFBD>',
'#', 'Module.gif',0,0, '0',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,0)
---
delete from [action] where gid='D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C','modXXH','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD><EFBFBD>',
'96FA13A0-063F-4B74-8EFF-90D31B8436B2','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
begin
delete from sys_module where gid='96FA13A0-063F-4B74-8EFF-90D31B8436B2'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('96FA13A0-063F-4B74-8EFF-90D31B8436B2', 'modXXH_main', '<EFBFBD><EFBFBD>ͬ',
'Import/XXH', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='6245CE3D-AD5A-4C16-8598-B21C0BC82857'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('6245CE3D-AD5A-4C16-8598-B21C0BC82857','modXXH_main','<EFBFBD><EFBFBD>ͬ',
'96FA13A0-063F-4B74-8EFF-90D31B8436B2','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
begin
delete from sys_module where gid='5B87F052-AC3F-404A-9644-6C3DBBFB29C5'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('5B87F052-AC3F-404A-9644-6C3DBBFB29C5', 'modXXH_approval', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'Import/approval', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='D721775D-1827-4437-A80A-879C36510EFF'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('D721775D-1827-4437-A80A-879C36510EFF','modXXH_approval','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'5B87F052-AC3F-404A-9644-6C3DBBFB29C5','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
begin
delete from sys_module where gid='E51015BF-C475-474D-9A9F-3F97BDA235B1'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('E51015BF-C475-474D-9A9F-3F97BDA235B1', 'modXXH_create', '<EFBFBD>ӵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'Import/create', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='34B575B6-EA50-4E92-AC97-F62C996E519F'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('34B575B6-EA50-4E92-AC97-F62C996E519F','modXXH_create','<EFBFBD>ӵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'E51015BF-C475-474D-9A9F-3F97BDA235B1','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
begin
delete from sys_module where gid='74284B81-408B-4E5E-915E-6FE540FF3081'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('74284B81-408B-4E5E-915E-6FE540FF3081', 'modXXH_audit', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'Import/audit', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='655668A0-0D09-4C56-BAEE-9D97D993EF29'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('655668A0-0D09-4C56-BAEE-9D97D993EF29','modXXH_audit','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'74284B81-408B-4E5E-915E-6FE540FF3081','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>GID 81CF125F-6152-4E31-84B6-F19C086A8854
--select newid();
begin
delete from sys_module where gid='4D0EC8F6-1521-4E2F-9E96-2A7FE91B5FDE'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('4D0EC8F6-1521-4E2F-9E96-2A7FE91B5FDE', 'modXXH_cargoinfo', '<EFBFBD><EFBFBD>Ʒ<EFBFBD><EFBFBD>Ϣά<EFBFBD><EFBFBD>',
'Import/cargoinfo', 'Module.gif',0,2, '81CF125F-6152-4E31-84B6-F19C086A8854',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='917C3E60-5DC7-463D-9518-757FFF2EA974'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('917C3E60-5DC7-463D-9518-757FFF2EA974','modXXH_cargoinfo','<EFBFBD><EFBFBD>Ʒ<EFBFBD><EFBFBD>Ϣά<EFBFBD><EFBFBD>',
'4D0EC8F6-1521-4E2F-9E96-2A7FE91B5FDE','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
-- <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C
--select newid();
begin
delete from sys_module where gid='39DC8E8A-E1B9-4397-ACA9-6ADFEEDCAD7E'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('39DC8E8A-E1B9-4397-ACA9-6ADFEEDCAD7E', 'modXXH_Feedetail', 'Ӧ<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'Import/RptImportFeedetail', 'Module.gif',0,2, '13B176E2-8A52-461A-A594-E5526F8E0C8A',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='0F8B10A7-1B01-4755-988D-FAE362095589'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('0F8B10A7-1B01-4755-988D-FAE362095589','modXXH_Feedetail','Ӧ<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'39DC8E8A-E1B9-4397-ACA9-6ADFEEDCAD7E','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select newid();
begin
delete from sys_module where gid='EC0CBA1B-05E9-47BA-9F40-CAF9B3996A94'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('EC0CBA1B-05E9-47BA-9F40-CAF9B3996A94', 'modXXH_KcRPT', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'Import/RptImportKc', 'Module.gif',0,2, '13B176E2-8A52-461A-A594-E5526F8E0C8A',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='C169BE34-9AB9-427D-AF66-400F072C67B0'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('C169BE34-9AB9-427D-AF66-400F072C67B0','modXXH_KcRPT','<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'EC0CBA1B-05E9-47BA-9F40-CAF9B3996A94','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select newid();
begin
delete from sys_module where gid='CAAC94AE-4C59-4DA2-9280-86DF5822903E'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('CAAC94AE-4C59-4DA2-9280-86DF5822903E', 'modXXH_CWAudit', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'Import/CWAudit', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='37351E6A-73E0-451A-943D-D1FA7EFC8065'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('37351E6A-73E0-451A-943D-D1FA7EFC8065','modXXH_CWAudit','<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'CAAC94AE-4C59-4DA2-9280-86DF5822903E','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select newid();
begin
delete from sys_module where gid='D78CB31C-80C1-4D7E-A1F1-CBC0F21D1DBE'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('D78CB31C-80C1-4D7E-A1F1-CBC0F21D1DBE', 'modXXH_CWSettlement', '<EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><EFBFBD><EFBFBD>',
'Import/CWSettlement', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='B46ACAE4-7CB7-44C8-9DA5-8C6FB6882E71'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('B46ACAE4-7CB7-44C8-9DA5-8C6FB6882E71','modXXH_CWSettlement','<EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><EFBFBD><EFBFBD>',
'D78CB31C-80C1-4D7E-A1F1-CBC0F21D1DBE','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select newid();
--select * from sys_module where description like '%<25><><EFBFBD><EFBFBD>%'
begin
delete from sys_module where gid='6C5E84DB-9E5F-49BB-B648-181A0E32D8F0'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('6C5E84DB-9E5F-49BB-B648-181A0E32D8F0', 'modXXH_FinanceOut', '<EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD>',
'Import/FinanceOut', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='7773184A-7E00-4F2F-9D18-C5A09DC841B7'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('7773184A-7E00-4F2F-9D18-C5A09DC841B7','modXXH_FinanceOut','<EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD>',
'6C5E84DB-9E5F-49BB-B648-181A0E32D8F0','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select * from [sys_module] where name like '%rpt%'
--select newid();
begin
delete from sys_module where gid='13B176E2-8A52-461A-A594-E5526F8E0C8A'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('13B176E2-8A52-461A-A594-E5526F8E0C8A', 'modXXH_Rpt', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD>ױ<EFBFBD><EFBFBD><EFBFBD>',
'#', 'Module.gif',0,1, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,1)
---
delete from [action] where gid='FA5984C2-E3BF-46FB-80AE-77BCEA18A935'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('FA5984C2-E3BF-46FB-80AE-77BCEA18A935','modXXH_Rpt','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD>ױ<EFBFBD><EFBFBD><EFBFBD>',
'13B176E2-8A52-461A-A594-E5526F8E0C8A','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select newid();
--select * from sys_module where description like '%<25><><EFBFBD><EFBFBD>%'
begin
delete from sys_module where gid='0B70B056-760E-4E06-8385-39266DFB4A47'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('0B70B056-760E-4E06-8385-39266DFB4A47', 'modXXH_RptFeeTotal', 'Ӧ<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'Import/RptFeeTotal', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='B69A0673-E1BF-4859-BA90-6886724E42F7'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('B69A0673-E1BF-4859-BA90-6886724E42F7','modXXH_RptFeeTotal','Ӧ<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'0B70B056-760E-4E06-8385-39266DFB4A47','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select newid();
begin
delete from sys_module where gid='95B37951-AF9D-4335-8CBD-3CCA0C30DD63'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('95B37951-AF9D-4335-8CBD-3CCA0C30DD63', 'modXXH_RptFeeTotal_2', 'Ӧ<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'Import/RptFeeTotal_2', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='97C0905A-2063-4A81-B98A-F945CE5D0917'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('97C0905A-2063-4A81-B98A-F945CE5D0917','modXXH_RptFeeTotal_2','Ӧ<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>',
'95B37951-AF9D-4335-8CBD-3CCA0C30DD63','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go
--select newid();
begin
delete from sys_module where gid='02903B8B-23EC-412B-B348-3604E0852393'
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
VALUES('02903B8B-23EC-412B-B348-3604E0852393', 'modXXH_RptProfit', '<EFBFBD><EFBFBD><EFBFBD>󱨱<EFBFBD>',
'Import/RptProfit', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
---
delete from [action] where gid='DCAB37B1-1D4A-4E6B-8057-8748F5370195'
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
VALUES('DCAB37B1-1D4A-4E6B-8057-8748F5370195','modXXH_RptProfit','<EFBFBD><EFBFBD><EFBFBD>󱨱<EFBFBD>',
'02903B8B-23EC-412B-B348-3604E0852393','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
end;
go