{"Message":"增加工作消息自动推送","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/模板详情"},{"State":1,"Type":1,"Name":"PCPage/汇报详情"},{"State":1,"Type":1,"Name":"PCPage/开发测试"},{"State":1,"Type":31,"Name":"UserControlPage/汇报卡片"},{"State":1,"Type":11,"Name":"UserService"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/Base根据汇报模板生成内容"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/初始化钉钉配置"},{"State":1,"Type":15,"Name":"ServerCommand/发送工作通知消息"},{"State":3,"Type":15,"Name":"ServerCommand/批量同步所有用户UserID"},{"State":3,"Type":16,"Name":"TaskScheduler/汇报新增事件"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/发送日报消息到钉钉"}],"Version":"v1"}
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
"Name": "消息内容",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
},
|
||||
"TestData": "### 测试Clue消息推送\r\n - xxxxxxxxxxxx;\r\n - xxxxxxxxxx;\r\n - xxxxxxxxxxxxxxx;"
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
@@ -47,50 +48,28 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=接收人"
|
||||
},
|
||||
"MsgType": "text",
|
||||
"MsgType": "action_card",
|
||||
"Text_Content": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=消息内容"
|
||||
},
|
||||
"Action_card_Btn_Type": "0",
|
||||
"Action_card_Btn_Type": "1",
|
||||
"Action_card_Markdown": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=生成结果"
|
||||
"SerializeProperty": "=消息内容"
|
||||
},
|
||||
"Action_card_Title": "这是一个工作汇报卡片模板测试",
|
||||
"Action_card_Single_title": "XXX提交了个人日报",
|
||||
"Action_card_Title": "XXX提交了个人日报",
|
||||
"Action_card_Single_title": "查看详情",
|
||||
"Action_card_Single_Url": "https://www.baidu.com",
|
||||
"Action_card_Btn_orientation": "1",
|
||||
"Action_card_Btn_orientation": "0",
|
||||
"Action_card_Btn_list": [
|
||||
{
|
||||
"Title": "查看"
|
||||
"Title": "查看详情",
|
||||
"Url": "https://www.baidu.com"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
"Title": "更多...",
|
||||
"Url": "https://www.baidu.com"
|
||||
}
|
||||
],
|
||||
"Task_id": "钉钉消息任务ID"
|
||||
|
||||
235
ServerCommands/钉钉/发送日报消息到钉钉.json
Normal file
235
ServerCommands/钉钉/发送日报消息到钉钉.json
Normal file
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"Name": "发送日报消息到钉钉",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "汇报ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "24"
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "ApplicationServerOperationCommand.GetAppBaseUrlCommand, ApplicationServerOperationCommand",
|
||||
"ParamName": "baseUrl"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "汇报信息",
|
||||
"TableValue": {
|
||||
"TableName": "汇报记录表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "c4c85967-163a-4778-af21-74bf0de0b8bd",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "0e93dc38-27a6-4f43-8d1f-259e2ed63004"
|
||||
},
|
||||
"ColumnName": "ID"
|
||||
},
|
||||
{
|
||||
"GUID": "4a352d5e-d89c-4c7d-bf24-c09b792e0c26",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "开始日期",
|
||||
"GUID": "558f2e8b-d834-4550-9071-faa795353960"
|
||||
},
|
||||
"ColumnName": "日期"
|
||||
},
|
||||
{
|
||||
"GUID": "efa0143d-f403-49da-b4c8-dd67b97ed18a",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "汇报对象",
|
||||
"GUID": "f039b950-9b7c-4f2b-b7ee-59efe980fe9c"
|
||||
},
|
||||
"ColumnName": "汇报对象"
|
||||
},
|
||||
{
|
||||
"GUID": "d82fb480-c470-4842-9c22-fca24e0776b0",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "汇报类型",
|
||||
"GUID": "6ff51c49-9039-4eb8-b8a8-96e949ab2c3f"
|
||||
},
|
||||
"ColumnName": "汇报类型"
|
||||
},
|
||||
{
|
||||
"GUID": "9c542390-a435-4279-9ca9-4fcc3c14325d",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "汇报人",
|
||||
"GUID": "85bf0bc0-52ba-42bc-9439-c1a9801d04a1",
|
||||
"AttachType": {
|
||||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||||
"UserColumnAttachType": 1
|
||||
}
|
||||
},
|
||||
"ColumnName": "汇报人"
|
||||
},
|
||||
{
|
||||
"GUID": "f3556ae4-e1e9-4dbc-8199-0ba2747b7b71",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "汇报人",
|
||||
"GUID": "10e12df8-125c-466e-9b70-4bce9bc43281",
|
||||
"AttachType": {
|
||||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||||
"UserColumnAttachType": 8
|
||||
}
|
||||
},
|
||||
"ColumnName": "汇报人_组织上级"
|
||||
},
|
||||
{
|
||||
"GUID": "bb7a271e-488b-41e0-a152-b06331cea346",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "内容",
|
||||
"GUID": "4ae3db68-4d61-4995-90ca-e2f92f654771"
|
||||
},
|
||||
"ColumnName": "内容"
|
||||
},
|
||||
{
|
||||
"GUID": "4d75fd9d-7798-4c8e-b2fe-8d69d86b34a2",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "总工时",
|
||||
"GUID": "f2b71908-1c86-469e-a9f9-1b8487e971e3"
|
||||
},
|
||||
"ColumnName": "总工时"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "汇报记录表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "3c264ea1-de8e-481f-b05d-530d9505afdb"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "f4635eb887aa4179b89d7345df2faef7"
|
||||
},
|
||||
{
|
||||
"$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": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
"Operation": 17,
|
||||
"OperationParamaterAName": "|",
|
||||
"OperationParamaterBName": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报信息.汇报人_组织上级"
|
||||
},
|
||||
"OutParamaterName": "组织上级数组"
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
"InParamater": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=组织上级数组"
|
||||
},
|
||||
"Operation": 19,
|
||||
"OutParamaterName": "组织上级数组"
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
"InParamater": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=组织上级数组"
|
||||
},
|
||||
"Operation": 16,
|
||||
"OperationParamaterAName": ",",
|
||||
"OutParamaterName": "组织上级"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "跳转URL",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=baseUrl&\"汇报详情?id=\"&汇报ID"
|
||||
},
|
||||
"ID": "c28fd4468d4148e8b8a79bc915502b81"
|
||||
},
|
||||
{
|
||||
"$type": "ContentEditor.ContentEditor, ContentEditor",
|
||||
"Content": "### [=汇报信息.汇报人&\"的\"&汇报信息.汇报对象&汇报信息.汇报类型]\r\n[=汇报信息.内容]",
|
||||
"Result": "生成结果"
|
||||
},
|
||||
{
|
||||
"$type": "DingTalkPlugin.Asyncsend, DingTalkPlugin",
|
||||
"Userid_list": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=组织上级"
|
||||
},
|
||||
"MsgType": "action_card",
|
||||
"Text_Content": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=消息内容"
|
||||
},
|
||||
"Action_card_Btn_Type": "0",
|
||||
"Action_card_Markdown": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=生成结果"
|
||||
},
|
||||
"Action_card_Title": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报信息.汇报人&\"提交的\"&汇报信息.汇报对象&汇报信息.汇报类型"
|
||||
},
|
||||
"Action_card_Single_title": "查看详情",
|
||||
"Action_card_Single_Url": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=跳转URL"
|
||||
},
|
||||
"Action_card_Btn_orientation": "0",
|
||||
"Action_card_Btn_list": [
|
||||
{
|
||||
"Title": "查看详情",
|
||||
"Url": "https://www.baidu.com"
|
||||
},
|
||||
{
|
||||
"Title": "更多...",
|
||||
"Url": "https://www.baidu.com"
|
||||
}
|
||||
],
|
||||
"Task_id": "钉钉消息任务ID"
|
||||
}
|
||||
],
|
||||
"ID": "54443f00-aa2e-4adc-9790-6da16cd2b90e"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
146
ServerCommands/钉钉/批量同步所有用户UserID.json
Normal file
146
ServerCommands/钉钉/批量同步所有用户UserID.json
Normal file
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"Name": "批量同步所有用户UserID",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "用户列表",
|
||||
"TableValue": {
|
||||
"TableName": "用户信息视图",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "731660ff-5bbd-41ba-b54a-856a47d40bf3",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "用户名",
|
||||
"GUID": "8d823ac0-83b0-4d0e-ab80-c7e9261b4b49"
|
||||
},
|
||||
"ColumnName": "用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "0c3518d2-0de2-4071-86c0-ebdcd3161099",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "邮件",
|
||||
"GUID": "2fb73d28-4319-434f-851e-c554170418f4"
|
||||
},
|
||||
"ColumnName": "邮件"
|
||||
},
|
||||
{
|
||||
"GUID": "252fa0a6-bd5c-4fac-8345-89b42f82a9c9",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "全名",
|
||||
"GUID": "52c1dc14-e0c0-4438-9615-321ec3e8996c"
|
||||
},
|
||||
"ColumnName": "全名"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"CompareType": 1,
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "DingTalkUnionID",
|
||||
"GUID": "d7205a45-e0a7-42c7-8153-55bf43737998"
|
||||
},
|
||||
"Value": "%Null%"
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "DingTalkUserID",
|
||||
"GUID": "5a6555f4-7dcf-4eb2-9f35-ed7e19f84334"
|
||||
},
|
||||
"Value": "%Null%"
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 2
|
||||
},
|
||||
"ID": "42a09959a21547a2b74f393964494529"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||||
"LoopInfo": {
|
||||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||||
"LoopCount": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户列表"
|
||||
},
|
||||
"LoopItemParamName": "Item"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "DingTalkPlugin.Getbyunionid, DingTalkPlugin",
|
||||
"UserName": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.用户名"
|
||||
},
|
||||
"UserId": "UserId"
|
||||
},
|
||||
{
|
||||
"$type": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
|
||||
"OperationType": "202",
|
||||
"CommandOperator": {
|
||||
"$type": "UserManagementCommandsV2.UpdateUserOperator, UserManagementCommandsV2",
|
||||
"UserName": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.用户名"
|
||||
},
|
||||
"FullName": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.全名"
|
||||
},
|
||||
"Email": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.邮件"
|
||||
},
|
||||
"ExtendedProperties": [
|
||||
{
|
||||
"Name": "DingTalkUserID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=UserId"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "执行完毕"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user