| 
					
				 | 
			
			
				@ -262,9 +262,15 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public MixEnvelop updatePlanStatusById(@ApiParam(name = "planId", value = "康复计划id", required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "planId", required = true)String planId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @ApiParam(name = "status", value = "状态", required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "status", required = true)Integer status){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "status", required = true)Integer status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @ApiParam(name = "abortReason", value = "中止原因", required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "abortReason", required = false)String abortReason){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return rehabilitationPlanService.updatePlanStatusById(status,planId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isEmpty(abortReason)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return rehabilitationPlanService.updatePlanStatusById(status,planId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return rehabilitationPlanService.abortPlanById(planId,abortReason); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }catch (Exception e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tracer.getCurrentSpan().logEvent(e.getMessage()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -294,7 +300,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @PostMapping(value = SpecialistMapping.rehabilitation.abortPlanById) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /*@PostMapping(value = SpecialistMapping.rehabilitation.abortPlanById) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "康复管理-中止康复计划填写中止原因") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public Envelop abortPlanById(@ApiParam(name = "planId", value = "康复计划id", required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @RequestParam(value = "planId", required = true)String planId, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -307,6 +313,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tracer.getCurrentSpan().logEvent(e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return Envelop.getError(e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    }*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 |