|  | @@ -3,10 +3,12 @@ package com.keao.edu.user.controller;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.keao.edu.auth.api.entity.SysUser;
 | 
	
		
			
				|  |  |  import com.keao.edu.common.controller.BaseController;
 | 
	
		
			
				|  |  | +import com.keao.edu.user.service.ExcelInService;
 | 
	
		
			
				|  |  |  import com.keao.edu.util.collection.MapUtil;
 | 
	
		
			
				|  |  |  import com.keao.edu.util.excel.POIUtil;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | +import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.security.access.prepost.PreAuthorize;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.PostMapping;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
	
		
			
				|  | @@ -22,14 +24,19 @@ import java.util.List;
 | 
	
		
			
				|  |  |  import java.util.Map;
 | 
	
		
			
				|  |  |  import java.util.Set;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -@RequestMapping
 | 
	
		
			
				|  |  | +@RequestMapping("excelIn")
 | 
	
		
			
				|  |  |  @Api(tags = "数据导入服务")
 | 
	
		
			
				|  |  |  @RestController
 | 
	
		
			
				|  |  |  public class ExcelInController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @ApiOperation(value = "导入")
 | 
	
		
			
				|  |  | -    @PostMapping("/queryTeacherAttendances")
 | 
	
		
			
				|  |  | -    public void ImportTeacherAttendances(@RequestParam("file") MultipartFile file) throws IOException {
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private ExcelInService excelInService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "曲库导入")
 | 
	
		
			
				|  |  | +    @PostMapping("/song")
 | 
	
		
			
				|  |  | +    public void excelInSong(@RequestParam("file") MultipartFile file) throws IOException {
 | 
	
		
			
				|  |  | +        excelInService.excelInSong(file);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          Map<String, List<Map<String, Object>>> stringListMap = POIUtil.importExcel(file.getInputStream(), 2,file.getOriginalFilename());
 | 
	
		
			
				|  |  |          Set<String> strings = stringListMap.keySet();
 | 
	
		
			
				|  |  |          List<SysUser> sysUserList = new ArrayList<>();
 |