mybatis 怎么返回map

2024-12-05 02:05:58
推荐回答(1个)
回答1:

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