zss
2023-08-22 da30df12fc02f28a4b016c8c35a3b57e5c29fe35
inspection-server/src/main/resources/mapper/InspectionProductMapper.xml
@@ -18,7 +18,23 @@
    <!--根据检验样品id作废检验项目-->
    <update id="updat">
        update lims_laboratory.inspection_product
            set state=0
        where inspection_material_id=#{id}
        set state=0
        where inspection_material_id = #{id}
    </update>
    <!--计算已检验项目数量-->
    <select id="seleCountInspro" resultType="java.lang.Integer">
        select count(id)
        from lims_laboratory.inspection_product
        where state = 1
          and test_state in (0, 1)
    </select>
    <!--计算未检验项目数量-->
    <select id="seleCountUnInspro" resultType="java.lang.Integer">
        select count(id)
        from lims_laboratory.inspection_product
        where state = 1
          and test_state is null
    </select>
</mapper>