|  | @@ -430,18 +430,30 @@ public class DismissService {
 | 
	
		
			
				|  |  |              exception.setMessage("更新住院状态失败。" + code);
 | 
	
		
			
				|  |  |              throw new BizException(exception);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        destructionUser(settleFee);
 | 
	
		
			
				|  |  | +        new DestructionUser(settleFee.getInpatientNo(),settleFee.getAdmissTimes()).start();
 | 
	
		
			
				|  |  |          return "OK";
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private void destructionUser(MedinsSettleFee settle) {
 | 
	
		
			
				|  |  | -        try {
 | 
	
		
			
				|  |  | -            JSONObject obj = new JSONObject();
 | 
	
		
			
				|  |  | -            obj.put("patNo", settle.getInpatientNo());
 | 
	
		
			
				|  |  | -            obj.put("times", settle.getAdmissTimes());
 | 
	
		
			
				|  |  | -            new RestTemplate().postForObject(rmHkUserApi, obj, String.class);
 | 
	
		
			
				|  |  | -        } catch (Exception e) {
 | 
	
		
			
				|  |  | -            log.error("删除患者门禁出错", e);
 | 
	
		
			
				|  |  | +    class DestructionUser extends Thread {
 | 
	
		
			
				|  |  | +        private final String patNo;
 | 
	
		
			
				|  |  | +        private final Integer times;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        public DestructionUser(String patNo, Integer times) {
 | 
	
		
			
				|  |  | +            this.patNo = patNo;
 | 
	
		
			
				|  |  | +            this.times = times;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        @Override
 | 
	
		
			
				|  |  | +        public void run() {
 | 
	
		
			
				|  |  | +            try {
 | 
	
		
			
				|  |  | +                JSONObject obj = new JSONObject();
 | 
	
		
			
				|  |  | +                obj.put("patNo", patNo);
 | 
	
		
			
				|  |  | +                obj.put("times", times);
 | 
	
		
			
				|  |  | +                String res = new RestTemplate().postForObject(rmHkUserApi, obj, String.class);
 | 
	
		
			
				|  |  | +                log.info("删除门禁。{}", res);
 | 
	
		
			
				|  |  | +            } catch (Exception e) {
 | 
	
		
			
				|  |  | +                log.error("删除患者门禁出错", e);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |