From bc906065cf3ab03d92b3cf815fb8c03bef9941ea Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期四, 03 七月 2025 09:13:27 +0800
Subject: [PATCH] 质量管理-抽样规则、缺陷维护功能

---
 src/main/java/org/jeecg/modules/qms/mapper/xml/InspectionItemMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/jeecg/modules/qms/mapper/xml/InspectionItemMapper.xml b/src/main/java/org/jeecg/modules/qms/mapper/xml/InspectionItemMapper.xml
index 3d0f356..bf9049b 100644
--- a/src/main/java/org/jeecg/modules/qms/mapper/xml/InspectionItemMapper.xml
+++ b/src/main/java/org/jeecg/modules/qms/mapper/xml/InspectionItemMapper.xml
@@ -2,4 +2,24 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="org.jeecg.modules.qms.mapper.InspectionItemMapper">
 
+
+    <select id="queryList" resultType="map" parameterType="String">
+        SELECT
+            t1.id,
+            t1.item_code itemCode,
+            t1.item_name itemName,
+            t1.item_category itemCategory,
+            t1.qualitative_or_quantitative qualitativeOrQuantitative,
+            t1.inspection_tools inspectionTools,
+            t1.item_status itemStatus,
+            t1.create_time createTime,
+            t2.item_text itemCategoryName,
+            t3.item_text qualitativeOrQuantitativeName,
+            t1.remark
+        FROM
+            qms_inspection_item t1
+                LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'item_category' ) t2 ON t2.item_value = t1.item_category
+                left join ( SELECT * FROM v_sys_dict WHERE dict_code = 'qualitative_or_quantitative' ) t3 on t3.item_value = t1.qualitative_or_quantitative
+            ${ew.customSqlSegment}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3