diff --git a/ZR.Service/mes/ql/PLRawMaterialService.cs b/ZR.Service/mes/ql/PLRawMaterialService.cs index 25eab44c..05dac3a5 100644 --- a/ZR.Service/mes/ql/PLRawMaterialService.cs +++ b/ZR.Service/mes/ql/PLRawMaterialService.cs @@ -6,6 +6,7 @@ using ZR.Model.MES.ql; using ZR.Model.MES.wms; using ZR.Model.MES.wms.Dto; using ZR.Service.mes.ql.IService; +using static Org.BouncyCastle.Crypto.Engines.SM2Engine; namespace ZR.Service.mes.ql { @@ -70,7 +71,7 @@ namespace ZR.Service.mes.ql .AndIF(starttime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime >= starttime.ToLocalTime()) .AndIF(endTime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime <= endTime.ToLocalTime()) .AndIF(!string.IsNullOrEmpty(pci), it => it.Pci.Contains(pci)) - .AndIF(!string.IsNullOrEmpty(colorCode), it => it.Pci.Contains(colorCode)) + .AndIF(!string.IsNullOrEmpty(colorCode), it =>it.Code.Contains(colorCode)) .AndIF(!string.IsNullOrEmpty(description), it => it.Description.Contains(description)) .ToExpression();