Files
clue/ServerCommands/Gitee/从Gitee提取报工.json

342 lines
13 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Name": "从Gitee提取报工",
"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": "开始日期",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "2024-06-13"
},
{
"Name": "结束日期",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "2024-06-13"
},
{
"Name": "用户",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "Administrator"
},
{
"Name": "任务ID",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "12"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "用户",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "46366003-75e0-4903-87a0-dcf074895064",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
"GUID": "5879fc09-08fa-451a-a355-b26d486f8c31"
},
"ColumnName": "GIT用户名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "24bb73b2-b153-4756-85c1-7b2af8af884d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "8391e0732ab841529e2174dc037526ea"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "0e59cb25-2e18-48bc-8977-c383f267b674",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "dde5bb9b-eca1-4a75-8842-48e549ca0dfb",
"RelationBinding": {
"RelatedTable": "项目版本",
"RelatedColumn": "ID",
"DisplayColumn": "仓库ID"
}
},
"ColumnName": "仓库ID"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "b704bc09-9556-4e08-bf59-03af3049108f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "a958acc5408244d390156e9085776e6e"
},
{
"$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.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
}
},
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算天数",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")"
},
"ID": "1f3988569f6f469fa81277a93360312c"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "总工时",
"ParameterValue": "0",
"ID": "73122483179048b18313028406573a8f"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "Gitee事件",
"TableValue": {
"TableName": "Git_事件记录",
"BindingInfos": [
{
"GUID": "6bafd44a-35f7-4cc8-afc3-d06f8ba7b421",
"BindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "事件内容",
"GUID": "c2d0070c-3266-465c-865d-90e48ee75302"
},
"ColumnName": "事件内容"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"CompareType": 3,
"ColumnBindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "日期",
"GUID": "6f2040a7-9a8d-449f-982d-85c6c73ab517"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"CompareType": 3,
"ColumnBindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "日期",
"GUID": "5a6061db-576d-4083-b830-58e94583f2f0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "git用户名",
"GUID": "0057124f-d1b6-4f02-a3d8-1affcc691fed"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "仓库ID",
"GUID": "1e4558ce-b6b5-465e-aff1-ba427e4bb9d0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务.仓库ID"
}
}
]
},
"NullFormulaValueQueryPolicy": 0,
"OrderBySqlCondition": {
"OrderByColumns": [
{
"ColumnBindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "日期",
"GUID": "d1eb816a-334f-46ce-9738-4740009be374"
},
"Order": 0
}
]
}
},
"ID": "2cb377727f324c1ca26920b7ae0c1401"
},
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee事件"
},
"Operation": 16,
"OperationParamaterAName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=CHAR(10)"
},
"OperationParamaterBName": "事件内容",
"OutParamaterName": "获取工作内容"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "获取成功",
"CustomReturns": [
{
"ReturnPropertyName": "工作内容",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=获取工作内容"
}
}
]
}
],
"ID": "e47946cd-e4d2-408f-86f7-44e46767465c"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "您尚未设置Gitee信息请前往\"个人中心\"设置后再试",
"CustomReturns": [
{
"ReturnPropertyName": "工作内容"
}
]
}
],
"ID": "bccc5e99-5617-45b3-8b4a-95a0acd27026"
}
]
}
],
"ID": "f075c648-5586-49c0-816c-95d1283782dc"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务不存在",
"CustomReturns": [
{
"ReturnPropertyName": "工作内容"
}
]
}
],
"ID": "141b8b4f-b94d-4491-bac9-642eed38e19d"
}
]
}
],
"ReturnProperties": [
{
"Name": "工作内容"
}
]
}