| | |
| | | <!--根据检验样品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> |