Browse Source

修改审核接口

songxinlu 3 years ago
parent
commit
ea8a5453a7

+ 17 - 110
src/main/java/com/diagbot/entity/MedAppealExamineInfo.java

@@ -1,7 +1,12 @@
 package com.diagbot.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.math.BigDecimal;
 import java.time.LocalDateTime;
 import java.io.Serializable;
 
@@ -13,6 +18,8 @@ import java.io.Serializable;
  * @author zhanghang
  * @since 2022-01-20
  */
+@Getter
+@Setter
 public class MedAppealExamineInfo implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -43,6 +50,11 @@ public class MedAppealExamineInfo implements Serializable {
      */
     private String exampleOperation;
 
+    /**
+     * 审核分值
+     */
+    private BigDecimal value;
+
     /**
      * 处理结果
      */
@@ -53,6 +65,11 @@ public class MedAppealExamineInfo implements Serializable {
      */
     private String rejectReason;
 
+    /**
+     * 提示信息
+     */
+    private String msg;
+
     /**
      * 是否删除,N:未删除,Y:删除
      */
@@ -83,114 +100,4 @@ public class MedAppealExamineInfo implements Serializable {
      */
     private String remark;
 
-    public Long getId() {
-        return id;
-    }
-
-    public void setId(Long id) {
-        this.id = id;
-    }
-    public Long getAppealInfoId() {
-        return appealInfoId;
-    }
-
-    public void setAppealInfoId(Long appealInfoId) {
-        this.appealInfoId = appealInfoId;
-    }
-    public Long getCheckId() {
-        return checkId;
-    }
-
-    public void setCheckId(Long checkId) {
-        this.checkId = checkId;
-    }
-    public String getExampleStatus() {
-        return exampleStatus;
-    }
-
-    public void setExampleStatus(String exampleStatus) {
-        this.exampleStatus = exampleStatus;
-    }
-    public String getExampleOperation() {
-        return exampleOperation;
-    }
-
-    public void setExampleOperation(String exampleOperation) {
-        this.exampleOperation = exampleOperation;
-    }
-    public String getProcessResult() {
-        return processResult;
-    }
-
-    public void setProcessResult(String processResult) {
-        this.processResult = processResult;
-    }
-    public String getRejectReason() {
-        return rejectReason;
-    }
-
-    public void setRejectReason(String rejectReason) {
-        this.rejectReason = rejectReason;
-    }
-    public String getIsDeleted() {
-        return isDeleted;
-    }
-
-    public void setIsDeleted(String isDeleted) {
-        this.isDeleted = isDeleted;
-    }
-    public LocalDateTime getGmtCreate() {
-        return gmtCreate;
-    }
-
-    public void setGmtCreate(LocalDateTime gmtCreate) {
-        this.gmtCreate = gmtCreate;
-    }
-    public LocalDateTime getGmtModified() {
-        return gmtModified;
-    }
-
-    public void setGmtModified(LocalDateTime gmtModified) {
-        this.gmtModified = gmtModified;
-    }
-    public String getCreator() {
-        return creator;
-    }
-
-    public void setCreator(String creator) {
-        this.creator = creator;
-    }
-    public String getModifier() {
-        return modifier;
-    }
-
-    public void setModifier(String modifier) {
-        this.modifier = modifier;
-    }
-    public String getRemark() {
-        return remark;
-    }
-
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
-
-    @Override
-    public String toString() {
-        return "MedAppealExamineInfo{" +
-            "id=" + id +
-            ", appealInfoId=" + appealInfoId +
-            ", checkId=" + checkId +
-            ", exampleStatus=" + exampleStatus +
-            ", exampleOperation=" + exampleOperation +
-            ", processResult=" + processResult +
-            ", rejectReason=" + rejectReason +
-            ", isDeleted=" + isDeleted +
-            ", gmtCreate=" + gmtCreate +
-            ", gmtModified=" + gmtModified +
-            ", creator=" + creator +
-            ", modifier=" + modifier +
-            ", remark=" + remark +
-        "}";
-    }
 }

+ 8 - 0
src/main/java/com/diagbot/facade/MedAppealExamineInfoManagementFacade.java

@@ -98,6 +98,8 @@ public class MedAppealExamineInfoManagementFacade extends MedAppealExamineInfoSe
                 MedAppealExamineInfo medAppealExamineInfo = new MedAppealExamineInfo();
                 medAppealExamineInfo.setExampleOperation(ExampleOperationEnum.UP_OR_DEL.getKey());
                 medAppealExamineInfo.setExampleStatus(ExampleStatusEnum.ADOPT_EXAMPLE.getKey());
+                medAppealExamineInfo.setMsg(qcresultVO.getOptResultAlgVO().getMsg());
+                medAppealExamineInfo.setValue(qcresultVO.getOptResultAlgVO().getScore());
                 medAppealExamineInfo.setGmtCreate(dateTime);
                 medAppealExamineInfo.setRemark(qcResultAlgVO.getExplainInfo());
                 boolean update = this.update(medAppealExamineInfo, new UpdateWrapper<MedAppealExamineInfo>()
@@ -129,6 +131,8 @@ public class MedAppealExamineInfoManagementFacade extends MedAppealExamineInfoSe
                 MedAppealExamineInfo medAppealExamineInfo = new MedAppealExamineInfo();
                 medAppealExamineInfo.setExampleOperation(ExampleOperationEnum.UP_OR_UP.getKey());
                 medAppealExamineInfo.setExampleStatus(ExampleStatusEnum.ADOPT_EXAMPLE.getKey());
+                medAppealExamineInfo.setMsg(qcresultVO.getOptResultAlgVO().getMsg());
+                medAppealExamineInfo.setValue(qcresultVO.getOptResultAlgVO().getScore());
                 medAppealExamineInfo.setGmtCreate(dateTime);
                 medAppealExamineInfo.setRemark(qcResultAlgVO.getExplainInfo());
                 boolean update = this.update(medAppealExamineInfo, new UpdateWrapper<MedAppealExamineInfo>()
@@ -168,6 +172,8 @@ public class MedAppealExamineInfoManagementFacade extends MedAppealExamineInfoSe
                 );
                 MedAppealExamineInfo medAppealExamineInfo = new MedAppealExamineInfo();
                 medAppealExamineInfo.setExampleOperation(ExampleOperationEnum.ADD_EXIST.getKey());
+                medAppealExamineInfo.setValue(qcresultVO.getOptResultAlgVO().getScore());
+                medAppealExamineInfo.setMsg(qcresultVO.getOptResultAlgVO().getMsg());
                 medAppealExamineInfo.setExampleStatus(ExampleStatusEnum.ADOPT_EXAMPLE.getKey());
                 medAppealExamineInfo.setRemark(qcResultAlgVO.getExplainInfo());
                 medAppealExamineInfo.setGmtCreate(dateTime);
@@ -212,6 +218,8 @@ public class MedAppealExamineInfoManagementFacade extends MedAppealExamineInfoSe
                     Boolean appealInfo = updateAppealInfo(approvedVo);
                     MedAppealExamineInfo medAppealExamineInfo = new MedAppealExamineInfo();
                     medAppealExamineInfo.setExampleOperation(ExampleOperationEnum.RECOVER.getKey());
+                    medAppealExamineInfo.setValue(qcresultVO.getOptResultAlgVO().getScore());
+                    medAppealExamineInfo.setMsg(qcresultVO.getOptResultAlgVO().getMsg());
                     medAppealExamineInfo.setExampleStatus(ExampleStatusEnum.ADOPT_EXAMPLE.getKey());
                     medAppealExamineInfo.setRemark(qcResultAlgVO.getExplainInfo());
                     medAppealExamineInfo.setGmtCreate(dateTime);