|
|
|
@ -705,10 +705,11 @@
|
|
|
|
|
from power_user
|
|
|
|
|
where dept_id like concat( '%',(select dept_id
|
|
|
|
|
from power_dept
|
|
|
|
|
where dept_code = #{deptCode},'%')
|
|
|
|
|
where dept_code = #{deptCode}<![CDATA[),]]>'%')
|
|
|
|
|
and effective = 1
|
|
|
|
|
and role_id in (25)
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectAllForRecordRoom" resultType="com.manage.entity.Power_User">
|
|
|
|
|
SELECT user_id,
|
|
|
|
|
user_name,
|
|
|
|
@ -716,9 +717,30 @@
|
|
|
|
|
from power_user
|
|
|
|
|
where dept_id like concat( '%',(select dept_id
|
|
|
|
|
from power_dept
|
|
|
|
|
where dept_code = #{deptCode},'%')
|
|
|
|
|
where dept_code = #{deptCode}<![CDATA[),]]>'%')
|
|
|
|
|
and effective = 1
|
|
|
|
|
and role_id in (20,22)
|
|
|
|
|
and role_id in (20,22)
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectDoctorNameAndDoctorRoom" resultType="com.manage.entity.Power_User">
|
|
|
|
|
SELECT user_id,
|
|
|
|
|
user_name,
|
|
|
|
|
power_user.name
|
|
|
|
|
from power_user
|
|
|
|
|
where dept_id like concat( '%',(select dept_id
|
|
|
|
|
from power_dept
|
|
|
|
|
where dept_code = #{deptCode <![CDATA[}]]> ),'%')
|
|
|
|
|
and effective = 1
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectForDoctorName" resultType="com.manage.entity.Power_User">
|
|
|
|
|
select power_user.`name`
|
|
|
|
|
from
|
|
|
|
|
power_user
|
|
|
|
|
where user_name = #{userId}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectForDoctorRoom" resultType="com.manage.entity.Power_User">
|
|
|
|
|
select
|
|
|
|
|
power_dept.dept_name dept_id
|
|
|
|
|
from power_dept
|
|
|
|
|
where power_dept.dept_code = #{deptCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|