{ "Name": "新增项目发布记录", "Enabled": true, "Triggers": [ { "$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon", "Permission": { "PermissionData": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core", "permissionResource": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core" }, "permissionBindings": [ { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core", "roleNames": [ "FGC_LoginUser" ] } ] } }, "Parameters": [ { "Name": "项目ID", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "版本ID", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "版本号", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "发布人", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "发布内容", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "发布日期", "DataValidationInfo": { "IgnoreBlank": false } } ] } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目信息", "TableValue": { "TableName": "项目表", "TableValueType": 1, "BindingInfos": [ { "GUID": "d716ec59-a03a-4c4f-8135-dff3ff28bf43", "BindingInfo": { "TableName": "项目表", "ColumnName": "项目状态", "GUID": "aa51a941-d3e7-4baf-a91a-4cf84bd0cd8b" }, "ColumnName": "项目状态" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目表", "ColumnName": "ID", "GUID": "8111b9b4-3fa5-4446-b71f-916ec0401129" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, "NullFormulaValueQueryPolicy": 0 }, "ID": "5dab3fb9a681415b99f64200ab84bfa1" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息" } }, "value": "%Null%", "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "版本信息", "TableValue": { "TableName": "项目版本", "TableValueType": 1, "BindingInfos": [ { "GUID": "045e05de-9121-49de-8679-b3de9096e54f", "BindingInfo": { "TableName": "项目版本", "ColumnName": "版本名称", "GUID": "d71c18fd-1d51-4b55-8093-94127f2b4baf" }, "ColumnName": "版本名称" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目版本", "ColumnName": "ID", "GUID": "d7d8713d-b688-4bdf-90b5-3bac0d089a20" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本ID" } } }, "ID": "3416908ef31a4e73b1785cee422ef189" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息.项目状态" } }, "value": "%Null%", "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "版本号检测", "TableValue": { "TableName": "项目发布记录", "TableValueType": 3, "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目发布记录", "ColumnName": "版本ID", "GUID": "336b1d01-b1ca-4c03-8ae2-f506383eb947" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布版本号", "GUID": "a6565c88-123c-4ac0-ad7c-12c9826bd2e1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本号" } } ] }, "NullFormulaValueQueryPolicy": 0 }, "ID": "680811f5daaa4a1d8eacd23b503d4fed" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本号检测" } }, "value": "0" }, "CommandList": [ { "$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon", "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目发布记录", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "项目ID", "GUID": "7d966506-9eb7-419c-bf77-085ec11cb7b5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "版本ID", "GUID": "9ff3ac72-1720-4839-873e-7f9b03a7becb" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本ID" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布版本号", "GUID": "06581d8c-9962-42b5-af49-fa03b1e9cc64" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本号" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布人", "GUID": "6a36add2-a256-4231-9315-75bf07f0ae71" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布人" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布时间", "GUID": "222add61-f491-444c-9731-c9d0284fc961" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布日期" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布内容", "GUID": "ba627a4e-168c-4587-bd7d-9a0723d0d8c2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布内容" } } ] }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目版本", "ShowConfirm": false, "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目版本", "ColumnName": "ID", "GUID": "ccd28522-918a-4bba-b463-df8a9ea121c5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本ID" } }, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目版本", "ColumnName": "最新版本号", "GUID": "e6589e54-ec14-435c-a3b7-718952f2d2f2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本号" } } ] }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目动态", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目ID", "GUID": "5a3eacc4-5cee-408a-b06e-9911e9bcc724" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目动态", "GUID": "d14bc793-5a01-4605-b01a-76900e9465b8" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"版本[\"&版本信息.版本名称&\"]发布了\"&版本号&\"版本\"" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "执行人", "GUID": "9e56f7ea-82eb-4457-bf64-f7145ff7c7d7" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布人" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "类型", "GUID": "780475ea-a2ef-4ebe-a46e-bdbac7a6ded6" }, "Value": "3" } ] } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "新增成功" } ], "ID": "b1a6eb96-7fd5-4a7e-932a-2bb690010ff5" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "该版本号已被使用,请更换版本号后重试!" } ], "ID": "d142d95c-5c50-494f-9897-3cccebec18a6" } ] } ], "ID": "1c1d75be-6567-4902-98cf-6fb6997fcb24" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "版本不存在,请重新指定要发布的版本" } ], "ID": "5e7db63d-2be3-4fd5-93b9-2d8f1d9af786" } ] } ], "ID": "33c577a2-d8ac-42c5-b023-f64edc8a4d61" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "项目不存在" } ], "ID": "9e6a267c-2d3a-4691-ab57-fb1dfa7ca588" } ] } ] }