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) {