| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.ehcache.spi.service.MaintainableService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private DeviceMaintenanceMapper deviceMaintenanceMapper; |
| | | |
| | | |
| | | |
| | | @ApiModelProperty("设备台账列表") |
| | | @GetMapping("/page") |
| | |
| | | public void export(HttpServletResponse response, Long[] ids) { |
| | | deviceLedgerService.export(response, ids); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @GetMapping("/report/forms") |
| | | @ApiOperation("查询设备台账图表数据") |
| | | public AjaxResult report() { |
| | | return AjaxResult.success(deviceLedgerService.report()); |
| | | } |
| | | @PostMapping("import") |
| | | @ApiModelProperty("导入设备台账") |
| | | public AjaxResult importData(MultipartFile file) throws IOException { |
| | |
| | | } |
| | | |
| | | @GetMapping("scanDevice") |
| | | @ApiModelProperty("获取设备台账") |
| | | @ApiOperation("获取设备台账") |
| | | @Anonymous |
| | | public AjaxResult scanDevice(Long id) { |
| | | List<DeviceMaintenance> list = deviceMaintenanceMapper.list1(id); |