|  | @@ -11,6 +11,7 @@ import com.ym.mec.biz.service.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.entity.UploadReturnBean;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.exception.BizException;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.date.DateUtil;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.upload.UploadUtil;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
	
		
			
				|  | @@ -91,6 +92,10 @@ public class ImportController extends BaseController {
 | 
	
		
			
				|  |  |          return studentPaymentRouteOrderService.importRouteOrder(file);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    public static void main(String[] args) {
 | 
	
		
			
				|  |  | +        String substring = ".xls".substring(1);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @PostMapping(value = "oaUploadFile")
 | 
	
		
			
				|  |  |      public Object uploadFile(@ApiParam(value = "上传的文件", required = true) @RequestParam("file") MultipartFile file,Integer processId) throws Exception {
 | 
	
		
			
				|  |  |          if (file != null && StringUtils.isNotBlank(file.getOriginalFilename())) {
 | 
	
	
		
			
				|  | @@ -100,6 +105,9 @@ public class ImportController extends BaseController {
 | 
	
		
			
				|  |  |              file.transferTo(excelFile);
 | 
	
		
			
				|  |  |              //如果是乐团退费,校验excel
 | 
	
		
			
				|  |  |              if(processId != null && processId.equals(19)){
 | 
	
		
			
				|  |  | +                if(!"xls".equals(prefix.substring(1)) && !"xlsx".equals(prefix.substring(1))){
 | 
	
		
			
				|  |  | +                    throw new BizException("请上传Excel文件");
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  financialExpenditureService.checkOaQuitMusicGroupExcel(FileUtils.readFileToByteArray(excelFile),filename);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              UploadReturnBean bean = uploadFileService.uploadFile(FileUtils.openInputStream(excelFile), UploadUtil.getExtension(filename));
 |