From 032b976ab803a263e734dcdca3ceadaed48f1070 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期四, 27 七月 2023 16:51:08 +0800
Subject: [PATCH] LIMS管理系统框架-开发7-27下班合并代码
---
inspection-server/src/main/resources/mapper/InspectionProductListMapper.xml | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/inspection-server/src/main/resources/mapper/InspectionProductListMapper.xml b/inspection-server/src/main/resources/mapper/InspectionProductListMapper.xml
index d85407a..1eed103 100644
--- a/inspection-server/src/main/resources/mapper/InspectionProductListMapper.xml
+++ b/inspection-server/src/main/resources/mapper/InspectionProductListMapper.xml
@@ -2,4 +2,39 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yuanchu.limslaboratory.mapper.InspectionProductListMapper">
+ <select id="selectByMaterId" resultType="com.yuanchu.limslaboratory.pojo.vo.InspectionProductListVo">
+ select inspection_material_list_id,
+ inspect_start_time inspectStartTime,
+ inspect_end_time inspectEndTime,
+ ipl.name,
+ method,
+ ask,
+ unit,
+ required,
+ internal,
+ start_time,
+ end_time,
+ uname userName,
+ equipment_name instrumentName
+ from (select inspection_material_list_id,
+ pl.name name,
+ user.name uname,
+ method,
+ ask,
+ unit,
+ required,
+ internal,
+ start_time,
+ end_time,
+ equipment_name
+ from lims_laboratory.inspection_product_list pl
+ left join lims_laboratory.user on pl.user_id = user.id
+ left join lims_laboratory.instrument on pl.instrument_id = instrument.id) ipl
+ , lims_laboratory.inspection_material_list iml
+ , lims_laboratory.inspection i
+ where iml.id = ipl.inspection_material_list_id
+ and iml.id = ipl.inspection_material_list_id
+ and i.id = iml.inspection_id
+ and ipl.inspection_material_list_id = #{id}
+ </select>
</mapper>
--
Gitblit v1.9.3