|
|
@ -220,7 +220,7 @@ public class PatientService implements IPatientService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public CodeEnum editPatientOtherMsg(PatientDto.EditOtherMsg edit, Long userId) { |
|
|
|
public long editPatientOtherMsg(PatientDto.EditOtherMsg edit, Long userId) { |
|
|
|
|
|
|
|
String type = edit.getEditType(); |
|
|
|
JSONObject json = edit.getModel(); |
|
|
@ -243,6 +243,7 @@ public class PatientService implements IPatientService { |
|
|
|
Method method = bean.getClass().getMethod(methodName, modelClass); |
|
|
|
//方法调用(保存/修改)
|
|
|
|
method.invoke(bean, model); |
|
|
|
return json.getLong("id"); |
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
log.error("编辑病人其他信息反射异常",e); |
|
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
@ -256,6 +257,5 @@ public class PatientService implements IPatientService { |
|
|
|
log.error("编辑病人其他信息反射异常",e); |
|
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
|
} |
|
|
|
return CodeEnum.SUCCESS; |
|
|
|
} |
|
|
|
} |
|
|
|