SELECT a.* ,f.* FROM
sys_we_number a,sys_waterandpower f
WHERE a.device_id=f.id and f.floor_id!=a.floor_id and 0=a.ntype
ORDER BY a.time desc
SELECT a.* ,f.* FROM
sys_we_number a,sys_waterandpower f
WHERE a.device_id=f.id and f.floor_id!=a.floor_id and 0=a.ntype
ORDER BY a.time desc