| 
					
				 | 
			
			
				@@ -10,10 +10,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.bean.admin.AdminUserCom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.bean.policy.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.commonmapper.PolicyCMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.enums.IsYesNoEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.enums.PolicyOrderEmStutasEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.enums.PolicyOrderInStutasEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.enums.PolicyOrderStatusEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.gree.mall.manager.enums.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.exception.RemoteServiceException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.logic.common.CommonLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.plus.entity.*; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -696,7 +693,7 @@ public class PolicyOrderLogic { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .set(WorkerPolicy::getStatus,PolicyOrderStatusEnum.YSX.getKey()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .update(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        workerManagerLogic.quit(policyOrder.getWebsitUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.quit(policyOrder.getWebsitUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Transactional(rollbackFor = Exception.class) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -717,10 +714,52 @@ public class PolicyOrderLogic { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .set(WorkerPolicy::getEndTime,date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .set(WorkerPolicy::getStatus,PolicyOrderStatusEnum.YSX.getKey()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .update(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        workerManagerLogic.quit(policyOrder.getWebsitUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.quit(policyOrder.getWebsitUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Transactional(rollbackFor = Exception.class) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void quit(String id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WebsitUser websitUserBean = websitUserService.getById(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WebsitUser websitUser = new WebsitUser(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUser.setId(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUser.setExamineStatus(ExamineWorkerStatusEnum.QUIT.getKey()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUser.updateById(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        AdminWebsit adminWebsit = adminWebsitService.getById(websitUserBean.getWebsitId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (adminWebsit.getInsureType().equals("意外险,雇主险")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            policyOrderService.lambdaUpdate() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .ge(PolicyOrder::getEndTime,new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(PolicyOrder::getWebsitUserId,websitUser.getId()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(PolicyOrder::getType,PolicyTypeEnum.EM.getKey()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .set(PolicyOrder::getPolicyOrderStatus,PolicyOrderEmStutasEnum.KTH.getKey()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .update(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            workerPolicyService.lambdaUpdate() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .ge(WorkerPolicy::getEndTime,new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(WorkerPolicy::getWebsitUserId,websitUser.getId()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(WorkerPolicy::getPolicyType,PolicyTypeEnum.EM.getKey()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .set(WorkerPolicy::getStatus,PolicyOrderEmStutasEnum.YSX.getKey()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .set(WorkerPolicy::getEndTime,new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .update(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WebsitUserLog websitUserLog = new WebsitUserLog(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUserLog.setTypeText("操作离职"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUserLog.setOpRemark("操作离职"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUserLog.setWebsitUserId(websitUserBean.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUserLog.setWebsitName(websitUserBean.getWebsitName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUserLog.setWebsitId(websitUserBean.getWebsitId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        websitUserLog.insert(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Transactional(rollbackFor = Exception.class) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void delIN(String id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |