test 类 public class Test extends BaseTest<Test> { public static final Test dao = new Test().dao(); public List<Blog> getBlogs() { return Blog.dao.find("select * from blog where test_id=?", get("id")); } } blog类 public class Blog extends BaseBlog<Blog> { public static final Blog dao = new Blog(); public Test getTest(){ return Test.dao.get("test_id"); } } List<Test> tests =Test..find(sql); List<Record> tests2= Db .(sql); 两种的查询返回值: [{"id":1,"bolg_id":1,"title":"JFinal Demo Title here","content":"JFinal Demo Content here","test_id":1}, {"id":2,"bolg_id":1,"title":"test 1","content":"test 1","test_id":1}, {"id":3,"bolg_id":1,"title":"test 2","content":"test 2","test_id":1}, {"id":4,"bolg_id":1,"title":"test 3","content":"test 3","test_id":1}, {"id":5,"bolg_id":1,"title":"test 4","content":"test 4","test_id":1}, {"id":6,"bolg_id":1,"title":"www","content":"www","test_id":1}, {"id":7,"bolg_id":1,"title":"333","content":"333","test_id":1}, {"id":8,"bolg_id":1,"title":"二十日群无群翁","content":"群威群胆撒大所多大多","test_id":1}] 不是想要的数据格式,请大佬们帮助一下
项目:JFinal