342 lines
13 KiB
JSON
342 lines
13 KiB
JSON
{
|
||
"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-16"
|
||
},
|
||
{
|
||
"Name": "结束日期",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "2024-06-16"
|
||
},
|
||
{
|
||
"Name": "用户",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "Administrator"
|
||
},
|
||
{
|
||
"Name": "任务ID",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "1"
|
||
}
|
||
],
|
||
"InvokeTriggerTestData": {
|
||
"UserName": "Administrator"
|
||
}
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "用户",
|
||
"TableValue": {
|
||
"TableName": "用户信息视图",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "69d8c1ee-a506-4394-b555-d677c7d67873",
|
||
"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": "402bd344cfca42359c04befcc43281eb"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "任务",
|
||
"TableValue": {
|
||
"TableName": "任务表",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "a0951355-4309-4cb6-ad68-64b157cbb953",
|
||
"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": "53d55dafedf84348b4e169d77995ba21"
|
||
},
|
||
{
|
||
"$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": "048771b03aa5416a895bd851b7627f55"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "总工时",
|
||
"ParameterValue": "0",
|
||
"ID": "ad995e7f70654432b1f0484ef0ba2576"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "Gitee事件",
|
||
"TableValue": {
|
||
"TableName": "Git_事件记录",
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "51124d2e-a47f-4e12-a8a5-7b9e54a89b01",
|
||
"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": "21794093a6d44ebda680c4016a96ee16"
|
||
},
|
||
{
|
||
"$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": "78a97a6d-7e86-48bc-8d26-54ddd3560680"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "您尚未设置Gitee信息,请前往\"个人中心\"设置后再试",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "工作内容"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "3ef014f6-b415-417d-a979-6c25454ecc8e"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "1158e869-e6a9-4e62-bf87-fba184080455"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "任务不存在",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "工作内容"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "a1ad3c0c-131f-4168-bb33-f8b0a75c9daa"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ReturnProperties": [
|
||
{
|
||
"Name": "工作内容"
|
||
}
|
||
]
|
||
} |