| | |
| | | package org.springblade.modules.securitypaper.controller; |
| | | |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.excel.util.ExcelUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.securitypaper.entity.SecurityPaper; |
| | | import org.springblade.modules.securitypaper.excel.SecurityPaperExcel; |
| | | import org.springblade.modules.securitypaper.excel.SecurityPaperImporter; |
| | | import org.springblade.modules.securitypaper.service.SecurityPaperService; |
| | | import org.springblade.modules.system.excel.SecurityExcel; |
| | | import org.springblade.modules.system.excel.SecurityImporter; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * @author zhongrj |
| | |
| | | return R.data(detail); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导入保安员证数据 |
| | | */ |
| | | @PostMapping("import-security-paper") |
| | | public R importSecurityPaper(MultipartFile file, Integer isCovered, String deptId) { |
| | | SecurityPaperImporter securityImporter = new SecurityPaperImporter(securityPaperService, false,deptId); |
| | | ExcelUtil.save(file, securityImporter, SecurityPaperExcel.class); |
| | | return R.success("操作成功"); |
| | | } |
| | | |
| | | } |