Easyui and mvc 项目05——新书上架及门户首页
一、 新书上架
dao和Action
dao 根据时间降序:
//新书上架
public List
String sql="select * from t_easyui_book where state=2 order by deployTime desc limit 8";
return super.executeQuery(sql, Book.class, pageBean);
}
Action:
public void news(HttpServletRequest req, HttpServletResponse resp) {
try {
List
ResponseUtil.writeJson(resp, list);
共有 0 条评论