From 4feecc75d0bb75a587523852bd99e71c2046af56 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期四, 23 五月 2024 17:32:37 +0800 Subject: [PATCH] 彻底解决标准库的bug --- inspect-server/src/main/resources/mapper/InsProductMapper.xml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsProductMapper.xml b/inspect-server/src/main/resources/mapper/InsProductMapper.xml index 608bf85..16284d3 100644 --- a/inspect-server/src/main/resources/mapper/InsProductMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsProductMapper.xml @@ -47,6 +47,16 @@ where io.id = #{orderId} </select> <select id="selectUserById" resultType="java.util.Map"> - select name,company,phone,address from user where id = #{userId} + select name,company,phone,address,name_en from user where id = #{userId} + </select> + <select id="getProductAndResult" resultType="com.yuanchu.mom.dto.ProductResultDto2"> + select ip.id,ip.inspection_item,ip.inspection_item_subclass,ip.laboratory,ip.unit,ipr.equip_value,io.entrust_code,ipr.update_time,ip.ins_result,u.name updateUserName + from ins_product ip + left join ins_product_result ipr on ip.id = ipr.ins_product_id + left join ins_sample isa on isa.id = ip.ins_sample_id + left join ins_order io on io.id = isa.ins_order_id + left join user u on u.id = ipr.update_user + where ip.ins_sample_id = #{sampleId} + and ip.ins_result is not null </select> </mapper> -- Gitblit v1.9.3