From 6b5c4857b9b8e147982b9b6a105969214225b0ef Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期四, 08 八月 2024 16:29:43 +0800 Subject: [PATCH] 数采如果只采集到最后一条,造数据 --- inspect-server/src/main/resources/mapper/InsSampleMapper.xml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml index c48f143..9e80068 100644 --- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml @@ -271,7 +271,8 @@ and state = 1 and ins_fiber_id is null and ins_fibers_id is null - and isa.sample_code NOT REGEXP '/' + and <!--isa.sample_code NOT REGEXP '/'--> + isa.id in(select id1 from (select is2.id id1 ,ip.id from ins_sample is2 left join ins_product ip on is2.id = ip.ins_sample_id where ip.id is not null)s ) </select> <select id="getInsOrderAndSample" resultMap="sampleDto"> select isa.*, -- Gitblit v1.9.3