Browse Source

费用审核
op名称显示调整

leiy 1 year ago
parent
commit
06abab751f
1 changed files with 6 additions and 3 deletions
  1. 6 3
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 6 - 3
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -1491,13 +1491,16 @@ namespace OASystem.API.Controllers
                                     var cityInfo = cityData.Find(it => it.Id == cityId);
                                     if (cityInfo != null)
                                     {
-                                        string nameContent = $@"{cityInfo.Country}-{cityInfo.City}({carFeeItems.Find(it=>it.Id == touristGuideGroundReservations.PriceType)?.Name ?? "Unkonwn"})";
+                                        string nameContent = $@"{cityInfo.Country}-{cityInfo.City}";
 
+                                        var carFeeItem = carFeeItems.Find(it => it.Id == touristGuideGroundReservations.PriceType);
+                                        if (carFeeItem != null )
+                                        {
+                                            nameContent += $@"({carFeeItem.Name})";
+                                        }
                                         _detail.PriceNameContent = nameContent;
 
                                     }
-
-                                    
                                 }
                                 else
                                 {