From e78cc56f04556a1d3d54f0db830ba9f16eb28a58 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期六, 03 八月 2024 21:40:53 +0800 Subject: [PATCH] 检验下单待检撤销+删除检验值结论还在 --- inspect-server/src/main/resources/mapper/InsProductMapper.xml | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsProductMapper.xml b/inspect-server/src/main/resources/mapper/InsProductMapper.xml index e3b2e1e..5d9645a 100644 --- a/inspect-server/src/main/resources/mapper/InsProductMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsProductMapper.xml @@ -3,7 +3,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.yuanchu.mom.mapper.InsProductMapper"> - <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.InsProduct"> <id property="id" column="id" jdbcType="INTEGER"/> <result property="inspectionItem" column="inspection_item" jdbcType="VARCHAR"/> @@ -74,11 +73,11 @@ ip.inspection_item_subclass, ip.laboratory, ip.unit, - ipr.equip_value, + ipr.equip_name equipValue, io.entrust_code, ipr.update_time, ip.ins_result, - u.name updateUserName + 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 @@ -86,5 +85,26 @@ left join user u on u.id = ipr.update_user where ip.ins_sample_id = #{sampleId} and ip.ins_result is not null + and template_id is not null + </select> + <select id="selectFiberInsProduct" resultType="com.yuanchu.mom.pojo.InsProduct"> + select * from ins_product + where state = 1 + and (ins_fibers_id is not null or ins_fiber_id is not null) + and ins_result is null + and son_laboratory = #{laboratory} + and ins_sample_id in + <foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> + #{item} + </foreach> + </select> + <select id="selectNoProducts" resultType="com.yuanchu.mom.pojo.InsProduct"> + select * + from (select ip.*, sample_code + from ins_product ip + left join ins_sample is2 on ip.ins_sample_id = is2.id + where ip.ins_result is null + and state = 1 + and is2.ins_order_id = #{orderId}) A </select> </mapper> -- Gitblit v1.9.3