提交 a8150e83 编写于 作者: wenhao.qin's avatar wenhao.qin

fix --系统管理员唯一性校验

上级 7755669b
流水线 #42986 已取消 于阶段
...@@ -263,9 +263,10 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService { ...@@ -263,9 +263,10 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
map.put("doctorId", pDoctor.getId()); map.put("doctorId", pDoctor.getId());
map.put("hospitalId", pDoctor.getHospitalId().longValue()); map.put("hospitalId", pDoctor.getHospitalId().longValue());
List<PermissionRole> roles = permissionRoleMapper.selectByDoctorId(map); List<PermissionRole> roles = permissionRoleMapper.selectByDoctorId(map);
roles.stream().forEach(o -> { for (PermissionRole role : roles) {
resp.setRoleName(resp.getRoleName() + o.getRoleName() + " "); resp.setRoleName(resp.getRoleName() + role.getRoleName() + " ");
}); }
// 获取批发资质 // 获取批发资质
StoreCertifyStatus storeCertifyStatus = null; StoreCertifyStatus storeCertifyStatus = null;
......
...@@ -207,14 +207,13 @@ ...@@ -207,14 +207,13 @@
</if> </if>
</select> </select>
<select id="selectByDoctorId" resultMap="BaseResultMap" parameterType="java.util.Map"> <select id="selectByDoctorId" resultType="com.pica.cloud.account.account.server.entity.PermissionRole" parameterType="java.util.Map">
select r.role_code as roleCode, select r.role_code as roleCode,
r.role_name as roleName r.role_name as roleName
from permission_doctor_role dr from permission_doctor_role dr
JOIN permission_role r on dr.role_id = r.id JOIN permission_role r on dr.role_id = r.id and r.delete_flag = 1
WHERE dr.delete_flag = 1 WHERE dr.delete_flag = 1
and dr.doctor_id = 1 and dr.doctor_id = #{doctorId ,jdbcType=BIGINT}
AND dr.hospital_id = 2 AND dr.hospital_id = #{hospitalId ,jdbcType=BIGINT}
and r.delete_flag = 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册