| | |
| | | |
| | | 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; |
| | |
| | | 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> |
| | |
| | | @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){ |
| | |
| | | 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)); |
| | | } |
| | | |
| | | } |