You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
3.0 KiB
86 lines
3.0 KiB
using BBWY.Client.Models;
|
|
using BBWY.Client.Models.APIModel;
|
|
using BBWY.Common.Http;
|
|
using BBWY.Common.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
using System.Text;
|
|
|
|
namespace BBWY.Client.APIServices.QiKu
|
|
{
|
|
public class PackTaskOverTimeDetailService : BaseApiService, IDenpendency
|
|
{
|
|
public PackTaskOverTimeDetailService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
|
{
|
|
|
|
|
|
|
|
}
|
|
public ApiResponse<SearchTaskListResponse> SearchTaskList(string skuId = null, string taskId = null
|
|
, string spuId = null, string orderSn = null,
|
|
TaskState? TaskState = null,
|
|
int pageIndex = 1,
|
|
int pageSize = 10
|
|
|
|
)
|
|
{
|
|
|
|
|
|
return SendRequest<SearchTaskListResponse>(globalContext.QKApiHost, "api/PackTask/SearchTaskList", new
|
|
{
|
|
|
|
orderSn,
|
|
spuId,
|
|
skuId,
|
|
taskId,
|
|
TaskState,
|
|
pageIndex,
|
|
pageSize,
|
|
ShopId = globalContext.User.Shop.ShopId.ToString(),
|
|
|
|
}, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 查询超时任务列表
|
|
/// </summary>
|
|
/// <param name="taskId"></param>
|
|
/// <returns></returns>
|
|
public ApiResponse<SearchOverTimeTaskResponse> SearchOverTimeTaskList(string ShopId, DateTime? StartTime, DateTime? EndTime, OverTimeTaskState? overTimeTaskState, OverTimeTaskType? OverTimeType, int? PageIndex, int? PageSize = 20)
|
|
{
|
|
return SendRequest<SearchOverTimeTaskResponse>(globalContext.QKApiHost, $"api/PackTaskOverTimeDetail/SearchOverTimeTaskList", new
|
|
{
|
|
ShopId,
|
|
StartTime,
|
|
EndTime,
|
|
OverTimeType= OverTimeType==0?null: OverTimeType,
|
|
PageIndex,
|
|
PageSize,
|
|
OverTimeTaskState= (overTimeTaskState == OverTimeTaskState.全部) ? null : overTimeTaskState,
|
|
}, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
// <summary>
|
|
/// 任务超时提交备注(解释超时原因)
|
|
/// </summary>
|
|
/// <param name="submitOverTimeMarkMsgRequest"></param>
|
|
/// <returns></returns>
|
|
public ApiResponse<object> SubmitOverTimeMarkMsg(TaskMessageType TaskType, long OverTimeTaskId, OverTimeType OverTimeType, string OverTimeRemarkMsg)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/PackTaskOverTimeDetail/SubmitOverTimeMarkMsg", new
|
|
{
|
|
TaskType,
|
|
OverTimeTaskId,
|
|
OverTimeType,
|
|
OverTimeRemarkMsg,
|
|
UserName=globalContext.User.Name,
|
|
|
|
}, null, HttpMethod.Post);
|
|
}
|
|
|
|
}
|
|
}
|
|
|