Browse Source

修改pageid

yuanrf 1 year ago
parent
commit
95e04496f6

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

@@ -0,0 +1,28 @@
+using Microsoft.AspNetCore.Mvc;
+using OASystem.Domain.Dtos.CRM;
+using OASystem.Infrastructure.Repositories.CRM;
+
+namespace OASystem.API.Controllers
+{
+    public class MarketCustomerResourcesController : Controller
+    {
+        private readonly NewClientDataRepository _clientCompanyRepository;
+        /// <summary>
+        /// 初始化
+        /// </summary>
+        public MarketCustomerResourcesController(NewClientDataRepository clientCompanyRepository)
+        {
+            this._clientCompanyRepository = clientCompanyRepository;
+        }
+
+        public IActionResult ViewDataInit()
+        {
+            return Ok("");
+        }
+
+        public IActionResult QuerySearchData(NewClientDataQueryDto dto)
+        {
+            return Ok("");
+        }
+    }
+}

+ 39 - 0
OASystem/OASystem.Domain/Dtos/CRM/NewClientDataQueryDto.cs

@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OASystem.Domain.Dtos.CRM
+{
+    public class NewClientDataQueryDto
+    {
+        /// <summary>
+        /// 联系人
+        /// </summary>
+        public string Contact { get; set; }
+        //地区
+        public string Location { get; set; }
+        //单位
+        public string Client { get; set; }
+
+        //负责人
+        public int Userid { get; set; }
+        
+        //省域
+
+        //单独负责的客户 (只看老张的)
+
+        //权重
+        public char Weight { get; set; }
+
+
+        //客户级别(地市州)
+        public int Lvlid { get; set; }
+
+        //客户类别
+
+        //业务分类
+        public int Business { get; set; }
+    }
+}

+ 16 - 0
OASystem/OASystem.Infrastructure/Repositories/CRM/NewClientDataRepository.cs

@@ -0,0 +1,16 @@
+using OASystem.Domain.Entities.Customer;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OASystem.Infrastructure.Repositories.CRM
+{
+    public class NewClientDataRepository : BaseRepository<Crm_NewClientData, Crm_NewClientData>
+    {
+        public NewClientDataRepository(SqlSugarClient sqlSugar) :
+         base(sqlSugar)
+        { }
+    }
+}

+ 1 - 1
OASystem/OASystem.Infrastructure/Repositories/System/SystemMenuPermissionRepository.cs

@@ -146,7 +146,7 @@ namespace OASystem.Infrastructure.Repositories.System
                         {
                             arr.Add(new
                             {
-                                pageid = item.Key,
+                                pageId = item.Key,
                                 opList = item.Select(x=>x.Funid).ToList(),
                             });
                         }