增加了初始数据处理
This commit is contained in:
@@ -161,13 +161,23 @@ namespace BarCode.Web.Repositories
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <param name="strUpdate">更新而使用的</param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public async Task<List<SerialNumberGenerateRecord>> GetEntityList(List<int> ids)
|
||||
public async Task<List<SerialNumberGenerateRecord>> GetEntityList(List<int> ids,string strUpdate)
|
||||
{
|
||||
return await _context.SerialNumberGenerateRecord.AsNoTracking()
|
||||
.Where(f => ids.Contains(f.Id))
|
||||
.ToListAsync();
|
||||
if(strUpdate=="1")
|
||||
{
|
||||
return await _context.SerialNumberGenerateRecord.AsNoTracking()
|
||||
.Where(f => f.IsTwo==3)
|
||||
.ToListAsync();
|
||||
}
|
||||
else
|
||||
{
|
||||
return await _context.SerialNumberGenerateRecord.AsNoTracking()
|
||||
.Where(f => ids.Contains(f.Id))
|
||||
.ToListAsync();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user