| | |
| | | left join standard_tree st on st.laboratory = l.laboratory_name |
| | | and st.sample_type = sto.specimen_name |
| | | and st.sample = p.name |
| | | order by l.id,CAST(sto.code AS DECIMAL),st.id |
| | | order by l.id,CAST(sto.code AS DECIMAL),p.id,ISNULL(st.id),st.id |
| | | </select> |
| | | |
| | | <select id="selectStandardProductById" resultType="com.yuanchu.mom.pojo.StandardProductList"> |
| | |
| | | 0 state, |
| | | #{model} model, |
| | | #{sample} sample, |
| | | #{trees} tree |
| | | #{trees} tree, |
| | | id structure_item_parameter_id |
| | | from structure_item_parameter |
| | | where ( |
| | | sample is NULL |
| | |
| | | 0 state, |
| | | #{model} model, |
| | | #{sample} sample, |
| | | #{trees} tree |
| | | #{trees} tree, |
| | | id structure_item_parameter_id |
| | | from structure_item_parameter |
| | | where sample LIKE CONCAT('%[', #{tree}, ']%') |
| | | </select> |
| | |
| | | 0 state, |
| | | #{model} model, |
| | | #{sample} sample, |
| | | #{trees} tree |
| | | #{trees} tree, |
| | | id structure_item_parameter_id |
| | | from structure_item_parameter |
| | | where ( |
| | | sample is NULL |