Pārlūkot izejas kodu

修改机票部分代码

yuanrf 1 gadu atpakaļ
vecāks
revīzija
8a6310abb6

+ 6 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/AirTicketResRepository.cs

@@ -307,8 +307,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
             {
                 if (dto.DiId < 1)
                 {
-                    result.Msg += "请输入正确的diid";
-                    return result;
+                    dto.DiId = -1;
                 }
 
                 #region 团组下拉框
@@ -359,6 +358,11 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 #endregion
 
                 #region 客人名单下拉框
+                if (dto.DiId == -1)
+                {
+                    var dele = _AirTicketAgents.FirstOrDefault();
+                    dto.DiId = dele != null ? dele.Id : dto.DiId;
+                }
                 string sqlClient = string.Format("select b.Id,b.Pinyin,b.lastName,b.firstName,b.phone from  Grp_TourClientList a, Crm_DeleClient b where a.clientid = b.id and a.isdel = 0 and a.diid = {0}", dto.DiId);
                 var clientArr = _sqlSugar.SqlQueryable<SimplClientInfo>(sqlClient).ToList();
                 #endregion

+ 1 - 0
OASystem/OASystem.Infrastructure/Repositories/System/SystemMenuPermissionRepository.cs

@@ -69,6 +69,7 @@ namespace OASystem.Infrastructure.Repositories.System
         public Result QueryMenuLoad(int uid,int PortType)
         {
             Result result = new Result();
+            result.Data = new string [0];
 
             if (uid != 0)
             {