日常巡检、班前会统计

This commit is contained in:
2025-03-30 17:13:19 +08:00
parent 533052efc7
commit 64c7be5db4
8 changed files with 187 additions and 9 deletions
@@ -6,6 +6,7 @@ using BLL.OfficeCheck.Inspect;
using Model;
using static BLL.OfficeCheck.Inspect.Inspect_InspectionService;
using System.Collections.Generic;
using static WebAPI.Controllers.HSSE.ImageRecognitionController;
namespace WebAPI.Controllers.HSSE
{
@@ -179,8 +180,33 @@ namespace WebAPI.Controllers.HSSE
return responeData;
}
#region
[HttpPost]
public Model.ResponeData SaveInspectionChild(Model.Inspect_InspectionItem child)
{
var responeData = new Model.ResponeData();
try
{
if (string.IsNullOrEmpty(child.InspectionItemId))
{
child.InspectionItemId = Guid.NewGuid().ToString();
child.CompileTime = DateTime.Now;
Inspect_InspectionService.AddInspectionItem(child);
}
else
{
Inspect_InspectionService.UpdateInspectionItem(child);
}
} catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
//编辑 新增明细
[HttpPost]
public Model.ResponeData SaveInspectionItem([FromBody] List<Model.Inspect_InspectionItem> InspectionItems)
@@ -241,6 +267,8 @@ namespace WebAPI.Controllers.HSSE
TimeLimited = x.TimeLimited,
RectificationDescription = x.RectificationDescription,
RectificationResults = x.RectificationResults,
RectificationPhotoUrl = x.RectificationPhotoUrl,
RectificationVideoUrl = x.RectificationVideoUrl,
States = x.States,
CompileMan = subUser1.UserName,
CompileTime = x.CompileTime,