146 lines
5.0 KiB
JSON
146 lines
5.0 KiB
JSON
{
|
|
"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": "执行完毕"
|
|
}
|
|
]
|
|
} |