diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/DictTreeOutput.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/DictTreeOutput.cs index aec94031..d4af7a24 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/DictTreeOutput.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/DictTreeOutput.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace DS.WMS.Core.Op.Dtos.ServiceProject +namespace DS.WMS.Core.Op.Dtos { /// /// 字典类型与字典值构造的树 diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/StatusSkuBaseQueryExtDto.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/StatusSkuBaseQueryExtDto.cs index fdd35824..5a86134a 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/StatusSkuBaseQueryExtDto.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/ServiceProject/StatusSkuBaseQueryExtDto.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace DS.WMS.Core.Op.Dtos.ServiceProject +namespace DS.WMS.Core.Op.Dtos { /// /// 服务项目状态台账查询扩展 diff --git a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowBaseService.cs b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowBaseService.cs index 749aec37..0bfbcd7f 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowBaseService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowBaseService.cs @@ -1,6 +1,5 @@ using DS.Module.Core; using DS.WMS.Core.Op.Dtos; -using DS.WMS.Core.Op.Dtos.ServiceProject; using NPOI.HSSF.Record.Chart; using System; using System.Collections.Generic; @@ -8,7 +7,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace Myshipping.Application +namespace DS.WMS.Core.Op.Interface { /// /// 服务流程 diff --git a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowManageService.cs b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowManageService.cs index 215ff2fc..8b1c4bde 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowManageService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IServiceWorkFlowManageService.cs @@ -8,7 +8,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace Myshipping.Application +namespace DS.WMS.Core.Op.Interface { /// /// 服务流程管理 diff --git a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusSkuBaseService.cs b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusSkuBaseService.cs index a082ab97..64d5612b 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusSkuBaseService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusSkuBaseService.cs @@ -6,12 +6,12 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace Myshipping.Application +namespace DS.WMS.Core.Op.Interface { /// /// 状态管理 /// - internal interface IStatusSkuBaseService + public interface IStatusSkuBaseService { /// /// 保存 diff --git a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusTriggerBaseService.cs b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusTriggerBaseService.cs index 9b117170..de1ed995 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusTriggerBaseService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Interface/ServiceProject/IStatusTriggerBaseService.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace Myshipping.Application +namespace DS.WMS.Core.Op.Interface { /// /// 状态触发器 diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/ServiceProject/StatusSkuBaseService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/ServiceProject/StatusSkuBaseService.cs index 865f6861..4e53f621 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/ServiceProject/StatusSkuBaseService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/ServiceProject/StatusSkuBaseService.cs @@ -1,5 +1,4 @@ -using Myshipping.Application; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -21,9 +20,9 @@ using Newtonsoft.Json; using DS.WMS.Core.Invoice.Dtos; using Mapster; using LanguageExt.Common; -using DS.WMS.Core.Op.Dtos.ServiceProject; using DS.Module.Core.Extensions; using DS.WMS.Core.Op.Dtos.Enum; +using DS.WMS.Core.Op.Interface; namespace DS.WMS.Core.Op.Method { diff --git a/ds-wms-service/DS.WMS.OpApi/Controllers/StatusSkuBaseManageController.cs b/ds-wms-service/DS.WMS.OpApi/Controllers/StatusSkuBaseManageController.cs new file mode 100644 index 00000000..703c9b5c --- /dev/null +++ b/ds-wms-service/DS.WMS.OpApi/Controllers/StatusSkuBaseManageController.cs @@ -0,0 +1,127 @@ +using DS.Module.Core; +using DS.WMS.Core.Op.Dtos; +using DS.WMS.Core.Op.Interface; +using DS.WMS.Core.Op.Method; +using Microsoft.AspNetCore.Mvc; +using static iText.StyledXmlParser.Jsoup.Select.Evaluator; + +namespace DS.WMS.OpApi.Controllers +{ + /// + /// 服务项目状态管理 + /// + public class StatusSkuBaseManageController : ApiController + { + private readonly IStatusSkuBaseService _statusSkuBaseService; + + public StatusSkuBaseManageController(IStatusSkuBaseService statusSkuBaseService) + { + _statusSkuBaseService = statusSkuBaseService; + } + + #region 保存 + /// + /// 保存 + /// + /// 状态详情 + /// 返回回执 + [HttpPost("/StatusSkuBase/Save")] + public async Task> Save([FromBody] StatusSkuBaseDto info) + { + return await _statusSkuBaseService.Save(info); + } + #endregion + + #region 保存并启用 + /// + /// 保存并启用 + /// + /// 状态详情 + /// 返回回执 + [HttpPost("/StatusSkuBase/SaveAndEnable")] + public async Task> SaveAndEnable([FromBody] StatusSkuBaseDto info) + { + return await _statusSkuBaseService.SaveAndEnable(info); + } + #endregion + + #region 启用 + /// + /// 启用 + /// + /// 状态主键数组 + /// 返回回执 + [HttpPost("/StatusSkuBase/SetEnable")] + public async Task> SetEnable([FromBody] string[] ids) + { + return await _statusSkuBaseService.SetEnable(ids); + } + #endregion + + #region 取消启用 + /// + /// 取消启用 + /// + /// 状态主键数组 + /// 返回回执 + [HttpPost("/StatusSkuBase/SetUnEnable")] + public async Task> SetUnEnable([FromBody] string[] ids) + { + return await _statusSkuBaseService.SetUnEnable(ids); + } + #endregion + + #region 删除 + /// + /// 删除 + /// + /// 状态主键数组 + /// 返回回执 + [HttpPost("/StatusSkuBase/Delete")] + public async Task> Delete([FromBody] string[] ids) + { + return await _statusSkuBaseService.Delete(ids); + } + #endregion + + #region 获取状态详情 + /// + /// 获取状态详情 + /// + /// 状态主键 + /// 返回回执 + [HttpGet("/StatusSkuBase/GetInfo")] + public async Task> GetInfo(string id) + { + return await _statusSkuBaseService.GetInfo(id); + } + #endregion + + #region 检索状态列表 + /// + /// 检索状态列表 + /// + /// 检索值 + /// 最大返回行数(默认15) + /// 返回回执 + [HttpGet("/StatusSkuBase/QueryList")] + public async Task>> QueryList([FromQuery] string queryItem, [FromQuery] int topNum = 15) + { + return await _statusSkuBaseService.QueryList(queryItem, topNum); + } + #endregion + + #region 状态台账查询 + /// + /// 状态台账查询 + /// + /// 状态台账查询请求 + /// 返回结果 + [HttpPost("/StatusSkuBase/GetPage")] + public async Task>> GetPageAsync([FromBody] PageRequest querySearch) + { + return await _statusSkuBaseService.GetPageAsync(querySearch); + } + #endregion + } +}