| | |
| | | <select id="listMonitorByIds" resultType="com.sandu.ximon.dao.bo.MonitorBo"> |
| | | SELECT |
| | | t1.*, t2.pole_id, |
| | | t3.pole_name |
| | | t3.pole_name, t3.province,t3.city,t3.region,t3.address |
| | | FROM |
| | | monitor t1 |
| | | LEFT JOIN pole_binding t2 ON t1.device_serial = t2.device_code |
| | |
| | | <if test="bindingState != 2"> |
| | | AND t1.binding_state = #{bindingState} |
| | | </if> |
| | | <if test="equipmentState != 2"> |
| | | AND t1.equipment_state = #{equipmentState} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="listMonitorDeviceSerial" resultType="java.lang.String"> |
| | | SELECT device_serial FROM monitor; |
| | | </select> |
| | | |
| | | </mapper> |