沈斌
2018-05-08 87edfeea2b218924a9a4b37912fcdaf180cc9150
src/main/resources/mapper/DeviceMapper.xml
@@ -210,9 +210,11 @@
   </select>
   <select id="selectWithOrgIdsByMac" parameterType="java.lang.String" resultMap="BaseResultWithOrgIdsMap">
      select
      id,device_version_id,mac,monitor_point_id
      from device
      where mac = #{mac,jdbcType=VARCHAR}
      dev.*,
      mpt.name as monitor_point_name
      from device dev
        left join monitor_point  mpt on dev.monitor_point_id = mpt.id
      where dev.mac = #{mac,jdbcType=VARCHAR}
   </select>
   <select id="getDeviceCountByRegion" resultType="java.lang.Integer">