Parcourir la source

Merge branch 'develop' of http://132.232.92.186:3000/XinXiBu/OA2023 into develop

leiy il y a 1 an
Parent
commit
80d6bb3625

+ 23 - 9
OASystem/OASystem.Infrastructure/Repositories/Resource/TicketBlackCodeRepository.cs

@@ -148,18 +148,32 @@ namespace OASystem.Infrastructure.Repositories.Resource
                 if (dto.Id!=0 && !string.IsNullOrWhiteSpace(dto.Id.ToString()))
                 {
                     _TicketBlackCode = _sqlSugar.Queryable<Air_TicketBlackCode>().First(a => a.IsDel==0 && a.Id==dto.Id);
+                    return result = new Result()
+                    {
+                        Code = 0,
+                        Msg = "查询成功!",
+                        Data = new
+                        {
+                            GroupCostParameter = _AirgroupCostParameter,
+                            DelegationInfo = _DelegationInfo,
+                            TicketBlackCode = _TicketBlackCode
+                        },
+                    };
                 }
-                return result = new Result()
+                else
                 {
-                    Code = 0,
-                    Msg = "查询成功!",
-                    Data = new
+                    return result = new Result()
                     {
-                        GroupCostParameter = _AirgroupCostParameter,
-                        DelegationInfo = _DelegationInfo,
-                        TicketBlackCode = _TicketBlackCode
-                    },
-                };
+                        Code = 0,
+                        Msg = "查询成功!",
+                        Data = new
+                        {
+                            GroupCostParameter = _AirgroupCostParameter,
+                            DelegationInfo = _DelegationInfo,
+                        },
+                    };
+                }
+                
             }
             catch (Exception)
             {