Pārlūkot izejas kodu

添加市场客户资料配置

yuanrf 1 nedēļu atpakaļ
vecāks
revīzija
5c67bcdb56

+ 28 - 0
OASystem/OASystem.Api/Controllers/MarketCustomerResourcesController.cs

@@ -1188,6 +1188,34 @@ namespace OASystem.API.Controllers
             return Ok(jw);
         }
 
+
+        [HttpPost]
+        public async Task<IActionResult> QueryUnlockDropList()
+        {
+            var jw = JsonView(true);
+            var userList = await _sqlSugar.Queryable<Sys_SetData>().FirstAsync
+                (x => x.Id == 1434 && x.IsDel == 0);
+
+            try
+            {
+                if (userList != null)
+                {
+                    var result = JsonConvert.DeserializeObject<List<int>>(userList.Remark);
+                    jw.Data = result;
+                }
+            }
+            catch (Exception)
+            {
+                jw.Code = 500;
+                jw.Msg = "数据源错误!";
+                jw.Data = new List<int>(1);
+            }
+
+            return  Ok(jw);
+        }
+
+
+
         [HttpPost]
         public IActionResult InsertDataExcel(InsertDataExcelDto dto)
         {