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);
}
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);
}
Aggregations