| | |
| | | <if test="status != null"> |
| | | <choose> |
| | | <when test="status == 1"> |
| | | inner join sys_warehouse as sw on sw.id = oa.house_id |
| | | left 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"> |
| | | inner join sys_laboratory as sw on sw.id = oa.house_id |
| | | left 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> |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="getOpeReagentStatusList22" parameterType="java.util.Map" resultMap="OpeReagentStatus"> |
| | | <include refid="queryColumns"/> |
| | | from ope_reagent_status as oa |
| | | left join sys_reagent sr on oa.reagent_id = sr.id |
| | | left join sys_supplier as ss on sr.supplier_id = ss.id |
| | | left join sys_user as su on oa.user_id = su.id |
| | | |
| | | <if test="status != null"> |
| | | <choose> |
| | | <when test="status == 1"> |
| | | 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"> |
| | | 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> |
| | | </if> |
| | | where oa.valid_flag = 1 |
| | | <include refid="queryWhereSql"/> |
| | | |
| | | order by oa.reagent_code asc |
| | | <if test="first != null and pageSize != null"> |
| | | limit #{first}, #{pageSize} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getOpeReagentStatusListForLab" parameterType="java.util.Map" resultMap="OpeReagentStatus"> |
| | | select oa.*, |
| | | sr.*, |