|
@@ -26,16 +26,42 @@ public class FeedbackHosFacade {
|
|
|
}else if(feedbackHosVO.getId()==null){
|
|
|
return RespDTO.onError("病历反馈缺陷ID为空");
|
|
|
}
|
|
|
- if("1".equals(feedbackHosVO.getOperationType())){
|
|
|
- //修改
|
|
|
- conn.UpdateQcMessAge(feedbackHosVO);
|
|
|
- } else if("2".equals(feedbackHosVO.getOperationType())){
|
|
|
- //his那边物理删除
|
|
|
- conn.DeleteQcMessAge(feedbackHosVO);
|
|
|
- } else{
|
|
|
- //其他情况新增
|
|
|
- conn.setQcMessAge(feedbackHosVO);
|
|
|
+ //其他情况新增
|
|
|
+ conn.setQcMessAge(feedbackHosVO);
|
|
|
+
|
|
|
+ return RespDTO.onSuc("推送缺陷反馈完成!");
|
|
|
+ }catch (Exception e){
|
|
|
+ log.error("=======推送缺陷反馈失败,请联系维护人员==========="+e.getMessage(),new Throwable());
|
|
|
+ return RespDTO.onError("推送缺陷反馈失败,请联系维护人员!!!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public RespDTO updateFeedback(FeedbackHosVO feedbackHosVO){
|
|
|
+ try{
|
|
|
+ if(StringUtil.isEmpty(feedbackHosVO.getBehospitalCode())){
|
|
|
+ return RespDTO.onError("病历号为空");
|
|
|
+ }else if(feedbackHosVO.getId()==null){
|
|
|
+ return RespDTO.onError("病历反馈缺陷ID为空");
|
|
|
}
|
|
|
+ //修改
|
|
|
+ conn.UpdateQcMessAge(feedbackHosVO);
|
|
|
+ return RespDTO.onSuc("推送缺陷反馈完成!");
|
|
|
+ }catch (Exception e){
|
|
|
+ log.error("=======推送缺陷反馈失败,请联系维护人员==========="+e.getMessage(),new Throwable());
|
|
|
+ return RespDTO.onError("推送缺陷反馈失败,请联系维护人员!!!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public RespDTO deleteFeedback(FeedbackHosVO feedbackHosVO){
|
|
|
+ try{
|
|
|
+ if(StringUtil.isEmpty(feedbackHosVO.getBehospitalCode())){
|
|
|
+ return RespDTO.onError("病历号为空");
|
|
|
+ }else if(feedbackHosVO.getId()==null){
|
|
|
+ return RespDTO.onError("病历反馈缺陷ID为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ //his那边物理删除
|
|
|
+ conn.DeleteQcMessAge(feedbackHosVO);
|
|
|
return RespDTO.onSuc("推送缺陷反馈完成!");
|
|
|
}catch (Exception e){
|
|
|
log.error("=======推送缺陷反馈失败,请联系维护人员==========="+e.getMessage(),new Throwable());
|