use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class SignProcessController method list.
@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
PageHelper.startPage(page, size);
List<SignProcess> list = signProcessService.findAll();
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskPlanController method list.
@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
PageHelper.startPage(page, size);
List<TaskPlan> list = taskPlanService.findAll();
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskRecordController method selectPlanedTaskRecords.
/**
* 获取已计划的task record
*/
@PostMapping("/selectPlanedTaskRecords")
public Result selectPlanedTaskRecords(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, String orderNum, String machineStrId, String taskName, String nameplate, Integer installStatus, Integer machineType, String query_start_time, String query_finish_time, @RequestParam(defaultValue = "true") Boolean is_fuzzy) {
PageHelper.startPage(page, size);
List<TaskRecordDetail> list = taskRecordService.selectPlanedTaskRecords(orderNum, machineStrId, taskName, nameplate, installStatus, machineType, query_start_time, query_finish_time, is_fuzzy);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskRecordController method selectTaskPlans.
/**
* 根据 taskRecord.id 返回 task_plans
*
* @param page
* @param size
* @param taskRecordId
* @return
*/
@PostMapping("/selectTaskPlans")
public Result selectTaskPlans(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam Integer taskRecordId) {
PageHelper.startPage(page, size);
List<TaskPlan> list = taskRecordService.selectTaskPlans(taskRecordId);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskRecordController method selectUnPlannedTaskRecordByNamePlateAndAccount.
/**
* 返回待计划的Task_record具体信息
*
* @param page
* @param size
* @param namePlate
* @param account
* @return
*/
@PostMapping("/selectUnPlannedTaskRecordByNamePlateAndAccount")
public Result selectUnPlannedTaskRecordByNamePlateAndAccount(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam(defaultValue = "0") String namePlate, @RequestParam(defaultValue = "0") String account) {
PageHelper.startPage(page, size);
List<TaskRecordDetail> list = taskRecordService.selectUnPlannedTaskRecordByNamePlateAndAccount(namePlate, account);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
Aggregations