|
@ -163,13 +163,6 @@ namespace Win.Sfs.SettleAccount.Entities.Prices |
|
|
|
|
|
|
|
|
var result = await _exportImporter.UploadExcelImport<PriceListBJImportDto>(files, _excelImportService); |
|
|
var result = await _exportImporter.UploadExcelImport<PriceListBJImportDto>(files, _excelImportService); |
|
|
|
|
|
|
|
|
var list=result.Where(p => p.Type == 20).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var entityList = ObjectMapper.Map<List<PriceListBJImportDto>, List<PriceListBJ>>(result); |
|
|
var entityList = ObjectMapper.Map<List<PriceListBJImportDto>, List<PriceListBJ>>(result); |
|
|
var _ls = entityList.Where(p=>p.EndDate.ToString().Contains("9999")).GroupBy(p => new { p.MaterialCode, p.CustomerCode,p.Type }).Select(p=>p.FirstOrDefault()); |
|
|
var _ls = entityList.Where(p=>p.EndDate.ToString().Contains("9999")).GroupBy(p => new { p.MaterialCode, p.CustomerCode,p.Type }).Select(p=>p.FirstOrDefault()); |
|
|
|
|
|
|
|
@ -177,6 +170,9 @@ namespace Win.Sfs.SettleAccount.Entities.Prices |
|
|
{ |
|
|
{ |
|
|
itm.Update(GuidGenerator.Create(),version); |
|
|
itm.Update(GuidGenerator.Create(),version); |
|
|
} |
|
|
} |
|
|
|
|
|
_ls=_ls.Where(p => p.Type == 20).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await _mng.ImportAsync(_ls.ToList(), version); |
|
|
await _mng.ImportAsync(_ls.ToList(), version); |
|
|
return ApplicationConsts.SuccessStr; |
|
|
return ApplicationConsts.SuccessStr; |
|
|
} |
|
|
} |
|
|