Search in sources :

Example 76 with PageInfo

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

the class AbnormalController method list.

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

Example 77 with PageInfo

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

the class ChangeItemController method selectChangeItemList.

/**
 * 根据联系单id查找该联系单的所有变更条目
 * @param page
 * @param size
 * @param contactFormId
 * @return
 */
@PostMapping("/selectChangeItemList")
public Result selectChangeItemList(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, @RequestParam Integer contactFormId) {
    PageHelper.startPage(page, size);
    List<ChangeItem> list = changeItemService.selectChangeItemList(contactFormId);
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) ChangeItem(com.eservice.api.model.change_item.ChangeItem) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Example 78 with PageInfo

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

the class InstallPlanActualController method selectInstallPlanActualDetails.

/**
 * 根据条件查询排产计划及其完成情况细节。
 *
 * @param orderNum 订单编号
 * @param nameplate 机器编号
 * @param installGroupName 安装组名称
 * @param type 排产类型: 部装,总装
 * @param queryStartTime 计划日期起始
 * @param queryFinishTime 计划日期结束
 * @param isNotFinished true时查询未完成的排产,为false时查询 或空时 不管是否完成。
 * @return
 */
@PostMapping("/selectInstallPlanActualDetails")
public Result selectInstallPlanActualDetails(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size, String orderNum, String nameplate, String installGroupName, String type, String queryStartTime, String queryFinishTime, Boolean isNotFinished) {
    PageHelper.startPage(page, size);
    List<InstallPlanActualDetails> list = installPlanActualService.selectInstallPlanActualDetails(orderNum, nameplate, installGroupName, type, queryStartTime, queryFinishTime, isNotFinished);
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) InstallPlanActualDetails(com.eservice.api.model.install_plan_actual.InstallPlanActualDetails)

Example 79 with PageInfo

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

the class InstallPlanActualController method list.

@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
    PageHelper.startPage(page, size);
    List<InstallPlanActual> list = installPlanActualService.findAll();
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) InstallPlanActual(com.eservice.api.model.install_plan_actual.InstallPlanActual)

Example 80 with PageInfo

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

the class IotMachineController method list.

@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
    PageHelper.startPage(page, size);
    List<IotMachine> list = iotMachineService.findAll();
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) IotMachine(com.eservice.api.model.iot_machine.IotMachine)

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