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);
}
Aggregations