From 0cfb4676a5f64aa762b545631a1272a4689e8b9e Mon Sep 17 00:00:00 2001 From: yangzz <9704.yyds@163.com> Date: Thu, 21 May 2026 14:47:18 +0800 Subject: [PATCH] =?UTF-8?q?QC=E5=AD=90=E4=BB=B6=E4=BF=A1=E6=81=AF=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E6=98=8E=E7=BB=86=E6=9F=A5=E8=AF=A2sql=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/qcsubpart/dao/impl/QcSubPartReportDaoImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/xujie/sys/modules/report/qcsubpart/dao/impl/QcSubPartReportDaoImpl.java b/src/main/java/com/xujie/sys/modules/report/qcsubpart/dao/impl/QcSubPartReportDaoImpl.java index 0d15a1a4..f3e8ac0d 100644 --- a/src/main/java/com/xujie/sys/modules/report/qcsubpart/dao/impl/QcSubPartReportDaoImpl.java +++ b/src/main/java/com/xujie/sys/modules/report/qcsubpart/dao/impl/QcSubPartReportDaoImpl.java @@ -154,9 +154,9 @@ public class QcSubPartReportDaoImpl implements QcSubPartReportDao { sql.append("SELECT DISTINCT a.part_no AS partNo, d.part_desc AS partDesc, c.supplier_id AS supplierId, "); sql.append("vs.supplierName AS supplierName, c.manufacture_date AS manufactureDate, c.model_no AS modelNo "); sql.append("FROM sfdc_material_hist a WITH (NOLOCK) "); - sql.append("INNER JOIN c_roll_info c WITH (NOLOCK) ON a.site = c.site and a.rmroll_no = c.roll_no "); + sql.append("LEFT JOIN c_roll_info c WITH (NOLOCK) ON a.site = c.site and a.rmroll_no = c.roll_no "); sql.append("LEFT JOIN view_Supplier vs WITH (NOLOCK) ON c.site = vs.site and c.supplier_id = vs.supplierid "); - sql.append("INNER JOIN part d WITH (NOLOCK) ON a.site = d.site and a.part_no = d.part_no "); + sql.append("LEFT JOIN part d WITH (NOLOCK) ON a.site = d.site and a.part_no = d.part_no "); sql.append("WHERE a.site = :site and a.seq_no = :seqNo "); return namedParameterJdbcTemplate.queryForList(sql.toString(), params); }