From 09101577baa4b844e308238d1d4ac1972d660577 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 17 十二月 2025 16:47:22 +0800
Subject: [PATCH] 生成站点电路试验报告(天线)合并单元格
---
inspect-server/src/main/resources/mapper/InsSampleMapper.xml | 29 ++++++++++++++++++++---------
1 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
index cfae4bb..fb9385f 100644
--- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
@@ -29,6 +29,7 @@
SELECT
a.*,
ios.ins_state,
+ ios.is_out,
ios.laboratory son_laboratory,
ios.verify_tell,
verify_user,
@@ -53,7 +54,7 @@
io.send_time,
isa.id sampleId,
isa.sample sample,
- isa.sample_code sampleCode,
+ isa.sample_code ,
userName,
userNameId,
checkName,
@@ -80,9 +81,12 @@
ORDER BY ins_sample_id
)isu2 ON isu2.ins_sample_id = isa.id
WHERE io.state = 1 and send_time is not null
- <if test="userName !=null and userName!=''">
- and ( (userName like CONCAT ('%', #{userName},'%') )
- or (checkName like CONCAT ('%', #{userName},'%') ) )
+ <if test="sampleCode !=null and sampleCode!=''">
+ and (isa.sample_code like CONCAT ('%', #{sampleCode},'%') )
+ </if>
+ <if test="myName !=null and myName!=''">
+ and ( (userName like CONCAT ('%', #{myName},'%') )
+ or (checkName like CONCAT ('%', #{myName},'%') ) )
</if>
) a
ON ios.ins_order_id = a.id AND ios.laboratory = #{sonLaboratory} and ios.ins_sample_id=a.sampleId
@@ -94,6 +98,7 @@
ios.create_time
) b
where ins_state is not null
+ and (is_out is null or is_out !=1)
and son_laboratory=#{sonLaboratory}
and state =1
<if test="laboratory!=null and laboratory!=''">
@@ -252,7 +257,7 @@
method,
man_day,
bsm,
- ask,
+ ip.ask,
`last_value`,
ip.ins_result ip_ins_result,
state,
@@ -272,6 +277,7 @@
ipr.after_note,
ipr.test_result,
ipr2.frequency,
+ ipr2.ask ask2,
ipr2.often,
ipr2.port,
ipr2.angle,
@@ -325,7 +331,7 @@
method,
man_day,
bsm,
- ask,
+ ip.ask,
`last_value`,
ip.ins_result ip_ins_result,
state,
@@ -345,6 +351,7 @@
ipr.after_note,
ipr.test_result,
ipr2.frequency,
+ ipr2.ask ask2,
ipr2.often,
ipr2.port,
ipr2.angle,
@@ -528,7 +535,7 @@
method,
man_day,
bsm,
- ask,
+ ip.ask,
`last_value`,
ip.ins_result ip_ins_result,
state,
@@ -548,6 +555,7 @@
ipr.after_note,
ipr.test_result,
ipr2.frequency,
+ ipr2.ask ask2,
ipr2.often,
ipr2.port,
ipr2.angle,
@@ -599,7 +607,7 @@
method,
man_day,
bsm,
- ask,
+ ip.ask,
`last_value`,
ip.ins_result ip_ins_result,
state,
@@ -619,6 +627,7 @@
ipr.after_note,
ipr.test_result,
ipr2.frequency,
+ ipr2.ask ask2,
ipr2.often,
ipr2.port,
ipr2.angle,
@@ -668,7 +677,7 @@
method,
man_day,
bsm,
- ask,
+ ip.ask,
`last_value`,
ip.ins_result ip_ins_result,
state,
@@ -688,6 +697,7 @@
ipr.after_note,
ipr.test_result,
ipr2.frequency,
+ ipr2.ask ask2,
ipr2.often,
ipr2.port,
ipr2.angle,
@@ -832,6 +842,7 @@
</resultMap>
<resultMap id="insProductResult2" type="com.yuanchu.mom.pojo.InsProductResult2">
<result column="frequency" property="frequency" jdbcType="VARCHAR"/>
+ <result column="ask2" property="ask" jdbcType="VARCHAR"/>
<result column="often" property="often" jdbcType="VARCHAR"/>
<result column="port" property="port" jdbcType="VARCHAR"/>
<result column="angle" property="angle" jdbcType="VARCHAR"/>
--
Gitblit v1.9.3