| | |
| | | </sql> |
| | | |
| | | <select id="getOpeUseFlowList" parameterType="java.util.Map" resultMap="OpeUseFlow"> |
| | | <include refid="queryColumns"/> |
| | | select oa.*, |
| | | sr.*, |
| | | ors.article_number as articleNumber, |
| | | sr.id as reagentId, |
| | | su.name as userName, |
| | | 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, |
| | | bm1.meta_value as operatestateName |
| | | from ope_use_flow as oa |
| | | <include refid="queryJoins"/> |
| | | left join ope_reagent_status ors on ors.reagent_code = oa.reagent_code |
| | | left join sys_reagent sr on ors.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 |
| | | left join sys_warehouse_container wc on wc.id = oa.container_id |
| | | left join sys_warehouse w on w.id = wc.warehouse_id |
| | | left join sys_laboratory_container lc on lc.id = oa.container_id |
| | | left join sys_laboratory l on l.id = lc.laboratory_id |
| | | left join base_meta bm1 on bm1.id = oa.operatestate |
| | | where oa.valid_flag = 1 |
| | | <include refid="queryWhereSql"/> |
| | | order by oa.create_time desc |