From c3b81ea987501dc2f5dc3c8db23038eeb8f290e9 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 12 三月 2026 17:56:16 +0800
Subject: [PATCH] fix: 产品保存时唯一性导致数据丢失

---
 src/main/resources/mapper/quality/QualityTestStandardParamMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/quality/QualityTestStandardParamMapper.xml b/src/main/resources/mapper/quality/QualityTestStandardParamMapper.xml
index 80adb27..837bc26 100644
--- a/src/main/resources/mapper/quality/QualityTestStandardParamMapper.xml
+++ b/src/main/resources/mapper/quality/QualityTestStandardParamMapper.xml
@@ -21,7 +21,7 @@
         select t1.* from quality_test_standard_param t1
         left join quality_test_standard t2 on t1.test_standard_id = t2.id
         left join quality_test_standard_binding t3 on t2.id = t3.test_standard_id
-        where product_id = #{productId}
+        where t3.product_id = #{productId}
     </select>
 
 </mapper>

--
Gitblit v1.9.3