From 929c6698f4d7598997fc233e09c39c3bdce9fcf8 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 14 八月 2025 10:23:15 +0800
Subject: [PATCH] 判断合格绝对值的问题
---
inspect-server/src/main/resources/mapper/InsOrderFileMapper.xml | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/inspect-server/src/main/resources/mapper/InsOrderFileMapper.xml b/inspect-server/src/main/resources/mapper/InsOrderFileMapper.xml
index 3dbe7bd..b9648dc 100644
--- a/inspect-server/src/main/resources/mapper/InsOrderFileMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsOrderFileMapper.xml
@@ -5,6 +5,7 @@
<resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.InsOrderFile">
<id column="id" property="id"/>
<result column="ins_order_id" property="insOrderId"/>
+ <result property="insSampleId" column="ins_sample_id" />
<result column="type" property="type"/>
<result column="file_url" property="fileUrl"/>
<result column="file_name" property="fileName"/>
@@ -12,13 +13,23 @@
<result column="create_time" property="createTime"/>
<result column="update_user" property="updateUser"/>
<result column="update_time" property="updateTime"/>
+ <result column="son_laboratory" property="sonLaboratory"/>
</resultMap>
<select id="getFileList" resultType="com.yuanchu.mom.pojo.InsOrderFile">
select A.*
from (select iof.*, name
- from ins_order_file iof
- left join user u on iof.create_user = u.id
- where ins_order_id=#{insOrderId}) A
+ from ins_order_file iof
+ left join user u on iof.create_user = u.id
+ where ins_order_id=#{insOrderId}
+ <if test="sonLaboratory!=null and sonLaboratory!=''">
+ and (son_laboratory=#{sonLaboratory}
+ or son_laboratory is null)
+ </if>
+ <if test="sampleId!=null and sampleId!=''">
+ and (ins_sample_id=#{sampleId}
+ or ins_sample_id is null)
+ </if>
+ ) A
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
${ew.customSqlSegment}
</if>
--
Gitblit v1.9.3