| | |
| | | #{deviceCode} |
| | | </foreach> |
| | | </if> |
| | | <if test="bindingState != 2"> |
| | | AND t1.binding_state = #{bindingState} |
| | | </if> |
| | | <if test="equipmentState != 2"> |
| | | AND t1.equipment_state = #{equipmentState} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="listMonitorDeviceSerial1" resultType="com.sandu.ximon.dao.domain.Monitor"> |
| | | <select id="listMonitorDeviceSerial1" resultType="com.sandu.ximon.dao.bo.MonitorBo"> |
| | | SELECT |
| | | t1.* |
| | | t1.*, t2.pole_id, |
| | | 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 |
| | |
| | | OR t1.note LIKE CONCAT(CONCAT('%', #{keyword}), '%') |
| | | OR t3.pole_code LIKE CONCAT(CONCAT('%', #{keyword}), '%')) |
| | | </if> |
| | | <if test="bindingState != 2"> |
| | | AND t1.binding_state = #{bindingState} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |