LAPTOP-KB9HII50\70708 1 éve
szülő
commit
24e4fcb55b

+ 15 - 21
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/rehabilitation/controller/RehabilitationPlanController.java

@ -56,7 +56,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
        try {
            return write(200, "获取成功", "data", rehabilitationPlanService.getRehabilitationPlanLog(planId));
        } catch (Exception e) {
            return error(-1, e.getMessage());
            return error(-1, "查询失败");
        }
    }
@ -88,7 +88,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return rehabilitationPlanService.saveRehabilitationPlanTemplateData(templateDO, details);
        } catch (Exception e) {
            e.printStackTrace();
            return ObjEnvelop.getError(e.getMessage());
            return ObjEnvelop.getError("操作失败");
        }
    }
@ -112,7 +112,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return MixEnvelop.getSuccess(SpecialistMapping.api_success, map);
        } catch (Exception e) {
            e.printStackTrace();
            return MixEnvelop.getError(e.getMessage());
            return MixEnvelop.getError("查询失败");
        }
    }
@ -131,7 +131,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return MixEnvelop.getSuccess(SpecialistMapping.api_success, list);
        } catch (Exception e) {
            e.printStackTrace();
            return MixEnvelop.getError(e.getMessage());
            return MixEnvelop.getError("查询失败");
        }
    }
@ -154,7 +154,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return MixEnvelop.getSuccess(SpecialistMapping.api_success, list);
        } catch (Exception e) {
            e.printStackTrace();
            return MixEnvelop.getError(e.getMessage());
            return MixEnvelop.getError("查询失败");
        }
    }
@ -169,7 +169,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return MixEnvelop.getSuccess(SpecialistMapping.api_success, list);
        } catch (Exception e) {
            e.printStackTrace();
            return MixEnvelop.getError(e.getMessage());
            return MixEnvelop.getError("查询失败");
        }
    }
@ -188,8 +188,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return rehabilitationPlanService.deleteRehabilitationPlanTemplate(id);
        } catch (Exception e) {
            e.printStackTrace();
            // tracer.getCurrentSpan().logEvent(e.getMessage())
            return ObjEnvelop.getError(e.getMessage());
            return ObjEnvelop.getError("操作失败");
        }
    }
@ -229,8 +228,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return envelop;
        } catch (Exception e) {
            e.printStackTrace();
            // tracer.getCurrentSpan().logEvent(e.getMessage())
            return ListEnvelop.getError(e.getMessage());
            return ListEnvelop.getError("查询失败");
        }
    }
@ -243,7 +241,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return envelop;
        } catch (Exception e) {
            e.printStackTrace();
            return ListEnvelop.getError(e.getMessage());
            return ListEnvelop.getError("查询失败");
        }
    }
@ -265,7 +263,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return MixEnvelop.getSuccess(SpecialistMapping.api_success, entity);
        } catch (Exception e) {
            e.printStackTrace();
            return MixEnvelop.getError(e.getMessage());
            return MixEnvelop.getError("操作失败");
        }
    }
@ -284,7 +282,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return MixEnvelop.getSuccess(SpecialistMapping.api_success, list);
        } catch (Exception e) {
            e.printStackTrace();
            return MixEnvelop.getError(e.getMessage());
            return MixEnvelop.getError("查询失败");
        }
    }
@ -302,8 +300,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return rehabilitationPlanService.findRehabilitationPlanTemplate(adminTeamCode, doctor, patient);
        } catch (Exception e) {
            e.printStackTrace();
            // tracer.getCurrentSpan().logEvent(e.getMessage())
            return MixEnvelop.getError(e.getMessage());
            return MixEnvelop.getError("查询失败");
        }
    }
@ -317,8 +314,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return rehabilitationPlanService.createRehabilitationTemplate(templateDO);
        } catch (Exception e) {
            e.printStackTrace();
            // tracer.getCurrentSpan().logEvent(e.getMessage())
            return ObjEnvelop.getError(e.getMessage());
            return ObjEnvelop.getError("操作失败");
        }
    }
@ -332,8 +328,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return rehabilitationPlanService.createRehabilitationTemplateDetail(details);
        } catch (Exception e) {
            e.printStackTrace();
            // tracer.getCurrentSpan().logEvent(e.getMessage())
            return ObjEnvelop.getError(e.getMessage());
            return ObjEnvelop.getError("操作失败");
        }
    }
@ -348,8 +343,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
            return rehabilitationPlanService.updateRehabilitationTemplateDetail(details);
        } catch (Exception e) {
            e.printStackTrace();
            // tracer.getCurrentSpan().logEvent(e.getMessage())
            return ObjEnvelop.getError(e.getMessage());
            return ObjEnvelop.getError("操作失败");
        }
    }