From 0e1722e96e5483d560eda8f1cf96282955d4f224 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 27 七月 2023 15:04:40 +0800
Subject: [PATCH] 检验模块

---
 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