Search in sources :

Example 1 with Process

use of com.eservice.api.model.process.Process in project sinsim by WilsonHu.

the class ProcessController method list.

@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
    PageHelper.startPage(page, size);
    List<Process> list = processService.findAll();
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) Process(com.eservice.api.model.process.Process) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Example 2 with Process

use of com.eservice.api.model.process.Process in project sinsim by WilsonHu.

the class ProcessController method selectProcess.

@PostMapping("/selectProcess")
public Result selectProcess(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, Integer id, Boolean isSimple) {
    PageHelper.startPage(page, size);
    List<Process> list = processService.selectProcess(id, isSimple);
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) Process(com.eservice.api.model.process.Process) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Aggregations

Process (com.eservice.api.model.process.Process)2 PageInfo (com.github.pagehelper.PageInfo)2 PostMapping (org.springframework.web.bind.annotation.PostMapping)2