From eeb8d7faa8d25b3ca9fe75ef28f035c49af5b06d Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 11 三月 2025 11:05:38 +0800
Subject: [PATCH] Merge branch 'dev' into dev_zj
---
basic-server/src/main/resources/mapper/StructureItemParameterMapper.xml | 38 +++++++++++++++++++++++++++++++++++---
1 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/basic-server/src/main/resources/mapper/StructureItemParameterMapper.xml b/basic-server/src/main/resources/mapper/StructureItemParameterMapper.xml
index fd67dfc..d355e72 100644
--- a/basic-server/src/main/resources/mapper/StructureItemParameterMapper.xml
+++ b/basic-server/src/main/resources/mapper/StructureItemParameterMapper.xml
@@ -10,6 +10,7 @@
</delete>
<select id="selectItemParameterList" resultType="com.ruoyi.basic.pojo.StructureItemParameter">
select * from (select A.id,
+ st.name as template_name,
inspection_item,
inspection_item_en,
inspection_item_subclass,
@@ -38,9 +39,7 @@
ask_tell,
inspection_item_class,
inspection_item_class_en,
- code,
- radius_list,
- rates
+ code
from (select *,
CASE
WHEN INSTR(sample, ',') > 0 THEN
@@ -52,6 +51,7 @@
END AS samples
from structure_item_parameter) A
left join structure_test_object sto on samples = specimen_name
+ LEFT JOIN standard_template st ON template_id = st.id
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
${ew.customSqlSegment}
</if>)B
@@ -109,6 +109,38 @@
left join product p on p.object_id = sto.id
</select>
+ <select id="selectItemParameterList1" resultType="com.ruoyi.basic.pojo.StructureItemParameter">
+ select A.id,
+ inspection_item,
+ inspection_item_subclass,
+ samples
+ from (select *,
+ CASE
+ WHEN INSTR(sample, ',') > 0 THEN
+ SUBSTRING_INDEX(SUBSTRING_INDEX(sample, '","', 1), '"', -1)
+ when sample = '[""]' then null
+ when sample = '[]' then null
+ ELSE
+ TRIM(BOTH '["]' FROM SUBSTRING_INDEX(REPLACE(sample, '[["', ''), '"]]', 1))
+ END AS samples
+ from structure_item_parameter) A
+ left join structure_test_object sto on samples = specimen_name
+ <where>
+ <if test="specimenName != null and specimenName !=''">
+ and A.sample like concat('%',#{specimenName},'%')
+ </if>
+ </where>
+ GROUP BY inspection_item
+ </select>
+ <select id="selectItemParameterList2" resultType="com.ruoyi.basic.pojo.StructureItemParameter">
+ SELECT sp.id,sp.inspection_item_subclass FROM structure_item_parameter sp
+ <where>
+ <if test="inspectionItemSubclass != null and inspectionItemSubclass !=''">
+ and sp.inspection_item like concat('%',#{inspectionItemSubclass},'%')
+ </if>
+ </where>
+ </select>
+
<resultMap id="itemDto" type="com.ruoyi.basic.dto.TestItemDto">
<result column="sId" property="id"/>
<result column="sName" property="name"/>
--
Gitblit v1.9.3