XiaoRuby
2023-09-23 064457406bda554e713aea8bada1bb066be42b8e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yuanchu.limslaboratory.mapper.SpecificationsMapper">
    <!--根据规格id查询物料名称-->
    <select id="selMateName" resultType="java.lang.String">
        select name
        from lims_laboratory.material
        where state = 1
          and id = (select material_id
                    from lims_laboratory.standard
                    where standard.state = 1
                      and standard.id=#{standardId});
    </select>
</mapper>