From fbba4ea24430b14eee18b190b7e08f1a58a8e504 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期四, 03 八月 2023 13:48:38 +0800
Subject: [PATCH] LIMS管理系统框架-开发8-3
---
standard-server/src/main/resources/mapper/MaterialMapper.xml | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/standard-server/src/main/resources/mapper/MaterialMapper.xml b/standard-server/src/main/resources/mapper/MaterialMapper.xml
index 60237ef..8853a62 100644
--- a/standard-server/src/main/resources/mapper/MaterialMapper.xml
+++ b/standard-server/src/main/resources/mapper/MaterialMapper.xml
@@ -2,4 +2,32 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yuanchu.limslaboratory.mapper.MaterialMapper">
+ <select id="selectMaterialLimit" resultType="Map">
+ select id, name
+ from lims_laboratory.material
+ where state = 1
+ and type = #{type}
+ order by create_time desc
+ limit #{num1},#{num2}
+ </select>
+ <select id="selectMaterialById" resultType="Map">
+ select m.id,
+ m.num,
+ m.supplier,
+ m.name,
+ m.location,
+ m.batch,
+ m.reel_number reelNumber,
+ concat(s.name, '/', sn.name) specificationSerialNum,
+ s.voltage_level voltageLevel,
+ s.cross_section crossSection,
+ s.number_of_cores numberOfCores,
+ s.instruct
+ from lims_laboratory.material m,
+ lims_laboratory.specifications s,
+ lims_laboratory.serial_number sn
+ where m.specifications_id = s.id
+ and s.serial_id = sn.id
+ and m.id=#{materialId}
+ </select>
</mapper>
--
Gitblit v1.9.3