tangjiang 8 месяцев назад
Родитель
Сommit
11ddef6eb8

+ 0 - 26
src/Hotline.Api/Controllers/OrderController.cs

@@ -6,18 +6,14 @@ using Hotline.Application.FlowEngine;
 using Hotline.Application.Orders;
 using Hotline.Application.Quality;
 using Hotline.Caching.Interfaces;
-using Hotline.CallCenter.Configs;
 using Hotline.Configurations;
-using Hotline.ContingencyManagement;
 using Hotline.ContingencyManagement.Notifies;
-using Hotline.Enterprise;
 using Hotline.EventBus;
 using Hotline.File;
 using Hotline.FlowEngine.Definitions;
 using Hotline.FlowEngine.WorkflowModules;
 using Hotline.FlowEngine.Workflows;
 using Hotline.Import;
-using Hotline.JudicialManagement.Notifies;
 using Hotline.Orders;
 using Hotline.Orders.Notifications;
 using Hotline.OrderTranspond;
@@ -31,7 +27,6 @@ using Hotline.Settings;
 using Hotline.Settings.Hotspots;
 using Hotline.Settings.TimeLimits;
 using Hotline.Share.Dtos;
-using Hotline.Share.Dtos.Enterprise;
 using Hotline.Share.Dtos.FlowEngine;
 using Hotline.Share.Dtos.FlowEngine.Workflow;
 using Hotline.Share.Dtos.Order;
@@ -44,7 +39,6 @@ using Hotline.Share.Enums.Order;
 using Hotline.Share.Enums.Push;
 using Hotline.Share.Enums.Quality;
 using Hotline.Share.Enums.Settings;
-using Hotline.Share.Mq;
 using Hotline.Share.Requests;
 using Hotline.Tools;
 using Hotline.Users;
@@ -57,7 +51,6 @@ using Microsoft.Extensions.Options;
 using MiniExcelLibs;
 using MongoDB.Driver;
 using SqlSugar;
-using System.Threading;
 using XF.Domain.Authentications;
 using XF.Domain.Cache;
 using XF.Domain.Entities;
@@ -113,7 +106,6 @@ public class OrderController : BaseController
     private readonly IRepository<OrderSpecial> _orderSpecialRepository;
     private readonly IRepository<WorkflowTrace> _workflowTraceRepository;
     private readonly IOrderApplication _orderApplication;
-    private readonly IEnterpriseService _enterpriseService;
     private readonly IPushDomainService _pushDomainService;
     private readonly ILogger<OrderController> _logger;
     private readonly ITypedCache<YbEnterpriseToken> _cacheResponse;
@@ -172,7 +164,6 @@ public class OrderController : BaseController
         IRepository<OrderSpecial> orderSpecialRepository,
         IRepository<WorkflowTrace> workflowTraceRepository,
         IOrderApplication orderApplication,
-        IEnterpriseService enterpriseService,
         IPushDomainService pushDomainService,
         ILogger<OrderController> logger,
         ITypedCache<YbEnterpriseToken> cacheResponse,
@@ -232,7 +223,6 @@ public class OrderController : BaseController
         _workflowTraceRepository = workflowTraceRepository;
         _logger = logger;
         _orderApplication = orderApplication;
-        _enterpriseService = enterpriseService;
         _pushDomainService = pushDomainService;
         _cacheResponse = cacheResponse;
         _orderSendBackAuditRepository = orderSendBackAuditRepository;
@@ -5673,22 +5663,6 @@ public class OrderController : BaseController
 
     #endregion
 
-    #region 获取企业信息
-
-    /// <summary>
-    /// 获取企业信息
-    /// </summary>
-    /// <param name="dto"></param>
-    /// <returns></returns>
-    [HttpGet("enterprise/list")]
-    [LogFilter("查询企业列表")]
-    public async Task<YbEnterprisePaged> QueryYbEnterprises([FromQuery] PagedKeywordRequest dto)
-    {
-        return await _enterpriseService.QueryYbEnterprisesAsync(dto.Keyword!, dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
-    }
-
-    #endregion
-
     #region 导入工单
 
     /// <summary>

+ 33 - 0
src/Hotline.Api/Controllers/YiBin/EnterprisesController.cs

@@ -0,0 +1,33 @@
+using Hotline.Api.Filter;
+using Hotline.Enterprise;
+using Hotline.Share.Dtos.Enterprise;
+using Hotline.Share.Requests;
+using Microsoft.AspNetCore.Mvc;
+
+namespace Hotline.Api.Controllers.YiBin
+{
+    public class EnterprisesController : BaseController
+    {
+        private readonly IEnterpriseService _enterpriseService;
+
+        public EnterprisesController(IEnterpriseService enterpriseService)
+        {
+            _enterpriseService = enterpriseService;
+        }
+        #region 获取企业信息
+
+        /// <summary>
+        /// 获取企业信息
+        /// </summary>
+        /// <param name="dto"></param>
+        /// <returns></returns>
+        [HttpGet("enterprise/list")]
+        [LogFilter("查询企业列表")]
+        public async Task<YbEnterprisePaged> QueryYbEnterprises([FromQuery] PagedKeywordRequest dto)
+        {
+            return await _enterpriseService.QueryYbEnterprisesAsync(dto.Keyword!, dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
+        }
+
+        #endregion
+    }
+}