{"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:
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