| | |
| | | ss.name as supplierName, |
| | | l.name as laboratoryName, |
| | | w.name as warehouseName, |
| | | lc.name as warehouseContainerName, |
| | | wc.name as laboratoryContainerName, |
| | | lc.container_code as warehouseContainerCode, |
| | | wc.container_code as laboratoryContainerCode, |
| | | wc.name as warehouseContainerName, |
| | | lc.name as laboratoryContainerName, |
| | | wc.container_code as warehouseContainerCode, |
| | | lc.container_code as laboratoryContainerCode, |
| | | bm1.meta_value as operatestateName |
| | | from ope_use_flow as oa |
| | | left join ope_reagent_status ors on ors.reagent_code = oa.reagent_code |
| | |
| | | </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"> |
| | | insert into ope_use_flow(id, reagent_code, status, house_id, container_id, user_id, remainder, place, store_type, valid_flag, create_time, realstatus, operatestate) |
| | | values (#{id}, #{reagentCode}, #{status}, #{houseId}, #{containerId}, #{userId}, #{remainder}, #{place}, #{storeType}, 1, #{createTime}, #{realstatus},#{operateState}) |
| | | insert into ope_use_flow(id, reagent_code, status, house_id, container_id, user_id, remainder, place, store_type, valid_flag, create_time, realstatus, operatestate |
| | | <if test="receiptNumber != null"> |
| | | ,receipt_number |
| | | </if> |
| | | ) |
| | | values (#{id}, #{reagentCode}, #{status}, #{houseId}, #{containerId}, #{userId}, #{remainder}, #{place}, #{storeType}, 1, #{createTime}, #{realstatus},#{operateState} |
| | | <if test="receiptNumber != null"> |
| | | ,#{receiptNumber} |
| | | </if>) |
| | | </insert> |
| | | |
| | | |