修复bug
This commit is contained in:
@@ -108,7 +108,7 @@ namespace WMS.Web.Repositories
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<(List<MoveBoxRecordQueryInfoResponse> list, int total)> GetListAsync(MoveBoxRecordQueryRequest dto, int companyId=0)
|
||||
public async Task<(List<MoveBoxRecordQueryInfoResponse> list, int total)> GetListAsync(MoveBoxRecordQueryRequest dto, int companyId = 0)
|
||||
{
|
||||
if (companyId == 0)
|
||||
companyId = _loginRepositories.CompanyId;
|
||||
@@ -116,7 +116,8 @@ namespace WMS.Web.Repositories
|
||||
if (!string.IsNullOrEmpty(dto.Creator))
|
||||
{
|
||||
var staffList = await _basicsRepositories.GetStaffListAsync(companyId);
|
||||
ids = staffList.Where(w => w.Name.Contains(dto.Creator)).Select(s => s.Id).ToList();
|
||||
if (staffList != null)
|
||||
ids = staffList.Where(w => w.Name.Contains(dto.Creator)).Select(s => s.Id).ToList();
|
||||
}
|
||||
|
||||
var query = _context.MoveBoxRecord
|
||||
@@ -160,7 +161,7 @@ namespace WMS.Web.Repositories
|
||||
|
||||
public async Task<(object obj, int total)> GetListField(MoveBoxRecordQueryRequest dto, int companyId)
|
||||
{
|
||||
return await GetListAsync(dto,companyId);
|
||||
return await GetListAsync(dto, companyId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user