Files
clue/ServerCommands/OPENAPI/getEmployeeWorkHoursData.json

336 lines
13 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": "userName",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "shamus"
},
{
"Name": "startDate",
"DataValidationInfo": {},
"TestData": "2024-08-27"
},
{
"Name": "endDate",
"DataValidationInfo": {}
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "SaveFormData.GetFormDataFiles, SaveFormData",
"ResultToReq": "请求信息"
},
{
"$type": "SaveFormData.fillInJSONProperties, SaveFormData",
"FullJsonString": "{\r\n \"userName\":\"\",\r\n \"startData\":\"\",\r\n \"endDate\":\"\"\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": "fd2033cc-b7c1-46e0-9d57-0cf91138b9ef",
"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对象.userName"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "b52c1f02-8da3-400e-8333-5a0853d99d87"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=完整JSON对象.userName"
}
}
],
"RelationType": 1
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "cb165c67a9a143dbb7e83625511d4d37"
},
{
"$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.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "工时记录",
"TableValue": {
"TableName": "任务工时表",
"BindingInfos": [
{
"GUID": "069fa84f-c1fa-4c40-bdb8-52c74c7d3323",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "8e06e903-10d2-4fcf-9519-443cd33e6de0"
},
"ColumnName": "工时日期"
},
{
"GUID": "45999740-5571-49dc-8bb6-b3f7d2a149a2",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "项目ID",
"GUID": "131f5801-0b83-41d0-be38-604f06e6052c",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目名称"
}
},
"ColumnName": "项目名称"
},
{
"GUID": "acbaffa6-2593-4526-8a43-4426d6999868",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "3424f6e9-f2b5-44e0-bb0d-c4daaccd6e55",
"RelationBinding": {
"RelatedTable": "任务平行视图",
"RelatedColumn": "ID",
"DisplayColumn": "任务名称"
}
},
"ColumnName": "任务名称"
},
{
"GUID": "72c9d43e-485a-47bf-95ea-6aa84d897c7f",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行内容",
"GUID": "dc47373c-d5cf-4ef1-9e07-66e040d40ca9"
},
"ColumnName": "工作内容"
},
{
"GUID": "2fa372d9-28e0-42e9-b79a-bf3994882e69",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时",
"GUID": "d2885c56-a32d-443a-b3cb-fe6414bc7c1f"
},
"ColumnName": "工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "c5307e4e-9cba-40fa-a094-44a845aa91bc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名.用户名"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"CompareType": 3,
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "d23bd76a-b0c0-4e62-bb12-d7d941f88a42"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=完整JSON对象.startDate"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"CompareType": 5,
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "9007fec3-77d0-453f-a45c-eaf811a0392d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=完整JSON对象.endDate"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "049ddcc8-55f3-4a8c-9712-40e59c630cfb"
},
"Value": "实际"
}
]
},
"OrderBySqlCondition": {
"OrderByColumns": [
{
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "44baf233-d9a7-4c8d-8518-2989076c9824"
},
"Order": 0
}
]
}
},
"ID": "b395fd429ce54fc9bb5720e37ab08dfd"
},
{
"$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": "=工时记录.Count"
}
},
"value": "0",
"compareType": 2
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "获取成功",
"CustomReturns": [
{
"ReturnPropertyName": "worksList",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时记录"
}
}
]
}
],
"ID": "e0a22cac-cc52-489d-a3cd-8c5479fbea72"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该成员在时间范围内没有工作记录",
"CustomReturns": [
{
"ReturnPropertyName": "worksList"
}
]
}
],
"ID": "dcd13485-f0be-45a7-885e-7c32bd0426f9"
}
]
}
],
"ID": "75813832-3981-45e7-9b34-60e5db7c5a88"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "您查找的成员不存在,请告诉我用户名或全名",
"CustomReturns": [
{
"ReturnPropertyName": "worksList"
}
]
}
],
"ID": "2a03b67c-f97e-4abe-9f8a-62697c6b364f"
}
]
}
],
"ReturnProperties": [
{
"Name": "worksList"
}
]
}