inspection-server/src/main/resources/mapper/InspectionProductMapper.xml
@@ -21,4 +21,20 @@ 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>