"where t.status=?1",nativeQuery =true) List<Map> getByStatus3(String status); Service層也需要用List<Map>進(jìn)行接收。 1 2 3 publicList<Map> t(String param) { returntestRepository.getByStatus3(param); } 如果后續(xù)還有其他操作,還是需要轉(zhuǎn)成自定義對象怎么辦,畢竟Map操作起來挺麻煩的??梢杂萌缦?..
www.dbjr.com.cn/article/2612...htm 2025-5-30