Search in sources :

Example 91 with PageInfo

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

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

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

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

Example 95 with 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);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) MachinePlan(com.eservice.api.model.machine.MachinePlan) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Aggregations

PageInfo (com.github.pagehelper.PageInfo)273 PostMapping (org.springframework.web.bind.annotation.PostMapping)96 EUDataGridResult (com.megagao.production.ssm.domain.customize.EUDataGridResult)90 Test (org.junit.Test)21 UserMapper (com.github.pagehelper.mapper.UserMapper)17 User (com.github.pagehelper.model.User)17 SqlSession (org.apache.ibatis.session.SqlSession)17 ApiOperation (io.swagger.annotations.ApiOperation)14 TaskRecordDetail (com.eservice.api.model.task_record.TaskRecordDetail)11 Condition (tk.mybatis.mapper.entity.Condition)9 DataTablesResult (cn.exrick.common.pojo.DataTablesResult)7 ArrayList (java.util.ArrayList)7 Criteria (tk.mybatis.mapper.entity.Example.Criteria)6 TaskRecord (com.eservice.api.model.task_record.TaskRecord)4 Product (com.megagao.production.ssm.domain.Product)4 Task (com.megagao.production.ssm.domain.Task)4 ManufactureVO (com.megagao.production.ssm.domain.vo.ManufactureVO)4 WorkVO (com.megagao.production.ssm.domain.vo.WorkVO)4 MachineInfo (com.eservice.api.model.machine.MachineInfo)3 User (com.eservice.api.model.user.User)3