| | |
| | | |
| | | <!--选择设备--> |
| | | <resultMap id="chooseinstumMap" type="map"> |
| | | <id property="name" column="father_name"/> |
| | | <id property="id" column="cid"/> |
| | | <result property="name" column="father_name"/> |
| | | <collection property="children" resultMap="chooseinstumTowMap" javaType="List"/> |
| | | </resultMap> |
| | | <resultMap id="chooseinstumTowMap" type="map"> |
| | |
| | | equipment_name name |
| | | from lims_laboratory.instrument |
| | | left join lims_laboratory.classify c on c.id = instrument.classify_id |
| | | where conditions in(1,5) |
| | | </select> |
| | | <select id="getInstrument" resultType="com.yuanchu.limslaboratory.pojo.Instrument"> |
| | | select id,equipment_name name from instrument where 1=1 and state=1 and conditions=5 |
| | | </select> |
| | | </mapper> |