Browse Source

部分完善++

yuanrf 1 day ago
parent
commit
a0e953285d

+ 26 - 0
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -26539,6 +26539,11 @@ ORDER BY
             return Ok(JsonView(true, "操作成功!",count));
         }
 
+        /// <summary>
+        /// 会务成本所有数据清除
+        /// </summary>
+        /// <param name="Dto"></param>
+        /// <returns></returns>
         [HttpPost]
         public async Task<IActionResult> ConferenceAffairsDelete(ConferenceAffairsDeleteDto Dto)
         {
@@ -26591,6 +26596,27 @@ ORDER BY
         }
 
 
+        /// <summary>
+        /// 子项数据删除
+        /// </summary>
+        /// <param name="Dto"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public async Task<IActionResult> ConferenceAffairsDelete(ConferenceAffairsDeleteSingleDto Dto)
+        {
+           var count = _sqlSugar.Updateable<Grp_ConferenceAffairsCostChild>()
+                       .Where(x => Dto.ids.Contains(x.Id) && x.IsDel == 0)
+                       .SetColumns(x => new Grp_ConferenceAffairsCostChild
+                       {
+                           IsDel = 1,
+                           DeleteTime = DateTime.Now.ToString("yyyy-MM-dd"),
+                           DeleteUserId = Dto.UserId
+                       })
+                       .ExecuteCommand();
+
+            return Ok(JsonView(true, "SUCCESS!", count));
+        }
+
         [HttpPost]
         public async Task<IActionResult> PermissionSetting(PermissionSettingDto Dto)
         {

+ 6 - 0
OASystem/OASystem.Domain/Dtos/Groups/ConferenceAffairsInIt.cs

@@ -50,6 +50,12 @@ namespace OASystem.Domain.Dtos.Groups
         public int GroupId { get; set; }
     }
 
+    public class ConferenceAffairsDeleteSingleDto
+    {
+        public int UserId { get; set; }
+        public List<int> ids { get; set; }
+    }
+
     public class PermissionSettingDto
     {
         /// <summary>