Files
GateDge2023_ljy/08.昶东/EastChanger/SQLServer/0.海关接口请求参数.sql
PastSaid c31957eb64 a
2024-03-18 11:42:45 +08:00

68 lines
2.6 KiB
Transact-SQL

IF EXISTS(SELECT * FROM sysobjects WHERE name = 'V_CUSTOMS_API_REQUEST_PARAMETE')--单引号里面为视图名称
DROP VIEW V_CUSTOMS_API_REQUEST_PARAMETE--视图名称
GO
CREATE VIEW V_CUSTOMS_API_REQUEST_PARAMETE AS
SELECT
1 AS 'Id'
,'STK_Inventory' AS 'ModuleName'
,'即时库存明细' AS 'ModuleCnName'
,'supvWarehouse.save' AS 'apiName'
,'' AS 'apiVersion'
,'http://tsjgqy.zheport.com/api/' AS 'appUrl' --正式
,'4257290a253c480e8425efabecefc39d' AS 'appKey' --正式
,'E3002B57-66DE-4D81-A3BE-F088CBF79485' AS 'appKeySecret' --正式
--,'http://119.146.223.48:39082/api/' AS 'appUrl' --测试
--,'437268ee6e1a44b6ba135eea1614f94d' AS 'appKey'
--,'72CD0295-2312-4B08-9A4C-2A338A0EE9BF' AS 'appKeySecret'
UNION
SELECT
2 AS 'Id'
,'STK_MISCELLANEOUS' AS 'ModuleName'
,'物料入库单' AS 'ModuleCnName'
,'supvMaterialStorage.save' AS 'apiName'
,'' AS 'apiVersion'
--,'http://tsjgqy.zheport.com/api/' AS 'appUrl' --正式
--,'4257290a253c480e8425efabecefc39d' AS 'appKey' --正式
--,'E3002B57-66DE-4D81-A3BE-F088CBF79485' AS 'appKeySecret' --正式
,'http://119.146.223.48:39082/api/' AS 'appUrl' --测试
,'437268ee6e1a44b6ba135eea1614f94d' AS 'appKey'
,'72CD0295-2312-4B08-9A4C-2A338A0EE9BF' AS 'appKeySecret'
UNION
SELECT
3 AS 'Id'
,'STK_MisDelivery' AS 'ModuleName'
,'成品出库单' AS 'ModuleCnName'
,'supvProductDelivery.save' AS 'apiName'
,'' AS 'apiVersion'
--,'http://tsjgqy.zheport.com/api/' AS 'appUrl' --正式
--,'4257290a253c480e8425efabecefc39d' AS 'appKey' --正式
--,'E3002B57-66DE-4D81-A3BE-F088CBF79485' AS 'appKeySecret' --正式
,'http://119.146.223.48:39082/api/' AS 'appUrl' --测试
,'437268ee6e1a44b6ba135eea1614f94d' AS 'appKey'
,'72CD0295-2312-4B08-9A4C-2A338A0EE9BF' AS 'appKeySecret'
UNION
SELECT
4 AS 'Id'
,'STK_StockCountGain' AS 'ModuleName'
,'盘盈单' AS 'ModuleCnName'
,'supvInventoryProfitLoss.save' AS 'apiName'
,'' AS 'apiVersion'
--,'http://tsjgqy.zheport.com/api/' AS 'appUrl' --正式
--,'4257290a253c480e8425efabecefc39d' AS 'appKey' --正式
--,'E3002B57-66DE-4D81-A3BE-F088CBF79485' AS 'appKeySecret' --正式
,'http://119.146.223.48:39082/api/' AS 'appUrl' --测试
,'437268ee6e1a44b6ba135eea1614f94d' AS 'appKey'
,'72CD0295-2312-4B08-9A4C-2A338A0EE9BF' AS 'appKeySecret'
UNION
SELECT
5 AS 'Id'
,'STK_StockCountLoss' AS 'ModuleName'
,'盘亏单' AS 'ModuleCnName'
,'supvInventoryProfitLoss.save' AS 'apiName'
,'' AS 'apiVersion'
--,'http://tsjgqy.zheport.com/api/' AS 'appUrl' --正式
--,'4257290a253c480e8425efabecefc39d' AS 'appKey' --正式
--,'E3002B57-66DE-4D81-A3BE-F088CBF79485' AS 'appKeySecret' --正式
,'http://119.146.223.48:39082/api/' AS 'appUrl' --测试
,'437268ee6e1a44b6ba135eea1614f94d' AS 'appKey'
,'72CD0295-2312-4B08-9A4C-2A338A0EE9BF' AS 'appKeySecret'