| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.PredictiveWorkPlanParameterHistory; |
| | | import org.jeecg.modules.eam.entity.PredictiveWorkPlanWarn; |
| | | import org.jeecg.modules.eam.entity.PredictiveWorkPlanWarnHistory; |
| | | import org.jeecg.modules.eam.service.IPredictiveWorkPlanWarnHistoryService; |
| | | import org.jeecg.modules.eam.service.IPredictiveWorkPlanWarnService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IPredictiveWorkPlanWarnService predictiveWorkPlanWarnService; |
| | | @Autowired |
| | | private IPredictiveWorkPlanWarnHistoryService predictiveWorkPlanWarnHistoryService; |
| | | |
| | | /** |
| | | * 报警列表 |
| | |
| | | return Result.OK("删除成功!"); |
| | | } |
| | | |
| | | /** |
| | | * 设备保修 获取设备列表组件 |
| | | * qsw 2023-7-14 |
| | | */ |
| | | @GetMapping(value = "/getHistoryPage") |
| | | public Result<IPage<PredictiveWorkPlanWarnHistory>> getHistory(PredictiveWorkPlanWarnHistory predictiveWorkPlanWarnHistory, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<PredictiveWorkPlanWarnHistory> queryWrapper = QueryGenerator.initQueryWrapper(predictiveWorkPlanWarnHistory, req.getParameterMap()); |
| | | Page<PredictiveWorkPlanWarnHistory> page = new Page<PredictiveWorkPlanWarnHistory>(pageNo, pageSize); |
| | | IPage<PredictiveWorkPlanWarnHistory> pageList = predictiveWorkPlanWarnHistoryService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | |
| | | } |