| | |
| | | device dev |
| | | WHERE |
| | | dev.monitor_point_id IN |
| | | ( SELECT id FROM monitor_point mpt WHERE mpt.organization_id = #{orgId,jdbcType=INTEGER} ) |
| | | ( |
| | | SELECT id FROM monitor_point mpt |
| | | WHERE mpt.organization_id = #{orgId,jdbcType=INTEGER} |
| | | ) |
| | | ) |
| | | order by dvn.create_time desc |
| | | </select> |
| | | <select id="selectListByMpointId" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | device_version dvn |
| | | WHERE |
| | | dvn.id IN ( |
| | | SELECT DISTINCT |
| | | dev.device_version_id |
| | | FROM |
| | | device dev |
| | | WHERE |
| | | dev.monitor_point_id = #{mpointId,jdbcType=VARCHAR} |
| | | ) |
| | | order by dvn.create_time desc |
| | | </select> |
| | | </mapper> |