| | |
| | | and father = #{deviceGroup} |
| | | and device_status in (1, 5) |
| | | </select> |
| | | <!--选择设备组--> |
| | | <!--选择生产设备组--> |
| | | <select id="chooseDevGroup" resultType="java.util.Map"> |
| | | select distinct father |
| | | from mom_ocean.device |
| | | where state = 1 |
| | | and device_status in (1, 5) |
| | | and type = 1 |
| | | </select> |
| | | |
| | | <!--原材料检验-选择设备--> |
| | | <!--选择检验设备--> |
| | | <resultMap id="oneMap" type="map"> |
| | | <result property="name" column="father"/> |
| | | <collection property="children" resultMap="twoMap" javaType="List"/> |
| | |
| | | from mom_ocean.device |
| | | where state = 1 |
| | | and device_status in (1, 5) |
| | | and type = 2 |
| | | </select> |
| | | |
| | | <!--新增选择设备组--> |