修改服务项目状态管理

dev
jianghaiqing 2 weeks ago
parent 380bfbc0a2
commit 95dda81a9f

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos.ServiceProject namespace DS.WMS.Core.Op.Dtos
{ {
/// <summary> /// <summary>
/// 字典类型与字典值构造的树 /// 字典类型与字典值构造的树

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos.ServiceProject namespace DS.WMS.Core.Op.Dtos
{ {
/// <summary> /// <summary>
/// 服务项目状态台账查询扩展 /// 服务项目状态台账查询扩展

@ -1,6 +1,5 @@
using DS.Module.Core; using DS.Module.Core;
using DS.WMS.Core.Op.Dtos; using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Dtos.ServiceProject;
using NPOI.HSSF.Record.Chart; using NPOI.HSSF.Record.Chart;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -8,7 +7,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Myshipping.Application namespace DS.WMS.Core.Op.Interface
{ {
/// <summary> /// <summary>
/// 服务流程 /// 服务流程

@ -8,7 +8,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Myshipping.Application namespace DS.WMS.Core.Op.Interface
{ {
/// <summary> /// <summary>
/// 服务流程管理 /// 服务流程管理

@ -6,12 +6,12 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Myshipping.Application namespace DS.WMS.Core.Op.Interface
{ {
/// <summary> /// <summary>
/// 状态管理 /// 状态管理
/// </summary> /// </summary>
internal interface IStatusSkuBaseService public interface IStatusSkuBaseService
{ {
/// <summary> /// <summary>
/// 保存 /// 保存

@ -6,7 +6,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Myshipping.Application namespace DS.WMS.Core.Op.Interface
{ {
/// <summary> /// <summary>
/// 状态触发器 /// 状态触发器

@ -1,5 +1,4 @@
using Myshipping.Application; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@ -21,9 +20,9 @@ using Newtonsoft.Json;
using DS.WMS.Core.Invoice.Dtos; using DS.WMS.Core.Invoice.Dtos;
using Mapster; using Mapster;
using LanguageExt.Common; using LanguageExt.Common;
using DS.WMS.Core.Op.Dtos.ServiceProject;
using DS.Module.Core.Extensions; using DS.Module.Core.Extensions;
using DS.WMS.Core.Op.Dtos.Enum; using DS.WMS.Core.Op.Dtos.Enum;
using DS.WMS.Core.Op.Interface;
namespace DS.WMS.Core.Op.Method namespace DS.WMS.Core.Op.Method
{ {

@ -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
{
/// <summary>
/// 服务项目状态管理
/// </summary>
public class StatusSkuBaseManageController : ApiController
{
private readonly IStatusSkuBaseService _statusSkuBaseService;
public StatusSkuBaseManageController(IStatusSkuBaseService statusSkuBaseService)
{
_statusSkuBaseService = statusSkuBaseService;
}
#region 保存
/// <summary>
/// 保存
/// </summary>
/// <param name="info">状态详情</param>
/// <returns>返回回执</returns>
[HttpPost("/StatusSkuBase/Save")]
public async Task<DataResult<string>> Save([FromBody] StatusSkuBaseDto info)
{
return await _statusSkuBaseService.Save(info);
}
#endregion
#region 保存并启用
/// <summary>
/// 保存并启用
/// </summary>
/// <param name="info">状态详情</param>
/// <returns>返回回执</returns>
[HttpPost("/StatusSkuBase/SaveAndEnable")]
public async Task<DataResult<string>> SaveAndEnable([FromBody] StatusSkuBaseDto info)
{
return await _statusSkuBaseService.SaveAndEnable(info);
}
#endregion
#region 启用
/// <summary>
/// 启用
/// </summary>
/// <param name="ids">状态主键数组</param>
/// <returns>返回回执</returns>
[HttpPost("/StatusSkuBase/SetEnable")]
public async Task<DataResult<string>> SetEnable([FromBody] string[] ids)
{
return await _statusSkuBaseService.SetEnable(ids);
}
#endregion
#region 取消启用
/// <summary>
/// 取消启用
/// </summary>
/// <param name="ids">状态主键数组</param>
/// <returns>返回回执</returns>
[HttpPost("/StatusSkuBase/SetUnEnable")]
public async Task<DataResult<string>> SetUnEnable([FromBody] string[] ids)
{
return await _statusSkuBaseService.SetUnEnable(ids);
}
#endregion
#region 删除
/// <summary>
/// 删除
/// </summary>
/// <param name="ids">状态主键数组</param>
/// <returns>返回回执</returns>
[HttpPost("/StatusSkuBase/Delete")]
public async Task<DataResult<string>> Delete([FromBody] string[] ids)
{
return await _statusSkuBaseService.Delete(ids);
}
#endregion
#region 获取状态详情
/// <summary>
/// 获取状态详情
/// </summary>
/// <param name="id">状态主键</param>
/// <returns>返回回执</returns>
[HttpGet("/StatusSkuBase/GetInfo")]
public async Task<DataResult<StatusSkuBaseShowDto>> GetInfo(string id)
{
return await _statusSkuBaseService.GetInfo(id);
}
#endregion
#region 检索状态列表
/// <summary>
/// 检索状态列表
/// </summary>
/// <param name="queryItem">检索值</param>
/// <param name="topNum">最大返回行数默认15</param>
/// <returns>返回回执</returns>
[HttpGet("/StatusSkuBase/QueryList")]
public async Task<DataResult<List<StatusSkuBaseDto>>> QueryList([FromQuery] string queryItem, [FromQuery] int topNum = 15)
{
return await _statusSkuBaseService.QueryList(queryItem, topNum);
}
#endregion
#region 状态台账查询
/// <summary>
/// 状态台账查询
/// </summary>
/// <param name="querySearch">状态台账查询请求</param>
/// <returns>返回结果</returns>
[HttpPost("/StatusSkuBase/GetPage")]
public async Task<DataResult<List<StatusSkuBasePageDto>>> GetPageAsync([FromBody] PageRequest querySearch)
{
return await _statusSkuBaseService.GetPageAsync(querySearch);
}
#endregion
}
}
Loading…
Cancel
Save