| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.modules.eam.dto.EamReportRepairDto; |
| | | import org.jeecg.modules.eam.dto.EchartsDto; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamFactorySecondMaintPlan; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceOrder; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentService; |
| | | import org.jeecg.modules.eam.service.IEamFactorySecondMaintPlanService; |
| | | import org.jeecg.modules.eam.service.IEamReportRepairService; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.HashMap; |
| | |
| | | List<EamFactorySecondMaintPlan> echartsDtoList = iEamFactorySecondMaintPlanService.list(); |
| | | return Result.ok(echartsDtoList); |
| | | } |
| | | |
| | | /** |
| | | * 设备管理首页-设备报修故障列表 |
| | | * @param code |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "设备管理首页-设备报修故障列表", notes = "设备管理首页-设备报修故障列表") |
| | | @GetMapping(value = "/repairList") |
| | | public Result<?> repair(@RequestParam(name = "code", required = false) String code, |
| | | @RequestParam(name = "pageNo", required = false, defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", required = false, defaultValue = "10") Integer pageSize) { |
| | | Page<EamReportRepairDto> page = new Page<>(pageNo, pageSize); |
| | | IPage<EamReportRepairDto> iPage = iEamReportRepairService.reportRepairList(code,page); |
| | | return Result.ok(iPage); |
| | | } |
| | | |
| | | /** |
| | | * 设备管理首页-三级保养列表 |
| | | * @param code |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "设备管理首页-三级保养列表", notes = "设备管理首页-三级保养列表") |
| | | @GetMapping(value = "/maintenanceList") |
| | | public Result<?> maintenanceList(@RequestParam(name = "code", required = false) String code, |
| | | @RequestParam(name = "pageNo", required = false, defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", required = false, defaultValue = "10") Integer pageSize) { |
| | | Page<EamThirdMaintenanceOrder> page = new Page<>(pageNo, pageSize); |
| | | IPage<EamThirdMaintenanceOrder> iPage = iEamThirdMaintenanceOrderService.maintenanceList(code, page); |
| | | return Result.ok(iPage); |
| | | } |
| | | } |