Kaynağa Gözat

机票行程代码修改

yuanrf 2 ay önce
ebeveyn
işleme
25019804b6

+ 5 - 0
OASystem/OASystem.Domain/Dtos/Resource/TicketBlackCodeDto.cs

@@ -66,5 +66,10 @@ namespace OASystem.Domain.Dtos.Resource
         /// 备注
         /// </summary>
         public string Remark { get; set; }
+
+        /// <summary>
+        /// 行程代码标题
+        /// </summary>
+        public string Title { get; set; }
     }
 }

+ 5 - 0
OASystem/OASystem.Domain/Entities/Resource/Air_TicketBlackCode.cs

@@ -52,5 +52,10 @@ namespace OASystem.Domain.Entities.Resource
         /// </summary>
         [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
         public decimal ECPrice { get; set; }
+
+        /// <summary>
+        /// 行程代码标题
+        /// </summary>
+        public string Title { get; set; }
     }
 }

+ 2 - 2
OASystem/OASystem.Infrastructure/Repositories/Resource/TicketBlackCodeRepository.cs

@@ -70,6 +70,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
                         ECPrice=dto.ECPrice,
                         CreateUserId = dto.CreateUserId,
                         Remark = dto.Remark,
+                        Title = dto.Title,
                     });
                     if (!res)
                     {
@@ -104,7 +105,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
 
                 string sql = string.Format(@"select *,(select CnName from Sys_Users where id=a.CreateUserId) as CreateName from Air_TicketBlackCode a  {0}", sqlWhere);
                 List<TicketBlackCodeView> _TicketBlackCodes = await _sqlSugar.SqlQueryable<TicketBlackCodeView>(sql).ToListAsync();
-                Grp_DelegationInfo _DelegationInfo=await _sqlSugar.Queryable<Grp_DelegationInfo>().FirstAsync(a=>a.IsDel==0 && a.Id==dto.DiId);
+                Grp_DelegationInfo _DelegationInfo = await _sqlSugar.Queryable<Grp_DelegationInfo>().FirstAsync(a=>a.IsDel==0 && a.Id==dto.DiId);
                 if (_TicketBlackCodes.Count!=0)
                 {
                     return result = new Result()
@@ -135,7 +136,6 @@ namespace OASystem.Infrastructure.Repositories.Resource
             catch (Exception)
             {
                 return result;
-                throw;
             }
         }