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

补充上次

上级 b935e9ce
流水线 #43102 已取消 于阶段
......@@ -408,7 +408,7 @@
<select id="adminRoleCountByhospitalId" resultType="java.lang.Integer">
select count(*)
from p_doctor as pd
join p_user_role_mapping as purm on pd.id = purm.user_id and purm.user_role_id = 3
join permission_doctor_role as pdr on pd.id = pdr.doctor_id and pdr.role_id = 3
where pd.hospital_id = #{hospitalId}
limit 1
</select>
......
......@@ -37,7 +37,7 @@
#{deleteFlag,jdbcType=INTEGER}, #{createdId,jdbcType=BIGINT}, #{createdTime,jdbcType=TIMESTAMP},
#{modifiedId,jdbcType=BIGINT}, #{modifiedTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.pica.cloud.account.account.server.entity.PermissionRole">
<insert id="insertSelective" parameterType="com.pica.cloud.account.account.server.entity.PermissionRole" useGeneratedKeys="true" keyProperty="id">
insert into permission_role
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册