Explorar el Código

增加获取该申诉最新的缺陷详情提示

zhanghang hace 3 años
padre
commit
ad666c4ffc

+ 1 - 0
gateway-service/src/main/resources/bootstrap.yml

@@ -107,6 +107,7 @@ secure:
       - "/report-service/medAppealExamineInInfoManage/getAuditNumber"
       - "/report-service/medAppealExamineInInfoManage/rejected"
       - "/report-service/medAppealExamineInInfoManage/getApprovedView"
+      - "/report-service/medAppealExamineInInfoManage/getComplaintDetailMsg"
       - "/report-service/medAppealInfoManage/addAppealInfo"
       - "/report-service/medAppealInfoManage/getReviewer"
       - "/report-service/medAppealInfoManage/getAppealOperationType"

+ 21 - 0
report-service/src/main/java/com/lantone/report/facade/MedAppealExamineInfoManagementFacade.java

@@ -11,13 +11,16 @@ import com.lantone.report.dto.GetAppealReviewDTO;
 import com.lantone.report.dto.GetComplaintRecordDTO;
 import com.lantone.report.entity.AppealExamineInfo;
 import com.lantone.report.entity.AppealInfo;
+import com.lantone.report.entity.QcresultDetail;
 import com.lantone.report.enums.AppealOperationTypeEnum;
 import com.lantone.report.enums.ExampleStatusEnum;
 import com.lantone.report.facade.base.AppealExamineInfoFacade;
 import com.lantone.report.facade.base.AppealInfoFacade;
+import com.lantone.report.facade.base.QcresultDetailFacade2;
 import com.lantone.report.vo.GetAppealInfoVO;
 import com.lantone.report.vo.GetAppealReviewVO;
 import com.lantone.report.vo.GetAuditNumberVO;
+import com.lantone.report.vo.GetComplaintDetailMsgVO;
 import com.lantone.report.vo.GetComplaintRecordVO;
 import com.lantone.report.vo.RejectedVo;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -42,6 +45,8 @@ public class MedAppealExamineInfoManagementFacade {
     private AppealInfoFacade appealInfoFacade;
     @Autowired
     MedAppealInfoManagementFacade medAppealInfoManagementFacade;
+    @Autowired
+    QcresultDetailFacade2 qcresultDetailFacade2;
 
     /**
      * 申诉记录列表
@@ -133,4 +138,20 @@ public class MedAppealExamineInfoManagementFacade {
         return getAppealInfoDTO;
     }
 
+    /**
+     * 获取该申诉记录最新缺陷详情
+     *
+     * @param getComplaintDetailMsgVO
+     * @return
+     */
+    public String getComplaintDetailMsg(GetComplaintDetailMsgVO getComplaintDetailMsgVO) {
+        QcresultDetail qcresultDetail = qcresultDetailFacade2.getOne(new QueryWrapper<QcresultDetail>()
+                .eq("behospital_code", getComplaintDetailMsgVO.getBehospitalCode())
+                .eq("id", getComplaintDetailMsgVO.getId())
+                .eq("cases_entry_id", getComplaintDetailMsgVO.getCasesEntryId())
+                .eq("hospital_id", getComplaintDetailMsgVO.getHospitalId())
+        );
+        return qcresultDetail.getMsg();
+    }
+
 }

+ 31 - 0
report-service/src/main/java/com/lantone/report/vo/GetComplaintDetailMsgVO.java

@@ -0,0 +1,31 @@
+package com.lantone.report.vo;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+
+/**
+ * @Description:
+ * @author: zhanghang
+ * @time: 2022/3/1 14:38
+ */
+@Getter
+@Setter
+public class GetComplaintDetailMsgVO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "医院id",hidden = true)
+    private Long hospitalId;
+
+    @ApiModelProperty(value = "缺陷Id")
+    private Long id;
+
+    @ApiModelProperty(value = "病人序列号")
+    private Long behospitalCode;
+
+    @ApiModelProperty(value = "条目ID")
+    private Long casesEntryId;
+
+}

+ 8 - 1
report-service/src/main/java/com/lantone/report/web/MedAppealExamineInfoManagementController.java

@@ -11,6 +11,7 @@ import com.lantone.report.facade.MedAppealExamineInfoManagementFacade;
 import com.lantone.report.vo.GetAppealInfoVO;
 import com.lantone.report.vo.GetAppealReviewVO;
 import com.lantone.report.vo.GetAuditNumberVO;
+import com.lantone.report.vo.GetComplaintDetailMsgVO;
 import com.lantone.report.vo.GetComplaintRecordVO;
 import com.lantone.report.vo.RejectedVo;
 import io.swagger.annotations.Api;
@@ -32,7 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
  */
 @RestController
 @RequestMapping("/medAppealExamineInInfoManage")
-@Api(value = "申诉审核数据模块相关接口API", tags = {"申诉审核数据模块相关接口API"})
+@Api(value = "申诉审核数据模块相关接口API", tags = { "申诉审核数据模块相关接口API" })
 public class MedAppealExamineInfoManagementController {
     @Autowired
     MedAppealExamineInfoManagementFacade medAppealExamineInfoManagementFacade;
@@ -76,4 +77,10 @@ public class MedAppealExamineInfoManagementController {
         return CommonResult.success(complaintRecord);
     }
 
+    @ApiOperation(value = "获取该申诉记录最新缺陷详情[by:zhanghang]",
+            notes = "获取该申诉记录最新缺陷详情")
+    @PostMapping("/getComplaintDetailMsg")
+    public CommonResult<String> getComplaintDetailMsg(@RequestBody GetComplaintDetailMsgVO getComplaintDetailMsgVO) {
+        return CommonResult.success(medAppealExamineInfoManagementFacade.getComplaintDetailMsg(getComplaintDetailMsgVO));
+    }
 }