我写的Dao
//根据登陆ID查询直属下属 (分页)
List> findByid(String id,RowBounds rowBounds);
对应的mapper
SELECT u.user_code,a.totasalar from c_user_info u JOIN c_attence_info aON u.id=a.relatedid
where department=(SELECT department FROM c_user_info where id=#{id})
and u.id!= #{id}
我需要分页所以要把值放到page实体类的list属性中
页面上一般用forEach循环输出可以直接取出来
${s.index+1}
${b.getkey()}
${b.getvalue()}
/c:forEach
现在问题是页面上需要两步 该怎么办?
业务需求是使用Spring+Mytatis框架需要从两张数据库的表中分别取出一个String来 并传到页面并且分页
这个问题怎么解决 我是新手 说的具体点 谢谢啦!