From 3b75c8cf561035c41d25d5b8765a7c89375ca264 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期日, 12 五月 2024 08:00:32 +0800 Subject: [PATCH] 各bug修复; --- inspect-server/src/main/resources/mapper/InsSampleMapper.xml | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml index f5822aa..d9eb934 100644 --- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml @@ -16,7 +16,6 @@ <result property="sampleType" column="sample_type" jdbcType="VARCHAR"/> <result property="sample" column="sample" jdbcType="VARCHAR"/> <result property="model" column="model" jdbcType="VARCHAR"/> - <result property="isLeave" column="is_leave" jdbcType="INTEGER"/> <result property="insState" column="ins_state" jdbcType="INTEGER"/> <result property="joinNum" column="join_num" jdbcType="INTEGER"/> <result property="remark" column="remark" jdbcType="VARCHAR"/> @@ -29,7 +28,7 @@ <select id="findInsSampleAndOrder" resultType="com.yuanchu.mom.vo.InsOrderPlanVO"> select * from( SELECT - a.*,ios.ins_state,ios.verify_tell + a.*,ios.ins_state,ios.verify_tell,isu2.order_user_id,(ios.verify_user = #{userId}) verify_user FROM ( SELECT @@ -49,7 +48,7 @@ LEFT JOIN ins_product ip ON ip.ins_sample_id = isa.id WHERE io.state = 1 - AND io.ins_state != 5 +# AND io.ins_state != 5 and send_time is not null and (isu.user_id = #{userId} OR isu.user_id is NULL) GROUP BY @@ -57,6 +56,7 @@ io.id ) a LEFT JOIN ins_order_state ios ON ios.ins_order_id = a.id AND ios.laboratory = a.son_laboratory + left join (SELECT c.user_id order_user_id, c.ins_sample_id from (SELECT * FROM ins_sample_user ORDER BY id DESC) c GROUP BY ins_sample_id having order_user_id = #{userId}) isu2 on isu2.ins_sample_id = a.id ORDER BY a.user_id DESC, a.type DESC, @@ -104,7 +104,8 @@ template_id, ipr.ins_value, ipr.com_value, - ipr.equip_value + ipr.equip_value, + ip.method_s from ins_sample isa left join ins_product ip on isa.id = ip.ins_sample_id left join ins_product_result ipr on ip.id = ipr.ins_product_id @@ -148,13 +149,21 @@ template_id, ipr.ins_value, ipr.com_value, - ipr.equip_value + ipr.equip_value, + ipr.equip_name, + ip.method_s, + ip.tell, + ip.dic from ins_sample isa left join ins_product ip on isa.id = ip.ins_sample_id left join ins_product_result ipr on ip.id = ipr.ins_product_id where ins_order_id = #{id} and state = 1 and ip.son_laboratory = #{laboratory} + </select> + <select id="getSampleEn" resultType="java.lang.String"> + select name_en from `center-lims`.product + where name = #{sample} </select> <resultMap id="sampleDto" type="com.yuanchu.mom.dto.SampleProductDto"> @@ -169,7 +178,6 @@ <result property="sampleType" column="sample_type" jdbcType="VARCHAR"/> <result property="sample" column="sample" jdbcType="VARCHAR"/> <result property="model" column="model" jdbcType="VARCHAR"/> - <result property="isLeave" column="is_leave" jdbcType="INTEGER"/> <result property="insState" column="ins_state" jdbcType="INTEGER"/> <result property="joinNum" column="join_num" jdbcType="INTEGER"/> <result property="remark" column="remark" jdbcType="VARCHAR"/> @@ -216,6 +224,9 @@ <result property="createTime" column="ip_create_time" jdbcType="TIMESTAMP"/> <result property="updateTime" column="ip_update_time" jdbcType="TIMESTAMP"/> <result property="templateId" column="template_id" jdbcType="INTEGER"/> + <result property="methodS" column="method_s"/> + <result property="tell" column="tell"/> + <result property="dic" column="dic"/> <collection property="insProductResult" resultMap="insProductResult"/> </resultMap> @@ -223,5 +234,6 @@ <result property="insValue" column="ins_value" jdbcType="VARCHAR"/> <result property="comValue" column="com_value" jdbcType="VARCHAR"/> <result property="equipValue" column="equip_value" jdbcType="VARCHAR"/> + <result property="equipName" column="equip_name" jdbcType="VARBINARY"/> </resultMap> </mapper> -- Gitblit v1.9.3