Search in sources :

Example 11 with TaskRecordDetail

use of com.eservice.api.model.task_record.TaskRecordDetail in project sinsim by WilsonHu.

the class TaskRecordController method selectTaskRecordByMachineNameplate.

/**
 * 根据机器铭牌(即机器编号)查询对应的机器正在操作的taskRecordDetail(全部状态) 。
 *
 * @param page
 * @param size
 * @param namePlate
 * @return
 */
// TODO: 该接口返回的数据似乎不完整,待查。
@PostMapping("/selectTaskRecordByMachineNameplate")
public Result selectTaskRecordByMachineNameplate(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam(defaultValue = "0") String namePlate) {
    PageHelper.startPage(page, size);
    List<TaskRecordDetail> list = taskRecordService.selectTaskRecordByMachineNameplate(namePlate);
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) TaskRecordDetail(com.eservice.api.model.task_record.TaskRecordDetail) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Aggregations

TaskRecordDetail (com.eservice.api.model.task_record.TaskRecordDetail)11 PageInfo (com.github.pagehelper.PageInfo)11 PostMapping (org.springframework.web.bind.annotation.PostMapping)11 Machine (com.eservice.api.model.machine.Machine)1 MachineOrder (com.eservice.api.model.machine_order.MachineOrder)1 MachineType (com.eservice.api.model.machine_type.MachineType)1 SimpleDateFormat (java.text.SimpleDateFormat)1 HSSFCellStyle (org.apache.poi.hssf.usermodel.HSSFCellStyle)1 HSSFFont (org.apache.poi.hssf.usermodel.HSSFFont)1 HSSFWorkbook (org.apache.poi.hssf.usermodel.HSSFWorkbook)1 POIFSFileSystem (org.apache.poi.poifs.filesystem.POIFSFileSystem)1 Row (org.apache.poi.ss.usermodel.Row)1 Sheet (org.apache.poi.ss.usermodel.Sheet)1