LEIYI 3 kuukautta sitten
vanhempi
commit
9c4954d796

+ 5 - 5
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -54,7 +54,6 @@ using System.Net.Http;
 using System.Reflection.PortableExecutable;
 using System.Security.Cryptography;
 using Ubiety.Dns.Core;
-using XAct;
 using static NPOI.POIFS.Crypt.CryptoFunctions;
 using static OASystem.API.OAMethodLib.JWTHelper;
 using static OASystem.Infrastructure.Repositories.Groups.AirTicketResRepository;
@@ -8238,8 +8237,9 @@ FROM
         public async Task<IActionResult> EnterExitCostMobileOpSingleStep7(PostEnterExitCostMobileOpSingleStep7Dto dto)
         {
             int subId = dto.SubId;
+            int diId = dto.Diid;
             if (!_portTypeData.Contains(dto.PortType)) return Ok(JsonView(false, MsgTips.Port));
-            if (dto.DiId < 1) return Ok(JsonView(false, MsgTips.DiId));
+            if (diId < 1) return Ok(JsonView(false, MsgTips.DiId));
             if (dto.CurrUserId < 1) return Ok(JsonView(false, MsgTips.UserId));
 
             var subInfo = _mapper.Map<Grp_DayOtherPrice>(dto);
@@ -8271,11 +8271,11 @@ FROM
             }
             #endregion
 
-            var itemTotal = _sqlSugar.Queryable<Grp_DayOtherPrice>().Where(x => x.IsDel == 0 && x.Diid == dto.DiId).Sum(x => x.SubTotal);
+            var itemTotal = _sqlSugar.Queryable<Grp_DayOtherPrice>().Where(x => x.IsDel == 0 && x.Diid == diId).Sum(x => x.SubTotal);
 
             //消息通知
-            var parentId = _sqlSugar.Queryable<Grp_EnterExitCost>().Where(x => x.IsDel == 0 && x.DiId == dto.DiId).OrderByDescending(x => x.CreateTime).First().Id;
-            await EnterExitCostMobileOpNotice(dto.DiId, parentId, dto.CurrUserId);
+            var parentId = _sqlSugar.Queryable<Grp_EnterExitCost>().Where(x => x.IsDel == 0 && x.DiId == diId).OrderByDescending(x => x.CreateTime).First().Id;
+            await EnterExitCostMobileOpNotice(dto.Diid, parentId, dto.CurrUserId);
 
             return Ok(JsonView(new { itemTotal = itemTotal }));
         }

+ 1 - 1
OASystem/OASystem.Domain/Dtos/Groups/EnterExitCostDto.cs

@@ -753,7 +753,7 @@ namespace OASystem.Domain.Dtos.Groups
     public class PostEnterExitCostMobileOpSingleStep7Dto : DayOtherPriceMobileInfoDto
     {
         public int PortType { get; set; }
-        public int DiId { get; set; }
+        //public int DiId { get; set; }
 
         public int CurrUserId { get; set; }