{ "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 }, "TestData": "1" }, { "Name": "邀请三经理", "DataValidationInfo": {}, "TestData": "0" } ], "InvokeTriggerTestData": { "UserName": "shamus" } } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目信息", "TableValue": { "TableName": "项目表", "TableValueType": 1, "BindingInfos": [ { "GUID": "d8f64f0a-97aa-4557-b8a1-587f484116cc", "BindingInfo": { "TableName": "项目表", "ColumnName": "项目名称", "GUID": "6cdf5178-317e-4abd-8460-d2a8e91d4069" }, "ColumnName": "项目名称" }, { "GUID": "17e62aba-8ef6-463c-bc04-8085ddaf47eb", "BindingInfo": { "TableName": "项目表", "ColumnName": "项目经理", "GUID": "3da4b8e9-f98b-4d59-b28c-a987fc95d3f9" }, "ColumnName": "项目经理" }, { "GUID": "6882a52e-b423-48ec-bcd7-1500416270bf", "BindingInfo": { "TableName": "项目表", "ColumnName": "商务经理", "GUID": "a66149c3-2d31-43ef-a7e2-9c75075a49b7" }, "ColumnName": "商务经理" }, { "GUID": "30fb748b-5fff-419c-bb79-ae1d47fe0383", "BindingInfo": { "TableName": "项目表", "ColumnName": "客服经理", "GUID": "80a12bdd-428f-458e-96a6-84b39f66cf42" }, "ColumnName": "客服经理" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目表", "ColumnName": "ID", "GUID": "1287418a-ac93-42f7-9005-01a8eafdf9e5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "1b6fc444958341068ee78e57de0486f3" }, { "$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": "项目成员表", "BindingInfos": [ { "GUID": "c851f59d-3c61-417a-8651-7241ff7e6c4b", "BindingInfo": { "TableName": "项目成员表", "ColumnName": "项目成员", "GUID": "6327b287-d657-407c-8ade-82a8da5c4b6e" }, "ColumnName": "项目成员" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目成员表", "ColumnName": "项目ID", "GUID": "34bf798b-74dd-4c85-90e8-89aac6f8feef" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } } }, "ID": "20e8f5c7f2f44c8b9646bd55f5e8746f" }, { "$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": "=项目成员.Count" } }, "value": "0", "compareType": 2 }, "CommandList": [ { "$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit", "InParamater": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目成员" }, "Operation": 18, "OperationParamaterAName": "项目成员", "OperationParamaterBName": "项目成员", "OutParamaterName": "项目成员数组" } ], "ID": "f8b1d9a4-a8fe-4915-9bad-58953ae3615b" } ] }, { "$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": "1" }, "CommandList": [ { "$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit", "InParamater": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目成员数组" }, "Operation": 4, "OperationParamaterAName": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息.项目经理" }, "OperationParamaterBName": "项目成员", "OutParamaterName": "项目成员数组" }, { "$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit", "InParamater": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目成员数组" }, "Operation": 4, "OperationParamaterAName": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息.商务经理" }, "OperationParamaterBName": "项目成员", "OutParamaterName": "项目成员数组" }, { "$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit", "InParamater": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目成员数组" }, "Operation": 4, "OperationParamaterAName": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息.客服经理" }, "OperationParamaterBName": "项目成员", "OutParamaterName": "项目成员数组" } ], "ID": "23f76fab-c4ac-43a5-9909-ad996b12b691" } ] }, { "$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": "=项目成员数组.Count" } }, "value": "0", "compareType": 2 }, "CommandList": [ { "$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit", "InParamater": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目成员数组" }, "Operation": 16, "OperationParamaterAName": ",", "OutParamaterName": "参会人" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "当前用户", "ParameterValue": "%CurrentUser%", "ID": "541717b1a1534329be707bc7de15f593" }, { "$type": "DingTalkPlugin.VideoConferences, DingTalkPlugin", "ConfTitle": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息.项目名称&\"项目沟通会议\"" }, "CreatorId": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户" }, "InviteUserIds": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=参会人" }, "Result": "返回结果" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "会议记录表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议业务类型", "GUID": "cae0254c-e9a8-4220-9c04-e63034611e94" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "钉钉会议ID", "GUID": "2e441d04-6cfe-4ee6-9475-6c6bfe6f8ffd" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=返回结果.ConferenceId" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "发起人", "GUID": "0f6bf43e-c1c2-4912-93d5-4288b8bc1e99" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "参与人", "GUID": "75fe07c6-a505-4397-bb7a-afc7c96f06cc" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=参会人" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议标题", "GUID": "e335c5ce-aacb-4a25-bbe0-3f168446e436" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息.项目名称&\"项目沟通会议\"" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议状态", "GUID": "e1de7023-6d39-4282-9768-93211d3cde5f" }, "Value": "1" } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "发起成功", "CustomReturns": [ { "ReturnPropertyName": "会议ID", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=返回结果.ConferenceId" } } ] } ], "ID": "bde73837-1b59-4db9-8d28-02cc44634b03" } ] } ], "ID": "12e0cc56-e3d4-4077-8461-d9d4710f6e97" } ] } ], "ReturnProperties": [ { "Name": "会议ID" } ] }