|  | @@ -190,8 +190,17 @@ public class CoreOutInRecordServiceImpl extends ServiceImpl<CoreOutInRecordMappe
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  |      public int deleteCoreOutInRecordByIds(Long[] ids) {
 | 
	
		
			
				|  |  | -        // 取消出入申请后,出入申请中对应的人员也删除,如申请下的人员都取消,申请也自动取消
 | 
	
		
			
				|  |  | +        // 获取取消出入申请的 出入记录
 | 
	
		
			
				|  |  |          final List<CoreOutInRecord> letterOutInRecordList = coreOutInRecordMapper.findLetterOutInRecordList(ids);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // 取消申请时需要判断 是否已审批通过,审批通过后不能取消
 | 
	
		
			
				|  |  | +        if(letterOutInRecordList.stream().anyMatch(x->ObjectUtil.equal(x.getStatus(),1) || ObjectUtil.equal(x.getStatus(),2) || ObjectUtil.equal(x.getStatus(),3)))
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            throw new RuntimeException("取消失败,当前出入记录审批状态已变化,请刷新");
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // 取消出入申请后,出入申请中对应的人员也删除,如申请下的人员都取消,申请也自动取消
 | 
	
		
			
				|  |  | +//        final List<CoreOutInRecord> letterOutInRecordList = coreOutInRecordMapper.findLetterOutInRecordList(ids);
 | 
	
		
			
				|  |  |          letterOutInRecordList.forEach(x -> {
 | 
	
		
			
				|  |  |              deleteOutInRecordRequestUser(x);
 | 
	
		
			
				|  |  |          });
 |