Fixiaobai
2023-09-09 e7f7daae5d21ad2988cadd25b6987ca5e7ef8001
standard-server/src/main/resources/mapper/ProductModelMapper.xml
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yuanchu.limslaboratory.mapper.ProductModelMapper">
    <resultMap id="selectproductModelMap" type="map">
        <id property="father" column="father"/>
        <id property="name" column="father"/>
        <collection property="children" resultMap="selectproductModelTowMap" javaType="List"/>
    </resultMap>
@@ -35,9 +35,9 @@
    </update>
    <!--添加标准选择项目分组-->
    <select id="selectfather" resultType="java.lang.String">
        select distinct father
        from lims_laboratory.product_model
        where state = 1
        SELECT DISTINCT father
        FROM lims_laboratory.product_model
        WHERE state = 1
    </select>
    <!--查询项目模版根据样品名-->
@@ -47,6 +47,13 @@
               unit
        from lims_laboratory.product_model
        where state = 1
          and material =#{name}
          and material = #{name}
    </select>
</mapper>
    <!--添加标准选择样品名称-->
    <select id="selectmater" resultType="java.lang.String">
        select DISTINCT material
        from lims_laboratory.product_model
        where state = 1
    </select>
</mapper>