{ "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": "bf4c3db0-a361-4ae8-adaf-8aa3410997da", "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": "e59faa9171bc44049aea1c4eaafd1ad4" }, { "$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": "5c2ad450-39e6-427e-a249-8586576e2cec", "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": "63a5811bbb8041c0bd4b1e631aa872d4" }, { "$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": "79c7e79d2d1a4763be61e6f11f2e3ba5" }, { "$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": "abf59017-f3eb-46de-8788-1650b32b1da9" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "版本ID", "GUID": "1ca2f56c-aef3-4585-9b35-25869cd5c040" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本ID" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布版本号", "GUID": "1bbfdab0-bef1-4efa-8b53-a910117223b5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本号" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "负责人", "GUID": "1a35cc74-4d77-4a34-89bf-3b5c465277c0" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布人" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布时间", "GUID": "7fd96835-b9ba-4314-bd7d-ea7916124409" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布日期" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布内容", "GUID": "bf7d9396-1423-4138-b01c-f023459f6080" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布内容" } } ] }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目动态", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目ID", "GUID": "0ffdd8fc-e152-41fd-820d-d7c761e64670" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目动态", "GUID": "d9b8cb73-6cd8-4182-bab3-dcd2bd4fee47" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"版本[\"&版本信息.版本名称&\"]发布了\"&版本号&\"版本\"" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "执行人", "GUID": "fe073ef6-2867-4245-8dc5-6928929bd1d0" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布人" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "类型", "GUID": "f6030bc1-0969-4a3c-9bd0-1ad13659fb12" }, "Value": "发布" } ] } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "新增成功" } ], "ID": "f6c1eb8b-9551-4464-818d-3cadf009d7b1" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "该版本号已被使用,请更换版本号后重试!" } ], "ID": "ff7974ca-18d2-40a0-b687-dee2737bf612" } ] } ], "ID": "9ffb7cb9-ac90-456d-885e-100a060dd20b" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "版本不存在,请重新指定要发布的版本" } ], "ID": "4fcd1aae-3155-4bb8-94ad-3243b1a6cee1" } ] } ], "ID": "d714b919-eae1-4990-b41d-f51a3e8aa318" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "项目不存在" } ], "ID": "8c8ff43c-0138-446f-8a61-139f3b501879" } ] } ] }