Search in sources :

Example 1 with TaskReport

use of com.eservice.api.model.task_record.TaskReport 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);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) TaskReport(com.eservice.api.model.task_record.TaskReport) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Aggregations

TaskReport (com.eservice.api.model.task_record.TaskReport)1 PageInfo (com.github.pagehelper.PageInfo)1 PostMapping (org.springframework.web.bind.annotation.PostMapping)1