From 06edc9975060d943a701f7bf8c56915cd19438f0 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Wed, 20 Nov 2024 17:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=8D=E5=8A=A1=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=B0=83=E7=94=A8=E6=8E=A7=E5=88=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ServiceWorkFlowBaseController.cs | 2 +- .../ServiceWorkFlowManageController.cs | 187 ++++++++++++++++++ 2 files changed, 188 insertions(+), 1 deletion(-) create mode 100644 ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowManageController.cs diff --git a/ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowBaseController.cs b/ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowBaseController.cs index 647aaf15..6d50b6a0 100644 --- a/ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowBaseController.cs +++ b/ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowBaseController.cs @@ -118,7 +118,7 @@ namespace DS.WMS.OpApi.Controllers /// /// 服务流程台账查询请求 /// 返回结果 - [HttpGet("GetPage")] + [HttpPost("GetPage")] public async Task>> GetPageAsync([FromBody] PageRequest querySearch) { return await _serviceWorkFlowBaseService.GetPageAsync(querySearch); diff --git a/ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowManageController.cs b/ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowManageController.cs new file mode 100644 index 00000000..47907605 --- /dev/null +++ b/ds-wms-service/DS.WMS.OpApi/Controllers/ServiceWorkFlowManageController.cs @@ -0,0 +1,187 @@ +using DS.Module.Core; +using DS.Module.DjyServiceStatus; +using DS.WMS.Core.Op.Dtos; +using DS.WMS.Core.Op.Interface; +using Microsoft.AspNetCore.Mvc; + +namespace DS.WMS.OpApi.Controllers +{ + public class ServiceWorkFlowManageController : ApiController + { + private readonly IServiceWorkFlowManageService _serviceWorkFlowManageService; + + public ServiceWorkFlowManageController(IServiceWorkFlowManageService serviceWorkFlowManageService) + { + _serviceWorkFlowManageService = serviceWorkFlowManageService; + } + + #region 推送状态 + /// + /// 推送状态 + /// + /// 服务流程报文详情 + /// 返回回执 + [HttpPost("PushStatus")] + public async Task PushStatus([FromBody] TrackingMessageInfo info) + { + return await _serviceWorkFlowManageService.PushStatus(info); + } + #endregion + + #region 单票单服务项目查询 + /// + /// 单票单服务项目查询 + /// + /// 查询服务流程详情 + /// 返回回执 + [HttpPost("QuerySingleBusinessPerServiceProject")] + public async Task>> QuerySingleBusinessPerServiceProject([FromBody] TrackingQueryMessageInfo info) + { + return await _serviceWorkFlowManageService.QuerySingleBusinessPerServiceProject(info); + } + #endregion + + #region 单票所有相关服务项目查询 + /// + /// 单票所有相关服务项目查询 + /// + /// 查询服务流程详情 + /// 返回回执 + [HttpPost("QuerySingleBusinessAll")] + public async Task>> QuerySingleBusinessAll([FromBody] TrackingQueryMessageInfo info) + { + return await _serviceWorkFlowManageService.QuerySingleBusinessAll(info); + } + #endregion + + #region 取消状态 + /// + /// 取消状态 + /// + /// 服务流程报文详情 + /// 返回回执 + [HttpPost("CancelStatus")] + public async Task CancelStatus([FromBody] TrackingMessageInfo info) + { + return await _serviceWorkFlowManageService.CancelStatus(info); + } + #endregion + + #region 查询当前租户下可用服务项目与状态详情 + /// + /// 查询当前租户下可用服务项目与状态详情 + /// + /// 查询服务项目请求报文 + /// 返回回执 + [HttpPost("QueryServiceInfo")] + public async Task>> QueryServiceInfo([FromBody] TrackingQueryMessageInfo info) + { + return await _serviceWorkFlowManageService.QueryServiceInfo(info); + } + #endregion + + #region 检索已选中并且可用的服务项目列表 + /// + /// 检索已选中并且可用的服务项目列表 + /// + /// 查询服务项目和状态详情 + /// 返回回执 + [HttpPost("GetEnableProjectList")] + public async Task>> GetEnableProjectList([FromBody] QueryServiceProjectWithStatus model) + { + return await _serviceWorkFlowManageService.GetEnableProjectList(model); + } + #endregion + + #region 检索服务项目下的状态列表 + /// + /// 检索服务项目下的状态列表 + /// + /// 查询服务项目和状态详情 + /// 返回回执 + [HttpPost("GetEnableStatusListByProject")] + public async Task>> GetEnableStatusListByProject([FromBody] QueryServiceProjectWithStatus model) + { + return await _serviceWorkFlowManageService.GetEnableStatusListByProject(model); + } + #endregion + + #region 单票检索服务项目下的状态列表 + /// + /// 单票检索服务项目下的状态列表 + /// + /// 查询服务项目和状态详情 + /// 返回回执 + [HttpPost("GetEnableStatusListByBusiness")] + public async Task>> GetEnableStatusListByBusiness([FromBody] QueryServiceProjectWithStatus model) + { + return await _serviceWorkFlowManageService.GetEnableStatusListByBusiness(model); + } + #endregion + + #region 保存服务状态 + /// + /// 保存服务状态 + /// + /// 修改服务状态详情 + /// 返回回执 + [HttpPost("SaveServiceStatus")] + public async Task SaveServiceStatus([FromBody] ModifyServiceProjectStatusDto model) + { + return await _serviceWorkFlowManageService.SaveServiceStatus(model); + } + #endregion + + #region 取消服务状态 + /// + /// 取消服务状态 + /// + /// 修改服务状态详情 + /// 返回回执 + [HttpPost("CancelServiceStatus")] + public async Task CancelServiceStatus([FromBody] ModifyServiceProjectStatusDto model) + { + return await _serviceWorkFlowManageService.CancelServiceStatus(model); + } + #endregion + + #region 批量检索服务项目下的状态列表 + /// + /// 批量检索服务项目下的状态列表 + /// + /// 批量查询服务项目和状态详情 + /// 返回回执 + [HttpPost("GetEnableStatusListByBusinessBatch")] + public async Task>> GetEnableStatusListByBusinessBatch([FromBody] QueryServiceProjectWithStatusBatch model) + { + return await _serviceWorkFlowManageService.GetEnableStatusListByBusinessBatch(model); + } + #endregion + + #region 检索已选中并且可用的服务项目列表(标准) + /// + /// 检索已选中并且可用的服务项目列表(标准) + /// + /// 查询服务项目和状态详情 + /// 返回回执 + [HttpPost("GetEnableProjectListCommon")] + public async Task>> GetEnableProjectListCommon([FromBody] EmbedQueryServiceProjectWithStatus model) + { + return await _serviceWorkFlowManageService.GetEnableProjectListCommon(model); + } + #endregion + + #region 单票检索服务项目下的状态列表(标准) + /// + /// 单票检索服务项目下的状态列表(标准) + /// + /// 查询服务项目和状态详情 + /// 返回回执 + [HttpPost("GetEnableStatusListByBusinessCommon")] + public async Task>> GetEnableStatusListByBusinessCommon([FromBody] EmbedQueryServiceProjectWithStatus model) + { + return await _serviceWorkFlowManageService.GetEnableStatusListByBusinessCommon(model); + } + #endregion + } +}