首页>代码>spring boot+mybatis+spring mvc整合开发超市订单后台管理系统>/超市订单管理系统/SMBMS/src/main/java/com/elead/controller/BillController.java
package com.elead.controller; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.elead.pojo.SmbmsBill; import com.elead.service.BillService; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; @Controller @RequestMapping("/jsp") public class BillController { @Autowired private BillService billService; @RequestMapping("/getBillList") @ResponseBody public Map<String, Object> getBillList(Integer pageNum, Integer pageSize, SmbmsBill bill) { System.out.println(pageNum+"================="); System.out.println(pageSize+"================="); System.out.println(bill.toString()+"================="); // 开始分页 PageHelper.startPage(pageNum, pageSize); PageInfo<SmbmsBill> allBill = billService.getAllBill(bill); // 新建一个map集合用于存储数据 Map<String, Object> map = new HashMap<String, Object>(); // 总条数 map.put("total", allBill.getTotal()); // 结果集 map.put("rows", allBill.getList()); // 当前页 map.put("pageNum", allBill.getPageNum()); // 每页的数量 map.put("pageSize", allBill.getPageSize()); // 当前页的数量 map.put("size", allBill.getSize()); // 总页数 map.put("pages", allBill.getPages()); // 所有导航页号 map.put("navigatepageNums", allBill.getNavigatepageNums()); // 是否为首页 map.put("isIsFirstPage", allBill.isIsFirstPage()); // 最后一页 map.put("isIsLastPage", allBill.isIsLastPage()); System.out.println("开始遍历商品"); System.err.println("订单管理后台信息:"+map); return map; } }

ma406805131 LV19
2024年12月24日
hanaumi LV2
2024年9月23日
864216741 LV2
2024年8月25日
爱在黎明破晓钱 LV7
2024年6月21日
微信网友_6013389878005760 LV3
2023年9月14日
18584457462 LV5
2023年5月7日
1613619109 LV6
2023年3月9日
liangge2115 LV27
2022年12月4日
计算机暴龙战士 LV19
2022年11月16日
djkhakjhbfjdwk LV2
2022年9月4日

ma406805131 LV19
2024年12月24日
微信网友_7294647983099904
2024年12月13日
暂无贡献等级
szq12138 LV1
2024年12月12日
shunlun8855 LV1
2024年10月25日
renhaojie12138
2024年10月16日
暂无贡献等级
半夏bx LV14
2024年10月4日
hanaumi LV2
2024年9月23日
微信网友_7030143019094016 LV1
2024年9月11日
864216741 LV2
2024年8月25日
Song3LL
2024年7月15日
暂无贡献等级