Przeglądaj źródła

1、增加缺陷推送到his

liuqq 3 lat temu
rodzic
commit
5fa4b8c079

+ 28 - 0
src/main/java/com/diagbot/facade/his/FeedbackHosFacade.java

@@ -0,0 +1,28 @@
+package com.diagbot.facade.his;
+
+import com.diagbot.dto.RespDTO;
+import com.diagbot.vo.his.FeedbackHosVO;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Component;
+
+@Component
+@Slf4j
+public class FeedbackHosFacade {
+
+
+    public RespDTO pushFeedback(FeedbackHosVO feedbackHosVO){
+        try{
+            if("1".equals(feedbackHosVO.getOperationType())){
+                //修改
+            } else if("2".equals(feedbackHosVO.getOperationType())){
+                //his那边物理删除
+            } else{
+                //其他情况新增
+            }
+            return RespDTO.onSuc("推送缺陷反馈完成!");
+        }catch (Exception e){
+            log.error("=======推送缺陷反馈失败,请联系维护人员==========="+e.getMessage(),new Throwable());
+            return RespDTO.onError("推送缺陷反馈失败,请联系维护人员!!!");
+        }
+    }
+}

+ 80 - 0
src/main/java/com/diagbot/vo/his/FeedbackHosVO.java

@@ -0,0 +1,80 @@
+package com.diagbot.vo.his;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+@Data
+public class FeedbackHosVO {
+
+    private Long id;
+    /**
+     * 操作类型 1:修改|2:删除|3:新增已有|4:新增缺失|5:恢复
+     */
+    private String operationType;
+
+    /**
+     * 发送人编号
+     */
+    private String senderCode;
+
+    /**
+     * 发送人姓名
+     */
+    private String senderName;
+
+    /**
+     * 住院科室ID
+     */
+    private String deptId;
+
+    /**
+     * 住院科室名称
+     */
+    private String deptName;
+
+    /**
+     * 病人住院ID
+     */
+    private String behospitalCode;
+
+    /**
+     * 模块名称
+     */
+    private String modeName;
+
+    /**
+     * 提示信息
+     */
+    private String qcresultDetailMsg;
+
+    /**
+     * 人工修改分值
+     */
+    private BigDecimal qcresultDetaiScore;
+
+    /**
+     * 反馈说明
+     */
+    private String explainInfo;
+
+    /**
+     * 接收人编号
+     */
+    private String receiverCode;
+
+    /**
+     * 接收人姓名
+     */
+    private String receiverName;
+
+    /**
+     * 抄送人编号集合
+     */
+    private String ccCodes;
+
+    /**
+     * 抄送人姓名集合
+     */
+    private String ccNames;
+}

+ 15 - 0
src/main/java/com/diagbot/web/DataViewController.java

@@ -5,7 +5,9 @@ import com.diagbot.annotation.SysLogger;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.dto.his.DoctorHosDTO;
 import com.diagbot.facade.his.DoctorHosFacade;
+import com.diagbot.facade.his.FeedbackHosFacade;
 import com.diagbot.vo.his.DoctorHosVO;
+import com.diagbot.vo.his.FeedbackHosVO;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -32,6 +34,9 @@ public class DataViewController {
     @Autowired
     private DoctorHosFacade doctorHosFacade;
 
+    @Autowired
+    private FeedbackHosFacade feedbackHosFacade;
+
     @ApiOperation(value = "获取HIS医生信息")
     @PostMapping("/getDoctorHos")
     @SysLogger("getDoctorHos")
@@ -39,4 +44,14 @@ public class DataViewController {
         return RespDTO.onSuc(doctorHosFacade.getDoctorInfo(doctorHosVO));
     }
 
+
+    @ApiOperation(value = "获取HIS医生信息")
+    @PostMapping("/pushFeedback")
+    @SysLogger("pushFeedback")
+    public RespDTO pushFeedback(@RequestBody FeedbackHosVO feedbackHosVO){
+        return feedbackHosFacade.pushFeedback(feedbackHosVO);
+    }
+
+
+
 }

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -2,7 +2,7 @@ spring:
   application:
     name: mrqc-sys
   profiles:
-    active: test
+    active: his
   main:
     allow-bean-definition-overriding: true