Mapper里面返回List,就是说Mapper里面的方法声明是 public List dao、service层也作相应修改,改为返回List SELECT count(*) value, c. NAME label, ifnull(b.device_status, 0) device_status FROM td01_device a LEFT OUTER JOIN td06_device