From 82f614e4646aeb179927dd82ccf0097a671dce48 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 03 七月 2026 14:19:38 +0800
Subject: [PATCH] 外购下单:出厂检验报告检验值小数位数生成错误问题修复
---
basic-server/src/main/resources/mapper/StandardTreeMapper.xml | 32 ++++++++++++++++++++++++++++----
1 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
index a3a7abf..e1b9829 100644
--- a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
+++ b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -49,6 +49,7 @@
<resultMap id="ModelDto" type="com.ruoyi.basic.dto.ModelDto">
<result property="label" column="model"/>
<result property="value" column="model"/>
+ <result property="standardTreeId" column="standard_tree_id"/>
</resultMap>
<sql id="selectStandardTree">
@@ -99,7 +100,8 @@
sto.id sample_type_id,
sto.sort,
sto.specimen_name_en sample_type_en,
- p.name_en sample_en
+ p.name_en sample_en,
+ st.id AS standard_tree_id
from laboratory l
left join structure_test_object sto on sto.laboratory_id = l.id
left join product p on p.object_id = sto.id
@@ -169,7 +171,7 @@
where sto.specimen_name = #{sampleType}
group by sto.specimen_name
</select>
- <select id="selectStandardProductListByTree" resultType="com.ruoyi.basic.pojo.StandardProductList">
+ <select id="selectStandardProductListByTree" resultType="com.ruoyi.basic.vo.StandardProductListVO">
select <include refid="selectStandardTree"/>
from structure_item_parameter
where (
@@ -184,7 +186,7 @@
order by inspection_item_class, inspection_item, id asc
</select>
- <select id="selectStandardProductListByTree2" resultType="com.ruoyi.basic.pojo.StandardProductList">
+ <select id="selectStandardProductListByTree2" resultType="com.ruoyi.basic.vo.StandardProductListVO">
select <include refid="selectStandardTree"/>
from structure_item_parameter
where sample LIKE CONCAT('%[', #{tree}, ']%')
@@ -280,10 +282,12 @@
ir1.id enter_report_id,
ir1.url enter_url,
ir1.url_s enter_url_s,
+ ir1.is_ratify enter_ratify_status,
io2.id quarter_order_id,
ir2.id quarter_report_id,
ir2.url quarter_url,
ir2.url_s quarter_url_s,
+ ir2.is_ratify quarter_ratify_status,
group_concat(distinct isa.sample_code, ' ') sample_code,
group_concat(distinct isa.sample, ' ') sample_name,
group_concat(distinct isa.model, ' ') sample_model,
@@ -386,7 +390,8 @@
<select id="getStandardTree3" resultType="com.ruoyi.basic.dto.SampleDto">
select model label,
- model value
+ model value,
+ id AS standard_tree_id
from standard_tree
where sample_type = #{sampleType}
and sample is null
@@ -400,4 +405,23 @@
#{id}
</foreach>
</select>
+ <select id="selectStandardTreeById" resultType="com.ruoyi.basic.vo.StandardTreeVO">
+ select
+ st.id,
+ st.factory,
+ st.laboratory,
+ st.sample_type,
+ st.sample,
+ st.model,
+ st.create_user,
+ st.create_time,
+ st.update_user,
+ st.update_time,
+ u1.name AS create_user_name,
+ u2.name AS update_user_name
+ from standard_tree st
+ left join user u1 on st.create_user = u1.id
+ left join user u2 on st.update_user = u2.id
+ where st.id = #{standardTreeId}
+ </select>
</mapper>
--
Gitblit v1.9.3