“djh”
2025-11-14 21159397d57fbcde8869977b537422d0130c8068
multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/StandingBookController.java
@@ -13,6 +13,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
/**
 * <p>
@@ -35,6 +36,7 @@
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
            @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = false, value = "公司id"),
            @ApiImplicitParam(paramType = "query", name = "deviceType", dataType = "int", required = false, value = "设备类型1计算机设备2办公自动化设备3外部设备4其他"),
    })
    @GetMapping("/selectStandingBookList")
    public CommonResult selectStandingBookList(StandingBook standingBook){
@@ -60,4 +62,12 @@
        return standingBookService.deletedStandingBook(id);
    }
    @PostMapping("/importStandingBooks")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = true, value = "companyId"),
    })
    public CommonResult importStandingBooks(MultipartFile file,  Long companyId) {
        return CommonResult.success(standingBookService.importStandingBooks(companyId, file));
    }
}