From d0c27146072067ca4a064a940d1fe5f7521b0f02 Mon Sep 17 00:00:00 2001 From: quowingwang Date: Sun, 21 Dec 2025 15:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8A=A5=E8=AD=A6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/andon/AndonAlarmRecordController.cs | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/ZR.Admin.WebApi/Controllers/mes/andon/AndonAlarmRecordController.cs b/ZR.Admin.WebApi/Controllers/mes/andon/AndonAlarmRecordController.cs index 86aeabca..fa8680bd 100644 --- a/ZR.Admin.WebApi/Controllers/mes/andon/AndonAlarmRecordController.cs +++ b/ZR.Admin.WebApi/Controllers/mes/andon/AndonAlarmRecordController.cs @@ -80,16 +80,16 @@ namespace ZR.Admin.WebApi.Controllers.andon public IActionResult UpdateAndonAlarmRecord([FromBody] AndonAlarmRecordDto parm) { var modal = parm.Adapt().ToUpdate(HttpContext); - if (parm.Area != null && parm.Area.Length > 0) - { - modal.Area1 = parm.Area.Length > 0 ? parm.Area[0] : string.Empty; - modal.Area2 = parm.Area.Length > 1 ? parm.Area[1] : string.Empty; - } - else - { - modal.Area1 = string.Empty; - modal.Area2 = string.Empty; - } + //if (parm.Area != null && parm.Area.Length > 0) + //{ + // modal.Area1 = parm.Area.Length > 0 ? parm.Area[0] : string.Empty; + // modal.Area2 = parm.Area.Length > 1 ? parm.Area[1] : string.Empty; + //} + //else + //{ + // modal.Area1 = string.Empty; + // modal.Area2 = string.Empty; + //} var response = _AndonAlarmRecordService.UpdateAndonAlarmRecord(modal); return ToResponse(response); @@ -175,16 +175,16 @@ namespace ZR.Admin.WebApi.Controllers.andon public IActionResult CreateAndonAlarmRecord([FromBody] AndonAlarmRecordDto parm) { var modal = parm.Adapt().ToCreate(HttpContext); - if (parm.Area != null && parm.Area.Length > 0) - { - modal.Area1 = parm.Area.Length > 0 ? parm.Area[0] : string.Empty; - modal.Area2 = parm.Area.Length > 1 ? parm.Area[1] : string.Empty; - } - else - { - modal.Area1 = string.Empty; - modal.Area2 = string.Empty; - } + //if (parm.Area != null && parm.Area.Length > 0) + //{ + // modal.Area1 = parm.Area.Length > 0 ? parm.Area[0] : string.Empty; + // modal.Area2 = parm.Area.Length > 1 ? parm.Area[1] : string.Empty; + //} + //else + //{ + // modal.Area1 = string.Empty; + // modal.Area2 = string.Empty; + //} var response = _AndonAlarmRecordService.CreateAndonAlarmRecord(modal); return SUCCESS(response);