Browse Source

新增op添加方法

wangh 1 year ago
parent
commit
5386d9db8e

+ 19 - 1
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -2926,6 +2926,12 @@ namespace OASystem.API.Controllers
                 {
                     return Ok(JsonView(false, "删除失败"));
                 }
+                var resultC = await _sqlSugar.Updateable<Grp_CreditCardPayment>().Where(a => a.CId == dto.Id && a.IsDel == 0 && a.CTable == 80).SetColumns(a => new Grp_CreditCardPayment()
+                {
+                    IsDel = 1,
+                    DeleteUserId = dto.DeleteUserId,
+                    DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
+                }).ExecuteCommandAsync();
                 return Ok(JsonView(true, "删除成功!"));
             }
             catch (Exception ex)
@@ -3019,6 +3025,18 @@ namespace OASystem.API.Controllers
                 {
                     return Ok(JsonView(false, "删除失败"));
                 }
+                var result = await _sqlSugar.Updateable<Grp_CarTouristGuideGroundReservationsContent>().Where(a => a.CTGGRId == dto.Id && a.IsDel == 0).SetColumns(a => new Grp_CarTouristGuideGroundReservationsContent()
+                {
+                    IsDel = 1,
+                    DeleteUserId = dto.DeleteUserId,
+                    DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
+                }).ExecuteCommandAsync();
+                var resultC = await _sqlSugar.Updateable<Grp_CreditCardPayment>().Where(a => a.CId == dto.Id && a.IsDel == 0 && a.CTable==79).SetColumns(a => new Grp_CreditCardPayment()
+                {
+                    IsDel = 1,
+                    DeleteUserId = dto.DeleteUserId,
+                    DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
+                }).ExecuteCommandAsync();
                 return Ok(JsonView(true, "删除成功!"));
             }
             catch (Exception ex)
@@ -3039,7 +3057,7 @@ namespace OASystem.API.Controllers
         {
             try
             {
-                Result groupData = await _visaPriceRep.OpVisaPrice(dto);
+                Result groupData = await _carTouristGuideGroundRep.OpCarTouristGuideGround(dto);
                 if (groupData.Code != 0)
                 {
                     return Ok(JsonView(false, groupData.Msg));

+ 5 - 0
OASystem/OASystem.Infrastructure/Repositories/Groups/CarTouristGuideGroundRepository.cs

@@ -21,6 +21,11 @@ namespace OASystem.Infrastructure.Repositories.Groups
             _mapper = mapper;
         }
 
+        public Task<Result> OpCarTouristGuideGround(OpCarTouristGuideGroundDto dto)
+        {
+            throw new NotImplementedException();
+        }
+
         public async Task<Result> QueryCarTouristGuideGroundByDiId(CarTouristGuideGroundDto dto)
         {
             Result result = new Result() { Code = -2, Msg = "未知错误" };