{ "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 } }, { "Name": "反馈ID列表", "DataValidationInfo": {} } ] } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目信息", "TableValue": { "TableName": "项目表", "TableValueType": 1, "BindingInfos": [ { "GUID": "689d57aa-7d54-4fdc-b703-bdb4f9801e17", "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": "ab759c57a68b4381be18f90430a838b6" }, { "$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": "ae4694dd-f3b8-4d5a-b611-0d4d3d2c4d3d", "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": "9538d6e8806c48c3b57ed58b01ad1347" }, { "$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": "20a38baedfbf4361b74fcd6ee65f94b3" }, { "$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": "ae6a806c-06a0-4ae6-9dc8-dbf072f05fcd" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "版本ID", "GUID": "5b8e8557-6600-4a89-85b7-449accab97f3" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本ID" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布版本号", "GUID": "46745493-fe87-47c1-aba6-f7a78fc680c9" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=版本号" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布人", "GUID": "aaeb5ea9-e946-4056-a459-d700b3e971d1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布人" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布时间", "GUID": "bf63cc70-c20a-4bec-9132-a0f44f7cda69" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布日期" } }, { "BindingInfo": { "TableName": "项目发布记录", "ColumnName": "发布内容", "GUID": "7136dfb7-4a71-465a-9dc3-95d3965089df" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布内容" } } ], "ParamNameToSaveNewRowValue": "新记录" }, { "$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": "08d37580-c55e-47b3-858d-656ece1f4069" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目动态", "GUID": "ec3f9c51-3e1c-4806-8feb-3113ecba0fec" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"版本[\"&版本信息.版本名称&\"]发布了\"&版本号&\"版本\"" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "执行人", "GUID": "19875403-43ae-4535-a93a-1068836f8742" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发布人" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "类型", "GUID": "08593f1f-60fc-49e9-abc3-158dabe59d2e" }, "Value": "3" } ] } ] }, { "$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": "=反馈ID列表" } }, "value": "%Null%", "compareType": 1 }, "CommandList": [ { "$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit", "Operation": 17, "OperationParamaterAName": ",", "OperationParamaterBName": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈ID列表" }, "OutParamaterName": "反馈ID数组" }, { "$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon", "LoopInfo": { "$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon", "LoopCount": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈ID数组" }, "LoopItemParamName": "当前反馈ID" }, "CommandList": [ { "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", "ServerCommandName": "项目反馈发布完毕", "Parameters": [ { "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", "ParamName": "反馈ID", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前反馈ID" } }, { "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", "ParamName": "发布记录ID", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新记录.ID" } } ], "ResultErrorCodeTo": { "SerializeProperty": "code" }, "ResultMessageTo": { "SerializeProperty": "msg" }, "RefreshAfterFinish": true, "CheckDataValidation": true } ] } ], "ID": "32eb9b66-48ec-44f2-9e62-8004bdc0f478" } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "新增成功" } ], "ID": "6451145c-3872-4bb6-98fa-efe5814e7ace" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "该版本号已被使用,请更换版本号后重试!" } ], "ID": "dbb0f89e-df4e-4d82-8e92-6a118df7e87a" } ] } ], "ID": "0a28f7da-527c-44a3-8f60-eda7121e8f1b" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "版本不存在,请重新指定要发布的版本" } ], "ID": "d2c2ebad-fb50-4e7a-83fb-cd806eaf36fe" } ] } ], "ID": "9eccac9a-1f01-4df3-ac91-fe0442d94d06" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "项目不存在" } ], "ID": "bb295bfb-7c50-43d1-9265-06134be8f4a5" } ] } ] }