Browse Source

OP添加费用名称字段

yuanrf 1 year ago
parent
commit
792ca3b997

+ 5 - 0
OASystem/OASystem.Domain/Dtos/Groups/CarTouristGuideGroundDto.cs

@@ -104,6 +104,11 @@ namespace OASystem.Domain.Dtos.Groups
         /// </summary>
         public int PriceType { get; set; }
 
+        /// <summary>
+        /// 费用名称
+        /// </summary>
+        public string PriceName { get; set; }
+
     }
 
     public class CarTouristGuideGroundContentDto : PortDtoBase

+ 5 - 0
OASystem/OASystem.Domain/Entities/Groups/Grp_CarTouristGuideGroundReservations.cs

@@ -108,5 +108,10 @@ namespace OASystem.Domain.Entities.Groups
         /// 费用类型
         /// </summary>
         public int PriceType {  get; set; }
+
+        /// <summary>
+        /// 费用名称
+        /// </summary>
+        public string PriceName { get; set; }
     }
 }

+ 2 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/CarTouristGuideGroundRepository.cs

@@ -45,7 +45,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 Grp_CarTouristGuideGroundReservations grp_CarTouristGuide = _mapper.Map<Grp_CarTouristGuideGroundReservations>(dto);
                 if (dto.Status == 1)//添加
                 {
-                    Grp_CarTouristGuideGroundReservations grp_CarTouristGuideGround = _sqlSugar.Queryable<Grp_CarTouristGuideGroundReservations>().First(a => a.IsDel == 0 && a.Area == dto.Area && a.BusName == dto.BusName && a.ServiceGuide == dto.ServiceGuide && a.DiId == dto.DiId && a.BusTel == dto.BusTel && a.ServiceTel == dto.ServiceTel);
+                    Grp_CarTouristGuideGroundReservations grp_CarTouristGuideGround = _sqlSugar.Queryable<Grp_CarTouristGuideGroundReservations>().First(a => a.IsDel == 0 && a.Area == dto.Area && a.BusName == dto.BusName && a.ServiceGuide == dto.ServiceGuide && a.DiId == dto.DiId && a.BusTel == dto.BusTel && a.ServiceTel == dto.ServiceTel && a.PriceName == dto.PriceName);
                     if (grp_CarTouristGuideGround != null)
                     {
                         return result = new Result() { Code = -1, Msg = "该笔费用已存在,请勿重复添加!" };
@@ -85,6 +85,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                         OrbitalPrivateTransfer = grp_CarTouristGuide.OrbitalPrivateTransfer,
                         Remark = grp_CarTouristGuide.Remark,
                         PriceType = grp_CarTouristGuide.PriceType,
+                        PriceName = grp_CarTouristGuide.PriceName,
                     });
                     if (res)
                     {