@@ -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;
+
}
@@ -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>