whyclxw
6 天以前 2753ad7aee272a5a5a8a0124b1feea5a1e4cc83e
src/main/java/com/whyc/controller/DeviceSpareController.java
@@ -16,7 +16,7 @@
@RestController
@RequestMapping("deviceSpare")
@Api(tags = "设备器件备件仓库管理")
@Api(tags = {"设备器件备件","维修管理","维修调度"})
public class DeviceSpareController {
    @Autowired
@@ -42,6 +42,13 @@
        return service.add(spare,file);
    }
    @PostMapping("addByExcel")
    @ApiOperation("excel导入")
    public Response addByExcel(@RequestParam MultipartFile file) throws IOException {
        return service.addByExcel(file);
    }
    @PostMapping("update")
    @ApiOperation("修改")
    public Response update(@RequestBody DeviceSpare spare) {
@@ -54,4 +61,10 @@
        return service.delete(id);
    }
    @GetMapping("getListByIds")
    @ApiOperation("查询器件的库存信息,根据告警巡检所需的器件ids")
    public Response<List<DeviceSpare>> getListByIds(@RequestParam String deviceSpareIds){
        return service.getListByIds(deviceSpareIds);
    }
}