| | |
| | | |
| | | import com.gkhy.exam.pay.dto.rep.NonCoalPayPageRepDto; |
| | | import com.gkhy.exam.pay.dto.req.NonCoalPayReqDto; |
| | | import com.gkhy.exam.pay.dto.req.NonCoalPayStuImport; |
| | | import com.gkhy.exam.pay.dto.req.NonCoalPayStudentReqDto; |
| | | import com.gkhy.exam.pay.dto.req.NonCoalPayTypeEditReqDto; |
| | | import com.gkhy.exam.pay.entity.NonCoalPay; |
| | |
| | | |
| | | |
| | | @PostMapping("/stuImportData") |
| | | @ApiOperation(value = "导入学员") |
| | | @ApiImplicitParam(name = "nonCoalPayId", dataTypeClass = Long.class, value = "nonCoalPayId", required = true) |
| | | public AjaxResult importData(MultipartFile file, Long nonCoalPayId) throws Exception { |
| | | ExcelUtil<NonCoalPayStudent> util = new ExcelUtil<NonCoalPayStudent>(NonCoalPayStudent.class); |
| | | List<NonCoalPayStudent> nonCoalPayStudents = util.importExcel(file.getInputStream()); |
| | | ExcelUtil<NonCoalPayStuImport> util = new ExcelUtil<NonCoalPayStuImport>(NonCoalPayStuImport.class); |
| | | List<NonCoalPayStuImport> nonCoalPayStudents = util.importExcel(file.getInputStream()); |
| | | String operName = getUsername(); |
| | | String message = nonCoalPayStudentService.importData(nonCoalPayStudents, operName, nonCoalPayId); |
| | | return success(message); |