| | |
| | | </if> |
| | | WHERE ouf.operatestate = #{operatestate} |
| | | and LENGTH(trim(ouf.receipt_number))>0 |
| | | and ouf.valid_flag = 1 |
| | | <if test="reagentCode !=null and reagentCode != ''"> |
| | | and ouf.reagent_code like concat("%",#{reagentCode},"%") |
| | | </if> |
| | |
| | | </if> |
| | | WHERE ouf.operatestate = #{operatestate} |
| | | and LENGTH(trim(ouf.receipt_number))>0 |
| | | and ouf.valid_flag = 1 |
| | | <if test="reagentCode !=null and reagentCode != ''"> |
| | | and ouf.reagent_code like concat("%",#{reagentCode},"%") |
| | | </if> |
| | |
| | | LEFT JOIN base_meta bm3 on bm3.id = sr.control_products |
| | | WHERE ouf.operatestate = #{operatestate} |
| | | and ouf.receipt_number = #{receiptNumber} |
| | | and ouf.valid_flag = 1 |
| | | </select> |
| | | |
| | | |
| | |
| | | LEFT JOIN base_meta bm3 on bm3.id = sr.control_products |
| | | WHERE ouf.operatestate = #{operatestate} |
| | | and ouf.receipt_number = #{receiptNumber} |
| | | and ouf.valid_flag = 1 |
| | | </select> |
| | | <select id="countOpeUseFlow" resultType="java.lang.Integer" parameterType="com.nanometer.smartlab.entity.OpeUseFlow"> |
| | | select count(0) |
| | | from ope_use_flow |
| | | where reagent_code = #{reagentCode} |
| | | and status = #{status} |
| | | and house_id = #{houseId} |
| | | and container_id = #{containerId} |
| | | and create_time = #{createTime} |
| | | and operatestate =#{operateState} |
| | | and valid_flag = 1 |
| | | </select> |
| | | |
| | | <insert id="insertOpeUseFlow" parameterType="com.nanometer.smartlab.entity.OpeUseFlow"> |