use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskRecordController method selectTaskReports.
/**
* 返回时间段内某安装工序taskName的安装记录
*
* @param page
* @param size
* @param taskName
* @param installStartTime
* @param installFinishTime
* @return
*/
@PostMapping("selectTaskReports")
public Result selectTaskReports(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, String taskName, String installStartTime, String installFinishTime) {
PageHelper.startPage(page, size);
List<TaskReport> list = taskRecordService.selectTaskReports(taskName, installStartTime, installFinishTime);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskRecordController method selectAllQaTaskRecordDetailByUserAccount.
/**
* 根据用户返回所有检测员detail,其中不限于包括:
* "machine_id":"", -->machine.machine_id
* "task_name":"", -->task_record.task_name
* "status":"", -->task_record.status
* "交货日期":"", -->machine_order.contract_ship_date
* "计划日期":"", -->machine_order.plan_ship_date
*
* @param page
* @param size
* @param userAccount -- 新的质检方案,质检不再指定质检人, 质检人可以为空
* @return
*/
@PostMapping("selectAllQaTaskRecordDetailByUserAccount")
public Result selectAllQaTaskRecordDetailByUserAccount(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, String userAccount) {
PageHelper.startPage(page, size);
List<TaskRecordDetail> ListTaskRecordDetail = taskRecordService.selectAllQaTaskRecordDetailByUserAccount(userAccount);
PageInfo pageInfo = new PageInfo(ListTaskRecordDetail);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskRecordController method selectTaskReocords.
/**
* 根据userAccount 返回该用户的 Tasks
*
* @param page
* @param size
* @param userAccount
* @return 返回该用户的 Tasks
*/
@PostMapping("/selectTaskReocords")
public Result selectTaskReocords(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam String userAccount) {
PageHelper.startPage(page, size);
List<TaskRecord> list = taskRecordService.selectTaskReocords(userAccount);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class TaskRecordController method selectAllTaskRecordDetail.
/**
* 给生产部管理员返回所有detail,其中不限于包括:
* {
* "machine_id":"",
* "task_name":"",
* "status":"",
* "交货日期":"",
* "计划日期":"",
* }
*
* @param page
* @param size
* @return
*/
@PostMapping("selectAllTaskRecordDetail")
public Result selectAllTaskRecordDetail(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
PageHelper.startPage(page, size);
List<TaskRecordDetail> ListTaskRecordDetail = taskRecordService.selectAllTaskRecordDetail();
PageInfo pageInfo = new PageInfo(ListTaskRecordDetail);
return ResultGenerator.genSuccessResult(pageInfo);
}
use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.
the class MachineController method selectPlanningMachines.
/**
* @param orderNum
* @param machineStrId
* @param nameplate
* @param location
* @param status
* @param machineType
* @param dateType 1: 合同交货日期; 2:计划交货日期
* @param query_start_time
* @param query_finish_time
* @param is_fuzzy
* @return
*/
@PostMapping("/selectPlanningMachines")
public Result selectPlanningMachines(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, String orderNum, String machineStrId, String nameplate, String location, Byte status, Integer machineType, Integer dateType, String query_start_time, String query_finish_time, @RequestParam(defaultValue = "true") Boolean is_fuzzy) {
PageHelper.startPage(page, size);
List<MachinePlan> list = machineService.selectPlanningMachines(orderNum, machineStrId, nameplate, location, status, machineType, dateType, query_start_time, query_finish_time, is_fuzzy);
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}
Aggregations