XiaoRuby
2023-09-01 8e39c9bbf8a8bb4707f2a766295b40497ae96706
standard-server/src/main/resources/mapper/DeviceMapper.xml
@@ -56,10 +56,18 @@
            AND d.`father` = #{fatherName}
        </if>
    </select>
    <select id="getDeviceNameByGroup" resultType="java.util.Map">
        select id, name
        select id as deviceid, name deviceName
        from mom_ocean.device
        where state=1
        and father=#{deviceGroup}
        where state = 1
          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)
    </select>
</mapper>