From f8ff0b753d57aee0f91ae4900f3518a40ba65426 Mon Sep 17 00:00:00 2001 From: mzr <1562242162@qq.com> Date: Mon, 28 Oct 2024 14:46:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B0=E8=B4=A7=E6=A3=80=E9=AA=8C=E5=8D=95-?= =?UTF-8?q?=E6=94=B6=E5=9B=9E-=E5=BA=93=E5=AD=98=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nc/impl/pu/dhjyd/dhjydmaster/DhjydMasterVOServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pu/src/private/nc/impl/pu/dhjyd/dhjydmaster/DhjydMasterVOServiceImpl.java b/pu/src/private/nc/impl/pu/dhjyd/dhjydmaster/DhjydMasterVOServiceImpl.java index 7fb34bf..fd08ce7 100644 --- a/pu/src/private/nc/impl/pu/dhjyd/dhjydmaster/DhjydMasterVOServiceImpl.java +++ b/pu/src/private/nc/impl/pu/dhjyd/dhjydmaster/DhjydMasterVOServiceImpl.java @@ -527,7 +527,7 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa } else { // 到货检验单的校验 // 查询采购入库单是否存在该id - String countSql = "select count(1) from IC_PURCHASEIN_B where csourcebillhid = '[otherId]';"; + String countSql = "select count(1) from IC_PURCHASEIN_B where csourcebillhid = '[otherId]' and dr = 0;"; countSql = countSql.replace("[otherId]", otherId); Integer num = (Integer) getBaseDAO().executeQuery(countSql, new ColumnProcessor()); if (num > 0) {