Buy the souvenirs Time Limit: 10000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1662 Accepted Submission(s): 611 Problem Description When the winter holiday comes, a lot of people will have a trip. Genera…
Buy the souvenirs Time Limit: 10000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description When the winter holiday comes, a lot of people will have a trip. Generally, there are a lot of souvenirs to sell, and sometimes…
最近做了一个小任务,要求是:使用MySQL #筛选BETWEEN '2018-1-1 00:00:00' AND '2018-5-18 00:00:00'每日`status`='1'的记录总条数 SELECT DATE_FORMAT(createTime,'%Y-%m-%d') as time , count(*) as count FROM hm_stu_order WHERE `status`='1' AND createTime BETWEEN '2018-1-1 00:00:00' AN…
//PageHelper.startPage会返回一个page对象,这个对象在查询结果出来后会把页数,记录总数给page对象,用page.getPages()和getTotal()获取页数和记录总数. Page page = PageHelper.startPage(request.getPageNum(), request.getPageSize()); List list = Service.list(request); PageInfo pageInfo = new PageInfo(li…