|
|
@ -159,18 +159,15 @@ namespace Win.Sfs.SettleAccount.Entities.Prices |
|
|
|
virtual public async Task<string> ImportAsync([FromForm] IFormFileCollection files,string version) |
|
|
|
{ |
|
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var result = await _exportImporter.UploadExcelImport<PriceListBJImportDto>(files, _excelImportService); |
|
|
|
|
|
|
|
|
|
|
|
List<string> _checkls = new List<string>(); |
|
|
|
_checkls.Add("100001"); |
|
|
|
_checkls.Add("100053"); |
|
|
|
_checkls.Add("100113"); |
|
|
|
|
|
|
|
// _checkls.Add("200067");
|
|
|
|
result = result.Where(p => _checkls.Contains(p.CustomerCode)).ToList(); |
|
|
|
|
|
|
|
var entityList = ObjectMapper.Map<List<PriceListBJImportDto>, List<PriceListBJ>>(result); |
|
|
|
var _ls = entityList.Where(p=>p.EndDate.ToString().Contains("9999")).OrderByDescending(p => p.BeginDate).GroupBy(p => new { p.MaterialCode, p.CustomerCode,p.Type }).Select(p=>p.FirstOrDefault()); |
|
|
|
|
|
|
|