{"Message":"完善日报里的\"从Gitee分析\"日志内容功能","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目版本"},{"State":1,"Type":1,"Name":"PCPage/新增报工"},{"State":1,"Type":9,"Name":"Theme"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/删除一个仓库WebHook"},{"State":1,"Type":7,"Name":"Table/Git仓库表"},{"State":1,"Type":15,"Name":"ServerCommand/GitCallback"},{"State":1,"Type":1,"Name":"PCPage/选择Git仓库"},{"State":1,"Type":15,"Name":"ServerCommand/同步一个仓库到表"},{"State":1,"Type":15,"Name":"ServerCommand/搜索仓库"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/列出仓库的WebHooks"},{"State":1,"Type":15,"Name":"ServerCommand/获取单个仓库信息"},{"State":1,"Type":15,"Name":"ServerCommand/从Gitee提取报工"},{"State":3,"Type":15,"Name":"ServerCommand/获取某仓库分支"},{"State":3,"Type":1,"Name":"PCPage/分支选择"},{"State":3,"Type":1,"Name":"PCPage/完善Gitee资料"},{"State":3,"Type":38,"Name":"Image/gitee2.svg"},{"State":3,"Type":38,"Name":"Image/gitee1.svg"},{"State":3,"Type":15,"Name":"ServerCommand/更新GITEE信息"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-14 09:12:23 +08:00
parent 1a547d7e16
commit 3aae4249bd
23 changed files with 1940 additions and 637 deletions

View File

@@ -41,6 +41,13 @@
"IgnoreBlank": false
},
"TestData": "Administrator"
},
{
"Name": "任务ID",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "12"
}
],
"InvokeTriggerTestData": {
@@ -57,7 +64,7 @@
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "8f82e754-66c0-4b46-8096-452e5b638a47",
"GUID": "46366003-75e0-4903-87a0-dcf074895064",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
@@ -81,7 +88,46 @@
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "bbf27a5a9c66482f85c63fea495e0214"
"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",
@@ -93,227 +139,13 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
"SerializeProperty": "=任务"
}
},
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算天数",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")"
},
"ID": "839247702b97432483704b323205cd67"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "总工时",
"ParameterValue": "0",
"ID": "73122483179048b18313028406573a8f"
},
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=事件列表"
},
"OutParamaterName": "事件列表"
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=计算天数+1"
},
"LoopIndexParamName": "index",
"LoopItemParamName": "当前天数"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前日期",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期+index-1"
},
"ID": "d4a5f61ea18f4cc7a24de21472568421"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "Gitee事件",
"TableValue": {
"TableName": "Git_事件记录",
"BindingInfos": [
{
"GUID": "8c52173d-d148-4903-b056-fb3b5e4271df",
"BindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "日期",
"GUID": "12eed73a-37a4-4ab4-9850-53a04c017263"
},
"ColumnName": "日期"
},
{
"GUID": "03433246-583c-4fc6-bad5-16ba014ae315",
"BindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "事件内容",
"GUID": "c2d0070c-3266-465c-865d-90e48ee75302"
},
"ColumnName": "事件内容"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$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": "日期",
"GUID": "6f2040a7-9a8d-449f-982d-85c6c73ab517"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前日期"
}
}
]
},
"NullFormulaValueQueryPolicy": 0,
"OrderBySqlCondition": {
"OrderByColumns": [
{
"ColumnBindingInfo": {
"TableName": "Git_事件记录",
"ColumnName": "日期",
"GUID": "d1eb816a-334f-46ce-9738-4740009be374"
},
"Order": 0
}
]
}
},
"ID": "09aaf1a2b4ed4c7ba9769efd0ffff595"
},
{
"$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": "=Gitee事件.Count"
}
},
"value": "0",
"compareType": 2
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "最小时间",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee事件.0.日期"
},
"ID": "c5dc990dffbc47e18c0f4a1db5c1381e"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "最大时间",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=GETPARAM(\"Gitee事件.\"&Gitee事件.Count-1&\".日期\")"
},
"ID": "7c19014644ba4fcfae80f801b077dbed"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "今日工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IFERROR(ROUND((最大时间-最小时间)*24,1),0)"
},
"ID": "9dc82b30c38a47b98eed930ce1f0db4d"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "总工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=总工时+今日工时"
},
"ID": "3cf8b482c8914dce850e9cb334ebcd33"
},
{
"$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": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
{
"Name": "内容",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=事件内容拼接"
}
}
],
"OutParamaterName": "今日数据"
},
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=事件列表"
},
"Operation": 4,
"OperationParamaterAName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=今日数据"
},
"OutParamaterName": "事件列表"
}
],
"ID": "5bc82618-62a0-4ad7-81de-4a4ae40003fb"
}
]
}
]
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
@@ -324,109 +156,185 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=事件列表.Count"
"SerializeProperty": "=用户.GIT用户名"
}
},
"value": "0",
"compareType": 2
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
{
"Name": "事件列表",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=事件列表"
}
}
],
"OutParamaterName": "数据源"
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算天数",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")"
},
"ID": "1f3988569f6f469fa81277a93360312c"
},
{
"$type": "MustachePlugin.Render, MustachePlugin",
"DataSrouce": "{{#事件列表}}\r\n{{内容}}\r\n{{/事件列表}}",
"UseCustomsDataHash": true,
"CustomsDataHash": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=数据源"
"$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
}
]
}
},
"SetMaxRecursionDepth": 512,
"ResultTo": "输出结果"
"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": "生成成功",
"Message": "获取成功",
"CustomReturns": [
{
"ReturnPropertyName": "工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=总工时"
}
},
{
"ReturnPropertyName": "工作内容",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=输出结果"
"SerializeProperty": "=获取工作内容"
}
}
]
}
],
"ID": "0e598871-c20f-4ca0-abca-cf1feca9c43d"
"ID": "e47946cd-e4d2-408f-86f7-44e46767465c"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "无Gitee记录",
"Message": "您尚未设置Gitee信息请前往\"个人中心\"设置后再试",
"CustomReturns": [
{
"ReturnPropertyName": "工时"
},
{
"ReturnPropertyName": "工作内容"
}
]
}
],
"ID": "17cdfa64-1f6b-4a59-9670-949c6c3f5f2a"
"ID": "bccc5e99-5617-45b3-8b4a-95a0acd27026"
}
]
}
],
"ID": "e0f0e898-5752-4cbb-a33a-6d032e73734d"
"ID": "f075c648-5586-49c0-816c-95d1283782dc"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "您尚未设置Gitee信息请前往\"个人中心\"设置后再试",
"Message": "任务不存在",
"CustomReturns": [
{
"ReturnPropertyName": "工时"
},
{
"ReturnPropertyName": "工作内容"
}
]
}
],
"ID": "3b95baba-3c99-45c2-b1cb-feaed60baf11"
"ID": "141b8b4f-b94d-4491-bac9-642eed38e19d"
}
]
}
],
"ReturnProperties": [
{
"Name": "工时"
},
{
"Name": "工作内容"
}