use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class AbnormalController method list.
@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
PageHelper.startPage(page, size);
List<Abnormal> list = abnormalService.findAll();
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class ChangeItemController method selectChangeItemList.
/**
* 根据联系单id查找该联系单的所有变更条目
* @param page
* @param size
* @param contactFormId
* @return
*/
@PostMapping("/selectChangeItemList")
public Result selectChangeItemList(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam Integer contactFormId) {
PageHelper.startPage(page, size);
List<ChangeItem> list = changeItemService.selectChangeItemList(contactFormId);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class InstallPlanActualController method selectInstallPlanActualDetails.
/**
* 根据条件查询排产计划及其完成情况细节。
*
* @param orderNum 订单编号
* @param nameplate 机器编号
* @param installGroupName 安装组名称
* @param type 排产类型: 部装,总装
* @param queryStartTime 计划日期起始
* @param queryFinishTime 计划日期结束
* @param isNotFinished true时查询未完成的排产,为false时查询 或空时 不管是否完成。
* @return
*/
@PostMapping("/selectInstallPlanActualDetails")
public Result selectInstallPlanActualDetails(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, String orderNum, String nameplate, String installGroupName, String type, String queryStartTime, String queryFinishTime, Boolean isNotFinished) {
PageHelper.startPage(page, size);
List<InstallPlanActualDetails> list = installPlanActualService.selectInstallPlanActualDetails(orderNum, nameplate, installGroupName, type, queryStartTime, queryFinishTime, isNotFinished);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class InstallPlanActualController method list.
@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
PageHelper.startPage(page, size);
List<InstallPlanActual> list = installPlanActualService.findAll();
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class IotMachineController method list.
@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
PageHelper.startPage(page, size);
List<IotMachine> list = iotMachineService.findAll();
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
Aggregations