From 3ae364164cb9d85acce0b53a1ba5c70a80991308 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 03 七月 2024 22:21:49 +0800 Subject: [PATCH] 温度循环+报告英文换行+检验只有一项的设备查询+光纤配置报告换页+温度湿度 --- inspect-server/src/main/resources/mapper/InsOrderMapper.xml | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsOrderMapper.xml b/inspect-server/src/main/resources/mapper/InsOrderMapper.xml index ced1149..e391586 100644 --- a/inspect-server/src/main/resources/mapper/InsOrderMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsOrderMapper.xml @@ -96,10 +96,12 @@ ir.url, ir.url_s, (select count(*) from ins_sample isa2 - where isa2.ins_order_id = io.id and isa2.sample_code NOT REGEXP '/' ) sample_num, + where isa2.ins_order_id = io.id) sample_num, concat(ROUND((select count(*) from ins_product ip - where state = 1 and ins_result is not null and ip.ins_sample_id in (select id from ins_sample where ins_sample.ins_order_id= io.id )) / (select count(*) from ins_product ip2 - where state = 1 and ip2.ins_sample_id in (select id from ins_sample where ins_sample.ins_order_id= io.id )) * 100, 2), '%') insProgress, + where state = 1 and ins_result is not null and ip.ins_sample_id in (select id from ins_sample where + ins_sample.ins_order_id= io.id )) / (select count(*) from ins_product ip2 + where state = 1 and ip2.ins_sample_id in (select id from ins_sample where ins_sample.ins_order_id= io.id )) * + 100, 2), '%') insProgress, group_concat(distinct isa.sample_code,' ') sample_code, group_concat(distinct isa.sample,' ') sample_name, group_concat(distinct isa.model,' ') sample_model, @@ -289,4 +291,13 @@ from laboratory where laboratory_name = #{laboratory} </select> + <select id="selectReportModelByOrderId" resultType="java.util.Map"> + select distinct id, name + from standard_template + where id in (select template_id + from ins_product + where son_laboratory = #{laboratory} + and ins_sample_id in + (select id from ins_sample where ins_order_id = #{id})) + </select> </mapper> -- Gitblit v1.9.3