Kaynağa Gözat

添加世运会数据

yuanrf 2 gün önce
ebeveyn
işleme
45eddbd604

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

@@ -5471,6 +5471,35 @@ FROM
         }
         #endregion
 
+        [HttpGet]
+        public IActionResult WorldGamesData()
+        {
+            var setData = _sqlSugar.Queryable<Sys_SetData>()
+                                    .Where(x => x.IsDel == 0 && x.STid == 117)
+                                    .ToList();
+
+            var resultArr = new List<DecreasePaymentsWorldGamesDataView>();
+
+            foreach (var item in setData)
+            {
+                resultArr.Add(new DecreasePaymentsWorldGamesDataView
+                {
+                    Data = new SetDataView
+                    {
+                        Id = item.Id,
+                        Name = item.Name,
+                        Remark = item.Remark,
+                        STid = item.STid,
+                    },
+                    Child = JsonConvert.DeserializeObject<List<string>>(item.Remark)
+                });
+            }
+
+            return Ok(JsonView(true, "success", resultArr));
+        }
+
+
+
         #endregion
 
         #region 文件上传、删除

+ 16 - 0
OASystem/OASystem.Domain/ViewModels/Groups/DecreasePaymentsWorldGamesDataView.cs

@@ -0,0 +1,16 @@
+using OASystem.Domain.ViewModels.System;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OASystem.Domain.ViewModels.Groups
+{
+    public class DecreasePaymentsWorldGamesDataView
+    {
+        public SetDataView Data { get; set; } 
+
+        public List<string> Child { get;set; }
+    }
+}