|  |  | @ -935,7 +935,7 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru | 
			
		
	
		
		
			
				
					
					|  |  |  |      * |  |  |  |      * | 
			
		
	
		
		
			
				
					
					|  |  |  |      * @param entrustId |  |  |  |      * @param entrustId | 
			
		
	
		
		
			
				
					
					|  |  |  |      * @param whatBook  entrust-委托书  identItemBook-鉴定事项确认书  identfyBook-鉴定书 |  |  |  |      * @param whatBook  entrust-委托书  identItemBook-鉴定事项确认书  identfyBook-鉴定书 | 
			
		
	
		
		
			
				
					
					|  |  |  |      * @param docType 该参数只有用于委托书上 |  |  |  |      * @param docType   该参数只有用于委托书上 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |      * @return |  |  |  |      * @return | 
			
		
	
		
		
			
				
					
					|  |  |  |      */ |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Override |  |  |  |     @Override | 
			
		
	
	
		
		
			
				
					|  |  | @ -1470,9 +1470,13 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru | 
			
		
	
		
		
			
				
					
					|  |  |  |             throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", entrust.getId())); |  |  |  |             throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", entrust.getId())); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (!dlpUser.getId().equals(entrustment.getCheckClaimUser())) { |  |  |  |         // 这里修改一下,我们要去掉委托认领的功能,所以只要用户是在审核列表中的,就可以进行审核操作
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             throw new RuntimeException(String.format("委托的审核任务是由其他人认领的。认领用户是: %s", entrustment.getCheckClaimUser())); |  |  |  |         if (!dlpUser.getId().equals(entrustment.getCheckCandidateUser())) { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             throw new RuntimeException("你不在可以审核的用户列表当中!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //        if (!dlpUser.getId().equals(entrustment.getCheckClaimUser())) {
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //            throw new RuntimeException(String.format("委托的审核任务是由其他人认领的。认领用户是: %s", entrustment.getCheckClaimUser()));
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //        }
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_CHECK.getStatus()) { |  |  |  |         if (entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_CHECK.getStatus()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             throw new RuntimeException("委托不在待审核状态"); |  |  |  |             throw new RuntimeException("委托不在待审核状态"); | 
			
		
	
	
		
		
			
				
					|  |  | @ -1717,9 +1721,12 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru | 
			
		
	
		
		
			
				
					
					|  |  |  |             throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", entrust.getId())); |  |  |  |             throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", entrust.getId())); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (!dlpUser.getId().equals(entrustment.getApproveClaimUser())) { |  |  |  |         if (!dlpUser.getId().equals(entrustment.getCheckCandidateUser())) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             throw new RuntimeException(String.format("委托的审批任务是由其他人认领的。认领用户是: %s", entrustment.getCheckClaimUser())); |  |  |  |             throw new RuntimeException("你不在可以进行审批的用户列表中!"); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //        if (!dlpUser.getId().equals(entrustment.getApproveClaimUser())) {
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //            throw new RuntimeException(String.format("委托的审批任务是由其他人认领的。认领用户是: %s", entrustment.getCheckClaimUser()));
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //        }
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_APPROVE.getStatus()) { |  |  |  |         if (entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_APPROVE.getStatus()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             throw new RuntimeException("委托不在待审批状态"); |  |  |  |             throw new RuntimeException("委托不在待审批状态"); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |