org.jeecg.modules.demo.test.entity.JeecgOrderMain Java Examples
The following examples show how to use
org.jeecg.modules.demo.test.entity.JeecgOrderMain.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JeecgOrderTabMainController.java From jeecg-cloud with Apache License 2.0 | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.save(jeecgOrderMain); return Result.ok("添加成功!"); }
Example #2
Source File: JeecgOrderMainController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 导出excel * * @param request */ @RequestMapping(value = "/exportXls") public ModelAndView exportXls(HttpServletRequest request, JeecgOrderMain jeecgOrderMain) { // Step.1 组装查询条件 QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, request.getParameterMap()); //Step.2 AutoPoi 导出Excel ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); //获取当前用户 LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); List<JeecgOrderMainPage> pageList = new ArrayList<JeecgOrderMainPage>(); List<JeecgOrderMain> jeecgOrderMainList = jeecgOrderMainService.list(queryWrapper); for (JeecgOrderMain orderMain : jeecgOrderMainList) { JeecgOrderMainPage vo = new JeecgOrderMainPage(); BeanUtils.copyProperties(orderMain, vo); // 查询机票 List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(orderMain.getId()); vo.setJeecgOrderTicketList(jeecgOrderTicketList); // 查询客户 List<JeecgOrderCustomer> jeecgOrderCustomerList = jeecgOrderCustomerService.selectCustomersByMainId(orderMain.getId()); vo.setJeecgOrderCustomerList(jeecgOrderCustomerList); pageList.add(vo); } // 导出文件名称 mv.addObject(NormalExcelConstants.FILE_NAME, "一对多订单示例"); // 注解对象Class mv.addObject(NormalExcelConstants.CLASS, JeecgOrderMainPage.class); // 自定义表格参数 mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("自定义导出Excel内容标题", "导出人:" + sysUser.getRealname(), "自定义Sheet名字")); // 导出数据列表 mv.addObject(NormalExcelConstants.DATA_LIST, pageList); return mv; }
Example #3
Source File: JeecgOrderMainController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping(value = "/edit") public Result<?> eidt(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("编辑成功!"); }
Example #4
Source File: JeecgOrderMainController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.saveMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("添加成功!"); }
Example #5
Source File: JeecgOrderTabMainController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping("/edit") public Result<?> edit(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateById(jeecgOrderMain); return Result.ok("编辑成功!"); }
Example #6
Source File: JeecgOrderTabMainController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.save(jeecgOrderMain); return Result.ok("添加成功!"); }
Example #7
Source File: JeecgOrderTabMainController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/orderList") public Result<?> respondePagedData(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #8
Source File: JeecgOrderMainController.java From teaching with Apache License 2.0 | 5 votes |
/** * 导出excel * * @param request */ @RequestMapping(value = "/exportXls") public ModelAndView exportXls(HttpServletRequest request, JeecgOrderMain jeecgOrderMain) { // Step.1 组装查询条件 QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, request.getParameterMap()); //Step.2 AutoPoi 导出Excel ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); //获取当前用户 LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); List<JeecgOrderMainPage> pageList = new ArrayList<JeecgOrderMainPage>(); List<JeecgOrderMain> jeecgOrderMainList = jeecgOrderMainService.list(queryWrapper); for (JeecgOrderMain orderMain : jeecgOrderMainList) { JeecgOrderMainPage vo = new JeecgOrderMainPage(); BeanUtils.copyProperties(orderMain, vo); // 查询机票 List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(orderMain.getId()); vo.setJeecgOrderTicketList(jeecgOrderTicketList); // 查询客户 List<JeecgOrderCustomer> jeecgOrderCustomerList = jeecgOrderCustomerService.selectCustomersByMainId(orderMain.getId()); vo.setJeecgOrderCustomerList(jeecgOrderCustomerList); pageList.add(vo); } // 导出文件名称 mv.addObject(NormalExcelConstants.FILE_NAME, "一对多订单示例"); // 注解对象Class mv.addObject(NormalExcelConstants.CLASS, JeecgOrderMainPage.class); // 自定义表格参数 mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("自定义导出Excel内容标题", "导出人:" + sysUser.getRealname(), "自定义Sheet名字")); // 导出数据列表 mv.addObject(NormalExcelConstants.DATA_LIST, pageList); return mv; }
Example #9
Source File: JeecgOrderMainController.java From teaching with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping(value = "/edit") public Result<?> eidt(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("编辑成功!"); }
Example #10
Source File: JeecgOrderMainController.java From teaching with Apache License 2.0 | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.saveMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("添加成功!"); }
Example #11
Source File: JeecgOrderTabMainController.java From teaching with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping("/edit") public Result<?> edit(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateById(jeecgOrderMain); return Result.ok("编辑成功!"); }
Example #12
Source File: JeecgOrderTabMainController.java From teaching with Apache License 2.0 | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.save(jeecgOrderMain); return Result.ok("添加成功!"); }
Example #13
Source File: JeecgOrderTabMainController.java From teaching with Apache License 2.0 | 5 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/orderList") public Result<?> respondePagedData(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #14
Source File: JeecgOrderMainController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 导出excel * * @param request */ @RequestMapping(value = "/exportXls") public ModelAndView exportXls(HttpServletRequest request, JeecgOrderMain jeecgOrderMain) { // Step.1 组装查询条件 QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, request.getParameterMap()); //Step.2 AutoPoi 导出Excel ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); //获取当前用户 LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); List<JeecgOrderMainPage> pageList = new ArrayList<JeecgOrderMainPage>(); List<JeecgOrderMain> jeecgOrderMainList = jeecgOrderMainService.list(queryWrapper); for (JeecgOrderMain orderMain : jeecgOrderMainList) { JeecgOrderMainPage vo = new JeecgOrderMainPage(); BeanUtils.copyProperties(orderMain, vo); // 查询机票 List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(orderMain.getId()); vo.setJeecgOrderTicketList(jeecgOrderTicketList); // 查询客户 List<JeecgOrderCustomer> jeecgOrderCustomerList = jeecgOrderCustomerService.selectCustomersByMainId(orderMain.getId()); vo.setJeecgOrderCustomerList(jeecgOrderCustomerList); pageList.add(vo); } // 导出文件名称 mv.addObject(NormalExcelConstants.FILE_NAME, "一对多订单示例"); // 注解对象Class mv.addObject(NormalExcelConstants.CLASS, JeecgOrderMainPage.class); // 自定义表格参数 mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("自定义导出Excel内容标题", "导出人:" + sysUser.getRealname(), "自定义Sheet名字")); // 导出数据列表 mv.addObject(NormalExcelConstants.DATA_LIST, pageList); return mv; }
Example #15
Source File: JeecgOrderMainController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping(value = "/edit") public Result<?> eidt(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("编辑成功!"); }
Example #16
Source File: JeecgOrderMainController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.saveMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("添加成功!"); }
Example #17
Source File: JeecgOrderMainController.java From jeecg-cloud with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping(value = "/edit") public Result<?> eidt(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("编辑成功!"); }
Example #18
Source File: JeecgOrderMainController.java From jeecg-cloud with Apache License 2.0 | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.saveMain(jeecgOrderMain, jeecgOrderMainPage.getJeecgOrderCustomerList(), jeecgOrderMainPage.getJeecgOrderTicketList()); return Result.ok("添加成功!"); }
Example #19
Source File: JeecgOrderTabMainController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping("/edit") public Result<?> edit(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateById(jeecgOrderMain); return Result.ok("编辑成功!"); }
Example #20
Source File: JeecgOrderTabMainController.java From jeecg-cloud with Apache License 2.0 | 5 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/orderList") public Result<?> respondePagedData(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #21
Source File: JeecgOrderTabMainController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 添加 * * @param jeecgOrderMainPage * @return */ @PostMapping(value = "/add") public Result<?> add(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.save(jeecgOrderMain); return Result.ok("添加成功!"); }
Example #22
Source File: JeecgOrderTabMainController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/orderList") public Result<?> respondePagedData(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #23
Source File: JeecgOrderTabMainController.java From jeecg-cloud with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgOrderMainPage * @return */ @PutMapping("/edit") public Result<?> edit(@RequestBody JeecgOrderMainPage jeecgOrderMainPage) { JeecgOrderMain jeecgOrderMain = new JeecgOrderMain(); BeanUtils.copyProperties(jeecgOrderMainPage, jeecgOrderMain); jeecgOrderMainService.updateById(jeecgOrderMain); return Result.ok("编辑成功!"); }
Example #24
Source File: JeecgOrderMainController.java From jeecg-cloud with Apache License 2.0 | 5 votes |
/** * 导出excel * * @param request */ @RequestMapping(value = "/exportXls") public ModelAndView exportXls(HttpServletRequest request, JeecgOrderMain jeecgOrderMain) { // Step.1 组装查询条件 QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, request.getParameterMap()); //Step.2 AutoPoi 导出Excel ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); //获取当前用户 LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); List<JeecgOrderMainPage> pageList = new ArrayList<JeecgOrderMainPage>(); List<JeecgOrderMain> jeecgOrderMainList = jeecgOrderMainService.list(queryWrapper); for (JeecgOrderMain orderMain : jeecgOrderMainList) { JeecgOrderMainPage vo = new JeecgOrderMainPage(); BeanUtils.copyProperties(orderMain, vo); // 查询机票 List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(orderMain.getId()); vo.setJeecgOrderTicketList(jeecgOrderTicketList); // 查询客户 List<JeecgOrderCustomer> jeecgOrderCustomerList = jeecgOrderCustomerService.selectCustomersByMainId(orderMain.getId()); vo.setJeecgOrderCustomerList(jeecgOrderCustomerList); pageList.add(vo); } // 导出文件名称 mv.addObject(NormalExcelConstants.FILE_NAME, "一对多订单示例"); // 注解对象Class mv.addObject(NormalExcelConstants.CLASS, JeecgOrderMainPage.class); // 自定义表格参数 mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("自定义导出Excel内容标题", "导出人:" + sysUser.getRealname(), "自定义Sheet名字")); // 导出数据列表 mv.addObject(NormalExcelConstants.DATA_LIST, pageList); return mv; }
Example #25
Source File: JeecgOrderMainController.java From jeecg-cloud with Apache License 2.0 | 3 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/list") public Result<?> queryPageList(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #26
Source File: JeecgOrderMainController.java From jeecg-boot-with-activiti with MIT License | 3 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/list") public Result<?> queryPageList(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #27
Source File: JeecgOrderMainController.java From teaching with Apache License 2.0 | 3 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/list") public Result<?> queryPageList(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #28
Source File: JeecgOrderMainController.java From jeecg-boot with Apache License 2.0 | 3 votes |
/** * 分页列表查询 * * @param jeecgOrderMain * @param pageNo * @param pageSize * @param req * @return */ @GetMapping(value = "/list") public Result<?> queryPageList(JeecgOrderMain jeecgOrderMain, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderMain> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderMain, req.getParameterMap()); Page<JeecgOrderMain> page = new Page<JeecgOrderMain>(pageNo, pageSize); IPage<JeecgOrderMain> pageList = jeecgOrderMainService.page(page, queryWrapper); return Result.ok(pageList); }
Example #29
Source File: JeecgOrderTabMainController.java From jeecg-cloud with Apache License 2.0 | 2 votes |
/** * 通过id查询 * * @param id * @return */ @GetMapping(value = "/queryById") public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { JeecgOrderMain jeecgOrderMain = jeecgOrderMainService.getById(id); return Result.ok(jeecgOrderMain); }
Example #30
Source File: JeecgOrderTabMainController.java From jeecg-boot with Apache License 2.0 | 2 votes |
/** * 通过id查询 * * @param id * @return */ @GetMapping(value = "/queryById") public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { JeecgOrderMain jeecgOrderMain = jeecgOrderMainService.getById(id); return Result.ok(jeecgOrderMain); }