|  | @@ -31,6 +31,7 @@ import com.ym.mec.util.ini.IniFileUtil;
 | 
	
		
			
				|  |  |  import org.apache.commons.collections.CollectionUtils;
 | 
	
		
			
				|  |  |  import org.apache.commons.io.FileUtils;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  | +import org.apache.poi.hssf.record.WriteAccessRecord;
 | 
	
		
			
				|  |  |  import org.slf4j.Logger;
 | 
	
		
			
				|  |  |  import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
	
		
			
				|  | @@ -491,7 +492,7 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  String submitForm = oaInputDto.getModel();
 | 
	
		
			
				|  |  |                  List<HashMap> hashMaps = JSONObject.parseArray(formData.get(submitForm).toString(), HashMap.class);
 | 
	
		
			
				|  |  | -                for (HashMap hashMap : hashMaps) {
 | 
	
		
			
				|  |  | +                nullUser: for (HashMap hashMap : hashMaps) {
 | 
	
		
			
				|  |  |                      FinancialExpenditure financialExpenditure = new FinancialExpenditure();
 | 
	
		
			
				|  |  |                      List<OaColumnDto> columns = oaInputDto.getColumns();
 | 
	
		
			
				|  |  |                      if(columns != null && columns.size() > 0){
 | 
	
	
		
			
				|  | @@ -523,6 +524,8 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
 | 
	
		
			
				|  |  |                                          if(o != null){
 | 
	
		
			
				|  |  |                                              financialExpenditure.setStudentId(Integer.parseInt(o.toString()));
 | 
	
		
			
				|  |  |                                              continue;
 | 
	
		
			
				|  |  | +                                        }else {
 | 
	
		
			
				|  |  | +                                            continue nullUser;
 | 
	
		
			
				|  |  |                                          }
 | 
	
		
			
				|  |  |                                      }else if(name.contains("金额")){
 | 
	
		
			
				|  |  |                                          Object o = hashMap.get(inputDto.getModel());
 | 
	
	
		
			
				|  | @@ -538,6 +541,9 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
 | 
	
		
			
				|  |  |                      financialExpenditureList.add(financialExpenditure);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            if(CollectionUtils.isEmpty(financialExpenditureList)){
 | 
	
		
			
				|  |  | +                return;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |              //课程退费
 | 
	
		
			
				|  |  |              if(tplInfoId.equals("11")){
 | 
	
		
			
				|  |  |                  long count = financialExpenditureList.stream().filter(e -> StringUtils.isEmpty(e.getGroupType()) ||
 | 
	
	
		
			
				|  | @@ -545,7 +551,7 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
 | 
	
		
			
				|  |  |                          Objects.isNull(e.getStudentId()) ||
 | 
	
		
			
				|  |  |                          Objects.isNull(e.getVipGroupId())).count();
 | 
	
		
			
				|  |  |                  if(count > 0l){
 | 
	
		
			
				|  |  | -                    throw new BizException("参数校验失败");
 | 
	
		
			
				|  |  | +                    throw new BizException("表单信息有误,请核实");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  for (FinancialExpenditure financialExpenditure : financialExpenditureList) {
 | 
	
		
			
				|  |  |                      ReturnFeeDto returnFeeDto = new ReturnFeeDto();
 | 
	
	
		
			
				|  | @@ -564,9 +570,10 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
 | 
	
		
			
				|  |  |              }else {
 | 
	
		
			
				|  |  |                  long count = financialExpenditureList.stream().
 | 
	
		
			
				|  |  |                          filter(e -> StringUtils.isEmpty(e.getMusicGroupId()) ||
 | 
	
		
			
				|  |  | +                        Objects.isNull(e.getAmount()) ||
 | 
	
		
			
				|  |  |                          Objects.isNull(e.getStudentId())).count();
 | 
	
		
			
				|  |  |                  if(count > 0l){
 | 
	
		
			
				|  |  | -                    throw new BizException("参数校验失败");
 | 
	
		
			
				|  |  | +                    throw new BizException("表单信息有误,请核实");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  for (FinancialExpenditure financialExpenditure : financialExpenditureList) {
 | 
	
		
			
				|  |  |                      musicGroupService.checkDirectQuitMusicGroupOa(financialExpenditure);
 |