zss
2023-08-22 affabbd21802dacbf943692912a83e63106670e4
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>