Browse Source

添加复制代码

yuanrf 8 months ago
parent
commit
d929eb3e96
1 changed files with 26 additions and 0 deletions
  1. 26 0
      OASystem/OASystem.Api/Controllers/GroupsController.cs

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

@@ -7739,6 +7739,32 @@ namespace OASystem.API.Controllers
             JsonView jw = null;
             bool isTrue = false;
 
+            #region 复制团组成本
+            //if (dto.Diid == 2581)
+            //{
+            //    dto.Diid = 2599;
+            //    dto.CheckBoxs.ForEach(x =>
+            //    {
+            //        x.Diid = 2599;
+            //    });
+
+            //    dto.GroupCosts.ForEach(x =>
+            //    {
+            //        x.Diid = 2599;
+            //    });
+
+            //    dto.CostTypeHotelNumbers.ForEach(x =>
+            //    {
+            //        x.Diid = 2599;
+            //    });
+
+            //    dto.GroupCostParameters.ForEach(x =>
+            //    {
+            //        x.DiId = 2599;
+            //    });
+            //}
+            #endregion
+
             var Grp_groups = _mapper.Map<List<Grp_GroupCost>>(dto.GroupCosts);
             Grp_groups.ForEach(x => { x.CreateUserId = dto.Userid; x.CreateTime = DateTime.Now; }); //.ToString("yyyy-MM-dd HH:mm:ss")
             var Grp_CheckBoxs = _mapper.Map<List<Grp_CheckBoxs>>(dto.CheckBoxs);