Bläddra i källkod

获取审核人接口添加医院判断条件

songxinlu 3 år sedan
förälder
incheckning
3ad103125e

+ 3 - 0
report-service/src/main/java/com/lantone/report/vo/GetReviewerVO.java

@@ -16,4 +16,7 @@ public class GetReviewerVO {
     private Boolean selfFlag = false;
     @ApiModelProperty(value = "审核角色id", hidden = true)
     private String roleID = "10";
+    @ApiModelProperty(value = "医院ID",hidden = true)
+    private Long hospitalId;
+
 }

+ 7 - 1
report-service/src/main/resources/mapper/SysUserRoleMapper.xml

@@ -8,12 +8,18 @@
         u.id id
         FROM
         sys_user u,
-        sys_user_role role
+        sys_user_role role,
+        sys_user_hospital uh
         WHERE
         u.is_deleted = "N"
+        AND uh.is_deleted = "N"
         AND role.is_deleted = "N"
+        AND uh.user_id = u.id
         AND u.id = role.user_id
         AND role.role_id = #{getReviewerVO.roleID}
+        <if test="getComplaintRecordVO.complaintDateStart != null ">
+            AND uh.hospital_id = #{getReviewerVO.hospitalId}
+        </if>
         <if test="getReviewerVO.selfFlag == false">
             AND u.id != #{getReviewerVO.claimantId}
         </if>