From 30ecd82c14c5b62bf5444f29edcbb7a044653b93 Mon Sep 17 00:00:00 2001
From: tjx <t2856754968@163.com>
Date: 星期三, 05 十一月 2025 20:06:52 +0800
Subject: [PATCH] 1111
---
Controllers/EquipmentInspectionController.cs | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/Controllers/EquipmentInspectionController.cs b/Controllers/EquipmentInspectionController.cs
index a326495..091ece6 100644
--- a/Controllers/EquipmentInspectionController.cs
+++ b/Controllers/EquipmentInspectionController.cs
@@ -11,18 +11,24 @@
[Route("api/[controller]")]
public class EquipmentInspectionController : ControllerBase
{
+ private readonly EquipmentInspectionManager _manager = new();
+ /// <summary>
+ /// 鏌ヨ璁惧鐐规璁板綍
+ /// </summary>
+ /// <param name="query">鏌ヨ鍙傛暟锛歮achineNo鍜宒ate</param>
+ /// <returns>鐐规璁板綍鏁版嵁</returns>
[HttpPost("Query")]
- public ResponseResult Query(OrderMachineDto query)
+ public ResponseResult Query(EquipmentInspectionQueryDto query)
{
try
{
- dynamic resultInfos = new ExpandoObject();
+ var result = _manager.QueryInspectionRecord(query);
return new ResponseResult
{
status = 0,
- message = "OK",
- data = resultInfos
+ message = "鏌ヨ鎴愬姛",
+ data = result
};
}
catch (Exception ex)
@@ -31,18 +37,22 @@
}
}
- //GetWomdaasByEngineeringNo
+ /// <summary>
+ /// 淇濆瓨璁惧鐐规璁板綍
+ /// </summary>
+ /// <param name="saveDto">淇濆瓨鍙傛暟锛歮achineNo銆乨ate銆乨ailyChecks銆乵onthlyChecks</param>
+ /// <returns>淇濆瓨缁撴灉</returns>
[HttpPost("Save")]
- public ResponseResult Save(OrderMachineDto query)
+ public ResponseResult Save(EquipmentInspectionSaveDto saveDto)
{
try
{
- dynamic resultInfos = new ExpandoObject();
+ var result = _manager.SaveInspectionRecord(saveDto);
return new ResponseResult
{
status = 0,
- message = "OK",
- data = resultInfos
+ message = "淇濆瓨鎴愬姛",
+ data = result
};
}
catch (Exception ex)
--
Gitblit v1.9.3