|  | @@ -78,6 +78,25 @@ public class ExamManualLedgerServiceImpl extends BaseServiceImpl<Long, ExamManua
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  | +	@Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
 | 
	
		
			
				|  |  | +	public void deleteExamManualLedger(Integer operatorId,Long id) {
 | 
	
		
			
				|  |  | +		if(Objects.isNull(id)){
 | 
	
		
			
				|  |  | +			throw new BizException("请指定需要删除的支出记录");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		sysUserDao.lockUser(operatorId);
 | 
	
		
			
				|  |  | +		ExamManualLedger examManualLedger = examManualLedgerDao.get(id);
 | 
	
		
			
				|  |  | +		if(Objects.nonNull(examManualLedger.getOrganId())&&examManualLedger.getOrganId()>0){
 | 
	
		
			
				|  |  | +			ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examManualLedger.getExaminationBasicId(), examManualLedger.getOrganId());
 | 
	
		
			
				|  |  | +			if(Objects.isNull(examOrganizationRelation)){
 | 
	
		
			
				|  |  | +				throw new BizException("合作单位信息异常");
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  | +			examOrganizationRelation.setTotalTransAmount(examOrganizationRelation.getTotalTransAmount().subtract(examManualLedger.getAmount()));
 | 
	
		
			
				|  |  | +			examOrganizationRelationDao.update(examOrganizationRelation);
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		examManualLedgerDao.delete(id);
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	@Override
 | 
	
		
			
				|  |  |  	public ExamManualLedgerStatisticsDto getExamManualLedgerStatistics(Long examId) {
 | 
	
		
			
				|  |  |  		if(Objects.isNull(examId)){
 | 
	
		
			
				|  |  |  			throw new BizException("请指定考级项目");
 |