org.jeecg.modules.demo.test.entity.JeecgOrderTicket Java Examples
The following examples show how to use
org.jeecg.modules.demo.test.entity.JeecgOrderTicket.
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 |
/** * 通过id查询 * * @param jeecgOrderTicket * @return */ @GetMapping(value = "/listOrderTicketByMainId") public Result<?> queryOrderTicketListByMainId(JeecgOrderTicket jeecgOrderTicket, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderTicket> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderTicket, req.getParameterMap()); Page<JeecgOrderTicket> page = new Page<JeecgOrderTicket>(pageNo, pageSize); IPage<JeecgOrderTicket> pageList = jeecgOrderTicketService.page(page, queryWrapper); return Result.ok(pageList); }
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-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 #4
Source File: JeecgOrderTabMainController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 通过id查询 * * @param jeecgOrderTicket * @return */ @GetMapping(value = "/listOrderTicketByMainId") public Result<?> queryOrderTicketListByMainId(JeecgOrderTicket jeecgOrderTicket, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderTicket> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderTicket, req.getParameterMap()); Page<JeecgOrderTicket> page = new Page<JeecgOrderTicket>(pageNo, pageSize); IPage<JeecgOrderTicket> pageList = jeecgOrderTicketService.page(page, queryWrapper); return Result.ok(pageList); }
Example #5
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 #6
Source File: JeecgOrderTabMainController.java From teaching with Apache License 2.0 | 5 votes |
/** * 通过id查询 * * @param jeecgOrderTicket * @return */ @GetMapping(value = "/listOrderTicketByMainId") public Result<?> queryOrderTicketListByMainId(JeecgOrderTicket jeecgOrderTicket, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderTicket> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderTicket, req.getParameterMap()); Page<JeecgOrderTicket> page = new Page<JeecgOrderTicket>(pageNo, pageSize); IPage<JeecgOrderTicket> pageList = jeecgOrderTicketService.page(page, queryWrapper); return Result.ok(pageList); }
Example #7
Source File: JeecgOrderTabMainController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 通过id查询 * * @param jeecgOrderTicket * @return */ @GetMapping(value = "/listOrderTicketByMainId") public Result<?> queryOrderTicketListByMainId(JeecgOrderTicket jeecgOrderTicket, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { QueryWrapper<JeecgOrderTicket> queryWrapper = QueryGenerator.initQueryWrapper(jeecgOrderTicket, req.getParameterMap()); Page<JeecgOrderTicket> page = new Page<JeecgOrderTicket>(pageNo, pageSize); IPage<JeecgOrderTicket> pageList = jeecgOrderTicketService.page(page, queryWrapper); return Result.ok(pageList); }
Example #8
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 #9
Source File: JeecgOrderTicketMapper.java From jeecg-boot with Apache License 2.0 | 4 votes |
@Select("SELECT * FROM JEECG_ORDER_TICKET WHERE ORDER_ID = #{mainId}") public List<JeecgOrderTicket> selectTicketsByMainId(String mainId);
Example #10
Source File: JeecgOrderTicketServiceImpl.java From jeecg-boot with Apache License 2.0 | 4 votes |
@Override public List<JeecgOrderTicket> selectTicketsByMainId(String mainId) { return jeecgOrderTicketMapper.selectTicketsByMainId(mainId); }
Example #11
Source File: JeecgOrderTicketMapper.java From teaching with Apache License 2.0 | 4 votes |
@Select("SELECT * FROM JEECG_ORDER_TICKET WHERE ORDER_ID = #{mainId}") public List<JeecgOrderTicket> selectTicketsByMainId(String mainId);
Example #12
Source File: JeecgOrderTicketServiceImpl.java From teaching with Apache License 2.0 | 4 votes |
@Override public List<JeecgOrderTicket> selectTicketsByMainId(String mainId) { return jeecgOrderTicketMapper.selectTicketsByMainId(mainId); }
Example #13
Source File: JeecgOrderTicketMapper.java From jeecg-boot-with-activiti with MIT License | 4 votes |
@Select("SELECT * FROM JEECG_ORDER_TICKET WHERE ORDER_ID = #{mainId}") public List<JeecgOrderTicket> selectTicketsByMainId(String mainId);
Example #14
Source File: JeecgOrderTicketServiceImpl.java From jeecg-boot-with-activiti with MIT License | 4 votes |
@Override public List<JeecgOrderTicket> selectTicketsByMainId(String mainId) { return jeecgOrderTicketMapper.selectTicketsByMainId(mainId); }
Example #15
Source File: JeecgOrderTicketMapper.java From jeecg-cloud with Apache License 2.0 | 4 votes |
@Select("SELECT * FROM JEECG_ORDER_TICKET WHERE ORDER_ID = #{mainId}") public List<JeecgOrderTicket> selectTicketsByMainId(String mainId);
Example #16
Source File: JeecgOrderTicketServiceImpl.java From jeecg-cloud with Apache License 2.0 | 4 votes |
@Override public List<JeecgOrderTicket> selectTicketsByMainId(String mainId) { return jeecgOrderTicketMapper.selectTicketsByMainId(mainId); }
Example #17
Source File: JeecgOrderTabMainController.java From jeecg-cloud with Apache License 2.0 | 2 votes |
/** * 添加 * * @param jeecgOrderTicket * @return */ @PostMapping(value = "/addTicket") public Result<?> addTicket(@RequestBody JeecgOrderTicket jeecgOrderTicket) { jeecgOrderTicketService.save(jeecgOrderTicket); return Result.ok("添加成功!"); }
Example #18
Source File: JeecgOrderMainController.java From jeecg-boot-with-activiti with MIT License | 2 votes |
/** * 通过id查询 * * @param id * @return */ @GetMapping(value = "/queryOrderTicketListByMainId") public Result<?> queryOrderTicketListByMainId(@RequestParam(name = "id", required = true) String id) { List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(id); return Result.ok(jeecgOrderTicketList); }
Example #19
Source File: JeecgOrderTabMainController.java From jeecg-cloud with Apache License 2.0 | 2 votes |
/** * 编辑 * * @param jeecgOrderTicket * @return */ @PutMapping("/editTicket") public Result<?> editTicket(@RequestBody JeecgOrderTicket jeecgOrderTicket) { jeecgOrderTicketService.updateById(jeecgOrderTicket); return Result.ok("编辑成功!"); }
Example #20
Source File: IJeecgOrderMainService.java From jeecg-boot with Apache License 2.0 | 2 votes |
/** * 修改一对多 * */ public void updateMain(JeecgOrderMain jeecgOrderMain,List<JeecgOrderCustomer> jeecgOrderCustomerList,List<JeecgOrderTicket> jeecgOrderTicketList);
Example #21
Source File: IJeecgOrderMainService.java From jeecg-boot with Apache License 2.0 | 2 votes |
/** * 添加一对多 * */ public void saveMain(JeecgOrderMain jeecgOrderMain,List<JeecgOrderCustomer> jeecgOrderCustomerList,List<JeecgOrderTicket> jeecgOrderTicketList) ;
Example #22
Source File: JeecgOrderMainController.java From jeecg-cloud with Apache License 2.0 | 2 votes |
/** * 通过id查询 * * @param id * @return */ @GetMapping(value = "/queryOrderTicketListByMainId") public Result<?> queryOrderTicketListByMainId(@RequestParam(name = "id", required = true) String id) { List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(id); return Result.ok(jeecgOrderTicketList); }
Example #23
Source File: JeecgOrderMainController.java From jeecg-boot with Apache License 2.0 | 2 votes |
/** * 通过id查询 * * @param id * @return */ @GetMapping(value = "/queryOrderTicketListByMainId") public Result<?> queryOrderTicketListByMainId(@RequestParam(name = "id", required = true) String id) { List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(id); return Result.ok(jeecgOrderTicketList); }
Example #24
Source File: JeecgOrderTabMainController.java From jeecg-boot with Apache License 2.0 | 2 votes |
/** * 编辑 * * @param jeecgOrderTicket * @return */ @PutMapping("/editTicket") public Result<?> editTicket(@RequestBody JeecgOrderTicket jeecgOrderTicket) { jeecgOrderTicketService.updateById(jeecgOrderTicket); return Result.ok("编辑成功!"); }
Example #25
Source File: JeecgOrderTabMainController.java From jeecg-boot with Apache License 2.0 | 2 votes |
/** * 添加 * * @param jeecgOrderTicket * @return */ @PostMapping(value = "/addTicket") public Result<?> addTicket(@RequestBody JeecgOrderTicket jeecgOrderTicket) { jeecgOrderTicketService.save(jeecgOrderTicket); return Result.ok("添加成功!"); }
Example #26
Source File: IJeecgOrderMainService.java From jeecg-cloud with Apache License 2.0 | 2 votes |
/** * 添加一对多 * */ public void saveMain(JeecgOrderMain jeecgOrderMain,List<JeecgOrderCustomer> jeecgOrderCustomerList,List<JeecgOrderTicket> jeecgOrderTicketList) ;
Example #27
Source File: IJeecgOrderMainService.java From jeecg-cloud with Apache License 2.0 | 2 votes |
/** * 修改一对多 * */ public void updateMain(JeecgOrderMain jeecgOrderMain,List<JeecgOrderCustomer> jeecgOrderCustomerList,List<JeecgOrderTicket> jeecgOrderTicketList);
Example #28
Source File: IJeecgOrderMainService.java From teaching with Apache License 2.0 | 2 votes |
/** * 修改一对多 * */ public void updateMain(JeecgOrderMain jeecgOrderMain,List<JeecgOrderCustomer> jeecgOrderCustomerList,List<JeecgOrderTicket> jeecgOrderTicketList);
Example #29
Source File: IJeecgOrderMainService.java From teaching with Apache License 2.0 | 2 votes |
/** * 添加一对多 * */ public void saveMain(JeecgOrderMain jeecgOrderMain,List<JeecgOrderCustomer> jeecgOrderCustomerList,List<JeecgOrderTicket> jeecgOrderTicketList) ;
Example #30
Source File: JeecgOrderMainController.java From teaching with Apache License 2.0 | 2 votes |
/** * 通过id查询 * * @param id * @return */ @GetMapping(value = "/queryOrderTicketListByMainId") public Result<?> queryOrderTicketListByMainId(@RequestParam(name = "id", required = true) String id) { List<JeecgOrderTicket> jeecgOrderTicketList = jeecgOrderTicketService.selectTicketsByMainId(id); return Result.ok(jeecgOrderTicketList); }