From c219f11b51903d5aeb4c7ca261df593597aa7fe2 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期二, 16 四月 2024 17:59:54 +0800 Subject: [PATCH] 人员明细+报告编制的提交审核批准+能力范围的下拉数据字典 --- inspect-server/src/main/resources/mapper/InsSampleMapper.xml | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml index bede559..5045af2 100644 --- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml @@ -101,9 +101,13 @@ ip.update_user ip_update_user, ip.create_time ip_create_time, ip.update_time ip_update_time, - template_id + template_id, + ipr.ins_value, + ipr.com_value, + ipr.equip_value 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 </select> @@ -141,9 +145,13 @@ ip.update_user ip_update_user, ip.create_time ip_create_time, ip.update_time ip_update_time, - template_id + template_id, + ipr.ins_value, + ipr.com_value, + ipr.equip_value 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} @@ -208,5 +216,12 @@ <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"/> + <collection property="insProductResult" resultMap="insProductResult"/> + </resultMap> + + <resultMap id="insProductResult" type="com.yuanchu.mom.pojo.InsProductResult"> + <result property="insValue" column="ins_value" jdbcType="VARCHAR"/> + <result property="comValue" column="com_value" jdbcType="VARCHAR"/> + <result property="equipValue" column="equip_value" jdbcType="VARCHAR"/> </resultMap> </mapper> -- Gitblit v1.9.3