田爽 hai 3 meses
pai
achega
88e0336bc2

+ 13 - 5
src/Hotline.Api/Controllers/OrderController.cs

@@ -3737,11 +3737,15 @@ public class OrderController : BaseController
             order.PushType = string.Join(",", pushTypes);
         }
 
-        if (dto.OrderTags != null && dto.OrderTags.Any())
+        if (dto.Tags != null && dto.Tags.Any())
         {
-            var orderTags = _mapper.Map<List<SystemDicData>>(dto.OrderTags);
+            var orderTags = new List<SystemDicData>();
+            foreach (var item in dto.Tags)
+            {
+                orderTags.Add(new SystemDicData() { Id = item });
+			}
             order.OrderTags = orderTags;
-		}
+        }
 
         await _orderDomainService.AddAsync(order, true, HttpContext.RequestAborted);
 
@@ -3979,9 +3983,13 @@ public class OrderController : BaseController
             var pushTypes = dto.OrderPushTypes.Select(x => x.PushType);
             order.PushType = string.Join(",", pushTypes);
         }
-		if (dto.OrderTags != null && dto.OrderTags.Any())
+		if (dto.Tags != null && dto.Tags.Any())
 		{
-			var orderTags = _mapper.Map<List<SystemDicData>>(dto.OrderTags);
+			var orderTags = new List<SystemDicData>();
+			foreach (var item in dto.Tags)
+			{
+				orderTags.Add(new SystemDicData() { Id = item });
+			}
 			order.OrderTags = orderTags;
 		}
 

+ 1 - 1
src/Hotline.Share/Dtos/Order/OrderDto.cs

@@ -1438,7 +1438,7 @@ namespace Hotline.Share.Dtos.Order
         /// <summary>
         /// 工单标签
         /// </summary>
-        public List<OrderRelationTagDto>?  Tags { get; set; }
+        public List<string>?  Tags { get; set; }
 
         public List<SystemDicDataOutDto>? OrderTags { get; set; }
 	}