沈斌
2018-02-08 f4fd246c9ce2a11fa06ba90ee425edf33f52741a
src/main/resources/mapper/DeviceMapper.xml
@@ -158,8 +158,9 @@
      </where>
   </select>
   <select id="selectByMap" parameterType="java.util.Map" resultMap="BaseResultMap">
      SELECT dev.* from device dev
      SELECT dev.*,dve.version as device_version_value from device dev
      left join monitor_point  mpt on dev.monitor_point_id = mpt.id
        left join device_version dve on dev.device_version_id = dve.id
      <where>
         <if test="@com.moral.common.bean.Constants@isNotSpecialOrgId(orgId)">
            mpt.organization_id = #{orgId,jdbcType=VARCHAR}