fix 导优
This commit is contained in:
@@ -134,8 +134,14 @@ public class DeviceService : IDeviceService
|
||||
var lst = request.Imports;
|
||||
var places = await _dbContext.Queryable<BusinessPlaceEntity>().ToListAsync();
|
||||
|
||||
foreach (var form in lst)
|
||||
for (int i = 0; i < lst.Count; i++)
|
||||
{
|
||||
var form = lst[i];
|
||||
if (form.UniqueNo.IsEmpty())
|
||||
{
|
||||
errs.Add($"第{i+1}条的第一列的设备唯一码不能缺少!");
|
||||
continue;
|
||||
}
|
||||
if (form.PlaceeCode != null)
|
||||
{
|
||||
var place = places.Where(x => x.Code == form.PlaceeCode).FirstOrDefault();
|
||||
|
||||
Reference in New Issue
Block a user