| | |
| | | <if test="status != null"> |
| | | <choose> |
| | | <when test="status == 1"> |
| | | left join sys_warehouse as sw on sw.id = oa.house_id |
| | | inner join sys_warehouse as sw on sw.id = oa.house_id |
| | | left join sys_warehouse_container as swc on swc.id = oa.container_id |
| | | </when> |
| | | <when test="status == 2"> |
| | | left join sys_laboratory as sw on sw.id = oa.house_id |
| | | inner join sys_laboratory as sw on sw.id = oa.house_id |
| | | left join sys_laboratory_container as swc on swc.id = oa.container_id |
| | | </when> |
| | | </choose> |
| | |
| | | </choose> |
| | | order by oa.reagent_code asc |
| | | </select> |
| | | <select id="getStatus" resultMap="OpeReagentStatus"> |
| | | |
| | | select * |
| | | from ope_reagent_status |
| | | where valid_flag = 1 |
| | | and reagent_code = #{reagentCode} |
| | | and reagent_id = #{reagentId} |
| | | </select> |
| | | </mapper> |