“djh”
2025-11-26 cf4a5deced71464d424ce5931774f6df0c4c6bb3
multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/StandingBookController.java
@@ -3,7 +3,6 @@
import com.gkhy.exam.common.annotation.RepeatSubmit;
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.domain.Correction;
import com.gkhy.exam.system.domain.StandingBook;
import com.gkhy.exam.system.service.StandingBookService;
import io.swagger.annotations.Api;
@@ -13,6 +12,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 +35,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 +61,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));
    }
}