TANG JIANG 1 年間 前
コミット
e54e85d974
1 ファイル変更5 行追加1 行削除
  1. 5 1
      src/Hotline.Api/Controllers/EnforcementOrderController.cs

+ 5 - 1
src/Hotline.Api/Controllers/EnforcementOrderController.cs

@@ -177,6 +177,11 @@ namespace Hotline.Api.Controllers
                 else
                     order.EventTypeName = null;
 
+                if (!string.IsNullOrEmpty(dto.EventTypeSpliceName))
+                    order.EventTypeSpliceName = dto.EventTypeSpliceName;
+                else
+                    order.EventTypeSpliceName = null;
+
                 if (!string.IsNullOrEmpty(dto.EventTypeId))
                 {
                     order.EventTypeOneLevelId = dto.EventTypeId.Substring(0, 2);
@@ -186,7 +191,6 @@ namespace Hotline.Api.Controllers
                 {
                     order.EventTypeOneLevelId = null;
                     order.EventTypeId = null;
-                    order.EventTypeSpliceName = null;
                 }
                 await _enforcementOrdersRepository.UpdateAsync(order, HttpContext.RequestAborted);
             }