From 5931312ff367429d9e267a182bfcbbd6770e2602 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Wed, 10 Oct 2018 14:33:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=8E=89=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E3=80=82=E5=8F=AA=E6=9C=89=E7=99=BD=E6=9D=A1?= =?UTF-8?q?=E5=92=8C=E5=88=86=E5=89=B2=E5=93=81=E4=BC=A0=E5=88=B0MES?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs b/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs index e0e3499..12458ad 100644 --- a/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs +++ b/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs @@ -98,8 +98,8 @@ namespace BWP.B3QingDaoWanFu.Tasks query.Columns.Add(DQSelectColumn.Field("Flag", scan)); query.Where.Conditions.Add(DQCondition.And(DQCondition.GreaterThanOrEqual("BillState", 单据状态.已审核), DQCondition.IsNull(DQExpression.Field(relate, "SaleOutStore_ID")), DQCondition.IsNotNull(DQExpression.Field(scan, "ID")))); - query.Where.Conditions.Add(DQCondition.And(DQCondition.Or(DQCondition.EQ(scan, "Flag", -1), DQCondition.GreaterThan(scan, "Weight", 0)), DQCondition.GreaterThan(scan, "Number", 0))); - query.Where.Conditions.Add(DQCondition.InEQ(scan, "Flag", 2)); + + query.Where.Conditions.Add(DQCondition.Or(DQCondition.EQ(scan, "Flag", 0), DQCondition.EQ(scan, "Flag", 1))); query.OrderBy.Expressions.Add(DQOrderByExpression.Create(main, "ID")); using (var session = Dmo.NewSession()) {