¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.yuanchu.limslaboratory.mapper.InspectionProductMapper"> |
| | | <update id="upda"> |
| | | update lims_laboratory.inspection_product |
| | | set test_state=null |
| | | where id = #{id} |
| | | and state = 1 |
| | | </update> |
| | | |
| | | <!--æ ¹æ®æ£éªåidæ¥è¯¢æ£éªé¡¹ç®çæ£éªç»æ--> |
| | | <select id="getresult" resultType="java.lang.Integer"> |
| | | select test_state |
| | | from lims_laboratory.inspection_product |
| | | where state = 1 |
| | | and inspection_material_id = (select id from lims_laboratory.inspection_material where inspection_id = #{id}) |
| | | </select> |
| | | <!--æ ¹æ®æ£éªæ ·åidä½åºæ£éªé¡¹ç®--> |
| | | <update id="updat"> |
| | | update lims_laboratory.inspection_product |
| | | 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> |