Bläddra i källkod

Merge branch 'dev/20220105_2.2.0_通用版_申诉驳回' into test

songxinlu 3 år sedan
förälder
incheckning
9d0851573a

+ 5 - 0
src/main/java/com/diagbot/vo/GetReviewerApiVO.java

@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
 import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
 
 /**
  * @Description:
@@ -12,6 +13,10 @@ import javax.validation.constraints.NotBlank;
  */
 @Data
 public class GetReviewerApiVO {
+
+    @ApiModelProperty(value = "医院ID",required = true)
+    @NotNull(message = "医院ID不能为空")
+    private Long hospitalId;
     @ApiModelProperty(value = "申述人工号",required = true)
     @NotBlank(message = "申述人工号不能为空")
     private String claimantId;

+ 1 - 1
src/main/java/com/diagbot/web/MedAppealInfoController.java

@@ -89,7 +89,7 @@ public class MedAppealInfoController {
     @PostMapping("/getReviewerApi")
     public RespDTO<List<GetReviewerDTO>> getReviewerApi(@RequestBody GetReviewerApiVO getReviewerApiVO) {
         //申诉人是否包含自身开关
-        String flag = sysHospitalSetFacade.getValue(Long.parseLong(SysUserUtils.getCurrentHospitalID()), "self_flag");
+        String flag = sysHospitalSetFacade.getValue(getReviewerApiVO.getHospitalId(), "self_flag");
         GetReviewerVO getReviewerVO = new GetReviewerVO();
         BeanUtils.copyProperties(getReviewerApiVO, getReviewerVO);
         if (StringUtils.isNotEmpty(flag)) {