Files
clue/ServerCommands/OPENAPI/getEmployeeWorkHoursData.json

253 lines
8.6 KiB
JSON

{
"Name": "getEmployeeWorkHoursData",
"Description": "获取某人工时数据",
"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_Anonymous"
]
}
]
}
},
"Parameters": [
{
"Name": "user",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "shamus"
},
{
"Name": "startData",
"DataValidationInfo": {},
"TestData": "2024-08-27"
},
{
"Name": "type",
"DataValidationInfo": {}
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "SaveFormData.GetFormDataFiles, SaveFormData",
"ResultToReq": "请求信息"
},
{
"$type": "SaveFormData.fillInJSONProperties, SaveFormData",
"FullJsonString": "{\r\n \"user\":\"\",\r\n \"startData\":\"\",\r\n \"type\":\"个人日报\"\r\n}",
"SourceJson": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=请求信息.Body"
},
"ResultTo": "完整JSON对象"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "用户名",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "08a1ed98-79d1-421f-847f-ad8e6c1cc6a3",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "559054ea-3f34-43e4-9a2b-8a58f6b1c468"
},
"ColumnName": "用户名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "58615291-bf4b-4ec4-b2b6-a339b407b3d9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=完整JSON对象.user"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "b52c1f02-8da3-400e-8333-5a0853d99d87"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=完整JSON对象.user"
}
}
],
"RelationType": 1
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "31ff45091bea4d6c82e46e86e81337b5"
},
{
"$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.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "Base根据汇报模板生成内容",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "生成日期",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=完整JSON对象.startData"
}
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "汇报类型",
"Value": "日报"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "汇报对象",
"Value": "个人"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "对象ID"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "汇报人",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名.用户名"
}
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "返回码"
},
"ResultMessageTo": {
"SerializeProperty": "返回信息"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "日报内容",
"ResultTo": {
"SerializeProperty": "日报内容"
}
},
{
"ResultPropertyName": "日报文本",
"ResultTo": {
"SerializeProperty": "日报纯文本"
}
},
{
"ResultPropertyName": "返回总工时",
"ResultTo": {
"SerializeProperty": "总工时"
}
}
],
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回码"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回信息"
},
"CustomReturns": [
{
"ReturnPropertyName": "content",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=日报内容"
}
},
{
"ReturnPropertyName": "duration",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=总工时"
}
}
]
}
],
"ID": "0e11cefc-1914-496c-84b0-e4a294118219"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "您查找的成员不存在,请告诉我用户名或全名",
"CustomReturns": [
{
"ReturnPropertyName": "content"
},
{
"ReturnPropertyName": "duration"
}
]
}
],
"ID": "9abf89ed-3359-4b21-8bdd-0595f939b57d"
}
]
}
],
"ReturnProperties": [
{
"Name": "content"
},
{
"Name": "duration"
}
]
}