zss
2023-08-22 59ae18f04a602bdfdc91299bbe2ff74a2ae1d215
inspection-server/src/main/resources/mapper/InspectionMapper.xml
@@ -42,4 +42,21 @@
        where state = 1
          and inspection_status is null
    </select>
    <!--获取检验单总数-->
    <select id="getcount" resultType="java.lang.Integer">
        select count(id)
        from lims_laboratory.inspection
        where state = 1
    </select>
    <!--检验结论,检验数量-->
    <select id="getResultNum" resultType="java.util.Map">
        select inspection_status result,
               count(id)         num
        from lims_laboratory.inspection
        where state=1
        group by result
        order by num desc
    </select>
</mapper>