Search in sources :

Example 1 with TaskRecordDetail

use of com.eservice.api.model.task_record.TaskRecordDetail 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, @RequestParam String userAccount) {
    PageHelper.startPage(page, size);
    List<TaskRecordDetail> ListTaskRecordDetail = taskRecordService.selectAllQaTaskRecordDetailByUserAccount(userAccount);
    PageInfo pageInfo = new PageInfo(ListTaskRecordDetail);
    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)

Example 2 with TaskRecordDetail

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

Example 3 with TaskRecordDetail

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

the class TaskRecordController method selectUnPlannedTaskRecordByNamePlateAndAccount.

/**
 * 返回待计划的Task_record具体信息
 *
 * @param page
 * @param size
 * @param namePlate
 * @param account
 * @return
 */
@PostMapping("/selectUnPlannedTaskRecordByNamePlateAndAccount")
public Result selectUnPlannedTaskRecordByNamePlateAndAccount(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam(defaultValue = "0") String namePlate, @RequestParam(defaultValue = "0") String account) {
    PageHelper.startPage(page, size);
    List<TaskRecordDetail> list = taskRecordService.selectUnPlannedTaskRecordByNamePlateAndAccount(namePlate, account);
    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)

Example 4 with TaskRecordDetail

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

the class TaskRecordController method selectTaskRecordByNamePlateAndAccount.

/**
 * 根据account和机器的铭牌号(nameplate),
 * 返回对应机器正在操作的步骤(除去status为初始化、已计划和质检完成的task_record),且属于该account的排班计划。
 *
 * @param page
 * @param size
 * @param namePlate
 * @param account
 * @return
 */
@PostMapping("/selectTaskRecordByNamePlateAndAccount")
public Result selectTaskRecordByNamePlateAndAccount(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam(defaultValue = "0") String namePlate, @RequestParam(defaultValue = "0") String account) {
    PageHelper.startPage(page, size);
    List<TaskRecordDetail> list = taskRecordService.selectTaskRecordByNamePlateAndAccount(namePlate, account);
    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)

Example 5 with TaskRecordDetail

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

the class TaskRecordController method selectPlanedTaskRecords.

/**
 * 获取已计划的task record
 */
@PostMapping("/selectPlanedTaskRecords")
public Result selectPlanedTaskRecords(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, String orderNum, String machineStrId, String taskName, String nameplate, Integer installStatus, Integer machineType, String query_start_time, String query_finish_time, @RequestParam(defaultValue = "true") Boolean is_fuzzy) {
    PageHelper.startPage(page, size);
    List<TaskRecordDetail> list = taskRecordService.selectPlanedTaskRecords(orderNum, machineStrId, taskName, nameplate, installStatus, machineType, query_start_time, query_finish_time, is_fuzzy);
    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