|
|
|
@ -44,7 +44,8 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info">服务项目详情</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> Save(ServiceProjectBaseDto info)
|
|
|
|
|
[HttpPost("/ServiceProject/Save")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> Save([FromBody] ServiceProjectBaseDto info)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
@ -151,7 +152,8 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info">服务项目详情</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SaveAndEnable(ServiceProjectBaseDto info)
|
|
|
|
|
[HttpPost("/ServiceProject/SaveAndEnable")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SaveAndEnable([FromBody]ServiceProjectBaseDto info)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
@ -178,13 +180,14 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkId">服务项目主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SetEnable(string pkId)
|
|
|
|
|
[HttpGet("/ServiceProject/SetEnable")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SetEnable([FromQuery] string pkId)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if(string.IsNullOrWhiteSpace(pkId))
|
|
|
|
|
if (string.IsNullOrWhiteSpace(pkId))
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Oh($"服务项目主键不能为空", typeof(InvalidOperationException));
|
|
|
|
|
}
|
|
|
|
@ -210,12 +213,12 @@ namespace Myshipping.Application
|
|
|
|
|
it.UpdatedTime,
|
|
|
|
|
it.UpdatedUserId,
|
|
|
|
|
it.UpdatedUserName
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
result.succ = true;
|
|
|
|
|
result.msg = "执行成功";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
@ -231,7 +234,8 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkId">服务项目主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SetUnEnable(string pkId)
|
|
|
|
|
[HttpGet("/ServiceProject/SetUnEnable")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SetUnEnable([FromQuery] string pkId)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
@ -283,7 +287,8 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkId">服务项目主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> Delete(string pkId)
|
|
|
|
|
[HttpGet("/ServiceProject/Delete")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> Delete([FromQuery] string pkId)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
@ -336,7 +341,8 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkId">服务项目主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> GetInfo(string pkId)
|
|
|
|
|
[HttpGet("/ServiceProject/GetInfo")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> GetInfo([FromQuery] string pkId)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
@ -374,7 +380,8 @@ namespace Myshipping.Application
|
|
|
|
|
/// <param name="queryItem">检索值</param>
|
|
|
|
|
/// <param name="topNum">最大返回行数(默认15)</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> QueryList(string queryItem, int topNum = 15)
|
|
|
|
|
[HttpGet("/ServiceProject/QueryList")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> QueryList([FromQuery] string queryItem, [FromQuery] int topNum = 15)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
@ -404,6 +411,7 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="QuerySearch">服务项目台账查询请求</param>
|
|
|
|
|
/// <returns>返回结果</returns>
|
|
|
|
|
[HttpGet("/ServiceProject/GetPage")]
|
|
|
|
|
public async Task<SqlSugarPagedList<ServiceProjectBasePageDto>> GetPageAsync(QueryServiceProjectBaseDto QuerySearch)
|
|
|
|
|
{
|
|
|
|
|
//制单日期
|
|
|
|
|