修改任务台账增加PKID检索

optimize
jianghaiqing 1 year ago
parent c762fec090
commit c61c5afd1f

@ -71,6 +71,9 @@ namespace Myshipping.Application
/// <example></example> /// <example></example>
public string Status { get; set; } public string Status { get; set; }
/// <summary>
/// 任务主键
/// </summary>
public string PKId { get; set; }
} }
} }

@ -284,5 +284,7 @@ namespace Myshipping.Application
/// <param name="queryTaskManageDto">查询条件</param> /// <param name="queryTaskManageDto">查询条件</param>
/// <returns>返回结果</returns> /// <returns>返回结果</returns>
//Task<List<TaskBaseInfoDto>> GetTaskList(QueryTaskManageDto queryTaskManageDto); //Task<List<TaskBaseInfoDto>> GetTaskList(QueryTaskManageDto queryTaskManageDto);
} }
} }

@ -1102,6 +1102,7 @@ namespace Myshipping.Application
.WhereIF(!string.IsNullOrWhiteSpace(QuerySearch.TaskCategory) && QuerySearch.TaskCategory == TaskStatLevelEnum.PUBLIC.ToString(), t => t.IS_PUBLIC == 1) .WhereIF(!string.IsNullOrWhiteSpace(QuerySearch.TaskCategory) && QuerySearch.TaskCategory == TaskStatLevelEnum.PUBLIC.ToString(), t => t.IS_PUBLIC == 1)
.WhereIF(!string.IsNullOrWhiteSpace(QuerySearch.TaskCategory) && QuerySearch.TaskCategory == TaskStatLevelEnum.PERSON.ToString(), t => t.IS_PUBLIC == 0 && t.IS_EXCEPT == 0) .WhereIF(!string.IsNullOrWhiteSpace(QuerySearch.TaskCategory) && QuerySearch.TaskCategory == TaskStatLevelEnum.PERSON.ToString(), t => t.IS_PUBLIC == 0 && t.IS_EXCEPT == 0)
.WhereIF(!string.IsNullOrWhiteSpace(QuerySearch.Status), t => t.STATUS.Equals(QuerySearch.Status)) .WhereIF(!string.IsNullOrWhiteSpace(QuerySearch.Status), t => t.STATUS.Equals(QuerySearch.Status))
.WhereIF(!string.IsNullOrWhiteSpace(QuerySearch.PKId), t => t.PK_ID.Equals(QuerySearch.PKId))
.OrderBy(entityOrderCol + (QuerySearch.descSort ? " desc " : " asc ")) .OrderBy(entityOrderCol + (QuerySearch.descSort ? " desc " : " asc "))
.ToPagedListAsync(QuerySearch.PageNo, QuerySearch.PageSize); .ToPagedListAsync(QuerySearch.PageNo, QuerySearch.PageSize);

Loading…
Cancel
Save