Browse Source

提交

master
mahao 2 years ago
parent
commit
cdfa0bc7df
  1. 21
      src/WmsWebApi.Application/OtherZll/OtherZllService.cs

21
src/WmsWebApi.Application/OtherZll/OtherZllService.cs

@ -100,16 +100,6 @@ public class OtherZllService : ApplicationService, IOtherZllService
return result;
}
if (_dtoList != null && _dtoList.Count() > 0)
{
if (_otherZllConfigOptions.IsEnableErnamFilter == true)
{
//根据配置文件过滤ERNAM
List<string> ernamFilters = _otherZllConfigOptions.ErnamFilters;
_dtoList = _dtoList.FindAll(e => ernamFilters.Contains(e.ERNAM));
}
}
if (_dtoList == null || _dtoList.Count() <= 0)
{
bErr = true;
@ -126,6 +116,17 @@ public class OtherZllService : ApplicationService, IOtherZllService
if (_dtoList[0].ZDJLX == "20")
{
var _dtoDetails = _dtoList.Where(p => p.WERKS == "1000").ToList();
if (_dtoDetails != null || _dtoDetails.Count() > 0)
{
if (_otherZllConfigOptions.IsEnableErnamFilter == true)
{
//根据配置文件过滤ERNAM
List<string> ernamFilters = _otherZllConfigOptions.ErnamFilters;
_dtoDetails = _dtoDetails.FindAll(e => ernamFilters.Contains(e.ERNAM));
}
}
if (_dtoDetails == null || _dtoDetails.Count() == 0)
{
bErr = true;

Loading…
Cancel
Save