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