zss
2023-08-19 6d7b4c2e4c0a1dd15afb71b11c8f3c19ef7c946c
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>