Files
clue/ServerCommands/OPENAPI/getEmployeeWorkHoursData.json

337 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 \"startDate\":\"\",\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": "e684ea2d-1225-4d81-9e78-933530738382",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "8e06e903-10d2-4fcf-9519-443cd33e6de0"
},
"ColumnName": "工时日期"
},
{
"GUID": "11f4f903-3609-4c07-862c-fe4e38a18a35",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "项目ID",
"GUID": "131f5801-0b83-41d0-be38-604f06e6052c",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目名称"
}
},
"ColumnName": "项目名称"
},
{
"GUID": "3eb8cf6f-c8c1-4f56-9405-4a59ef2eab3b",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "3424f6e9-f2b5-44e0-bb0d-c4daaccd6e55",
"RelationBinding": {
"RelatedTable": "任务平行视图",
"RelatedColumn": "ID",
"DisplayColumn": "任务名称"
}
},
"ColumnName": "任务名称"
},
{
"GUID": "104cd50a-2b5e-45bb-b574-c1893a50d218",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行内容",
"GUID": "dc47373c-d5cf-4ef1-9e07-66e040d40ca9"
},
"ColumnName": "工作内容"
},
{
"GUID": "66c2a513-836d-4e2f-b58b-d08cd2c7c69f",
"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": "实际"
}
]
},
"NullFormulaValueQueryPolicy": 0,
"OrderBySqlCondition": {
"OrderByColumns": [
{
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "44baf233-d9a7-4c8d-8518-2989076c9824"
},
"Order": 0
}
]
}
},
"ID": "b794fa83ce7c46aa83426cde5f0cba2e"
},
{
"$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": "9e648495-e14a-4f60-b9cb-0007d8c05670"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该成员在时间范围内没有工作记录",
"CustomReturns": [
{
"ReturnPropertyName": "worksList"
}
]
}
],
"ID": "64bfb3ec-442c-4703-af71-1737bb90b0cc"
}
]
}
],
"ID": "f664451f-5d7b-4636-b216-4e362c777afc"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "您查找的成员不存在,请告诉我用户名或全名",
"CustomReturns": [
{
"ReturnPropertyName": "worksList"
}
]
}
],
"ID": "3a0f3f04-a46d-4721-92c1-2b06174c8ea4"
}
]
}
],
"ReturnProperties": [
{
"Name": "worksList"
}
]
}