From c968f678ea03f7fd0a9071b63e60c144f63da380 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期一, 21 八月 2023 09:39:01 +0800
Subject: [PATCH] LIMS管理系统框架-开发8-21
---
laboratory-server/src/main/resources/mapper/ClassifyMapper.xml | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/laboratory-server/src/main/resources/mapper/ClassifyMapper.xml b/laboratory-server/src/main/resources/mapper/ClassifyMapper.xml
index f6e5f1c..c319b0f 100644
--- a/laboratory-server/src/main/resources/mapper/ClassifyMapper.xml
+++ b/laboratory-server/src/main/resources/mapper/ClassifyMapper.xml
@@ -2,4 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yuanchu.limslaboratory.mapper.ClassifyMapper">
+ <select id="selectOneByName" resultType="com.yuanchu.limslaboratory.pojo.Classify">
+ SELECT id
+ FROM classify
+ WHERE state = 1
+ <if test="fatherName!=null and fatherName!=''">
+ AND father_name = #{fatherName}
+ </if>
+ </select>
</mapper>
--
Gitblit v1.9.3