value
2023-08-26 ea4d3ff1ec0075eab10ef6c214653298f34d8185
standard-server/src/main/resources/mapper/ProductMapper.xml
@@ -37,8 +37,8 @@
        from lims_laboratory.product
        where state = 1
          and specifications_id = #{specificationsId}
        ORDER BY product.`create_time` DESC
          and version = #{version}
        ORDER BY product.`create_time` DESC
    </select>
    <select id="deleteList">
@@ -71,4 +71,36 @@
        where state = 1
          and specifications_id = #{modelId}
    </select>
    <!--根据项目父类,型号id,版本查询二级详情-->
    <select id="selFath" resultMap="pageProductInformationMap">
        select id,
               name,
               father,
               unit,
               required,
               internal,
               version
        from lims_laboratory.product
        where state = 1
          and specifications_id = #{specificationId}
          and version = #{version}
          and father = #{exper}
    </select>
    <!--根据项目父类为空,项目名,型号id,版本查询-->
    <select id="selNam" resultType="java.util.Map">
        select id,
               name,
               unit,
               required,
               internal,
               version
        from lims_laboratory.product
        where state = 1
          and specifications_id = #{specificationId}
          and version = #{version}
          and name = #{exper}
          and father is null
    </select>
</mapper>