{ "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": "103b6f46-ca4a-4b5c-a9b5-ade05d581fe2", "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": "8f86aaa3aa6e44c49f3843bdb66346a6" }, { "$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, "Disabled": true }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "工时记录", "TableValue": { "TableName": "任务工时表", "BindingInfos": [ { "GUID": "88e5af6f-ecb8-4b52-a20e-4ba943582ec7", "BindingInfo": { "TableName": "任务工时表", "ColumnName": "工时日期", "GUID": "8e06e903-10d2-4fcf-9519-443cd33e6de0" }, "ColumnName": "工时日期" }, { "GUID": "16261470-dcb6-4041-a474-ece27665f9ef", "BindingInfo": { "TableName": "任务工时表", "ColumnName": "项目ID", "GUID": "131f5801-0b83-41d0-be38-604f06e6052c", "RelationBinding": { "RelatedTable": "项目表", "RelatedColumn": "ID", "DisplayColumn": "项目名称" } }, "ColumnName": "项目名称" }, { "GUID": "6341c819-03a2-40f4-97ef-08dea5902d73", "BindingInfo": { "TableName": "任务工时表", "ColumnName": "任务ID", "GUID": "3424f6e9-f2b5-44e0-bb0d-c4daaccd6e55", "RelationBinding": { "RelatedTable": "任务平行视图", "RelatedColumn": "ID", "DisplayColumn": "任务名称" } }, "ColumnName": "任务名称" }, { "GUID": "91995ec0-2d70-4f4e-9186-dfd514302dbd", "BindingInfo": { "TableName": "任务工时表", "ColumnName": "执行内容", "GUID": "dc47373c-d5cf-4ef1-9e07-66e040d40ca9" }, "ColumnName": "工作内容" }, { "GUID": "3a800fc9-d9f3-4594-bd31-8c13a718c8f2", "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": "=startDate" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "CompareType": 5, "ColumnBindingInfo": { "TableName": "任务工时表", "ColumnName": "工时日期", "GUID": "9007fec3-77d0-453f-a45c-eaf811a0392d" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=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": "01365f8058d44b89b3c537fe97f00921" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=返回码" }, "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=返回信息" }, "CustomReturns": [ { "ReturnPropertyName": "worksList", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时记录" } } ] } ], "ID": "79473741-fec9-4faa-a59b-87b9e152a8f3" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "您查找的成员不存在,请告诉我用户名或全名", "CustomReturns": [ { "ReturnPropertyName": "worksList" } ] } ], "ID": "3910ad3d-a7c6-46c3-8356-645d5cf69f5c" } ] } ], "ReturnProperties": [ { "Name": "worksList" } ] }