Search in sources :

Example 86 with PageInfo

use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.

the class SignProcessController method list.

@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
    PageHelper.startPage(page, size);
    List<SignProcess> list = signProcessService.findAll();
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) SignProcess(com.eservice.api.model.sign_process.SignProcess) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Example 87 with PageInfo

use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.

the class TaskPlanController method list.

@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
    PageHelper.startPage(page, size);
    List<TaskPlan> list = taskPlanService.findAll();
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) TaskPlan(com.eservice.api.model.task_plan.TaskPlan) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Example 88 with PageInfo

use of com.github.pagehelper.PageInfo 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)

Example 89 with PageInfo

use of com.github.pagehelper.PageInfo in project sinsim by WilsonHu.

the class TaskRecordController method selectTaskPlans.

/**
 * 根据 taskRecord.id 返回 task_plans
 *
 * @param page
 * @param size
 * @param taskRecordId
 * @return
 */
@PostMapping("/selectTaskPlans")
public Result selectTaskPlans(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam Integer taskRecordId) {
    PageHelper.startPage(page, size);
    List<TaskPlan> list = taskRecordService.selectTaskPlans(taskRecordId);
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) TaskPlan(com.eservice.api.model.task_plan.TaskPlan) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Example 90 with PageInfo

use of com.github.pagehelper.PageInfo 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)

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