|
@@ -53,17 +53,17 @@ update_user,update_time,professional,professional_pic_path
|
|
<select id="selectAdminRoleById" parameterType="java.lang.String" resultMap="lazyLoadRoles">
|
|
<select id="selectAdminRoleById" parameterType="java.lang.String" resultMap="lazyLoadRoles">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
<include refid="Base_Column_List"/>
|
|
- ,(select ins_name from sys_institution ins where ins.status = '1' and ins.ins_code = ai.ins_code) as ins_name
|
|
|
|
|
|
+ ,(select ins_name from sys_institution ins where ins.status = '0' and ins.ins_code = ai.ins_code) as ins_name
|
|
from sys_admin_info ai
|
|
from sys_admin_info ai
|
|
- where user_id = #{id,jdbcType=VARCHAR} and status = '1'
|
|
|
|
|
|
+ where user_id = #{id,jdbcType=VARCHAR} and status = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
<include refid="Base_Column_List"/>
|
|
- ,(select ins_name from sys_institution ins where ins.status = '1' and ins.ins_code = ai.ins_code) as ins_name
|
|
|
|
|
|
+ ,(select ins_name from sys_institution ins where ins.status = '0' and ins.ins_code = ai.ins_code) as ins_name
|
|
from sys_admin_info ai
|
|
from sys_admin_info ai
|
|
- where user_id = #{id,jdbcType=VARCHAR} and status = '1'
|
|
|
|
|
|
+ where user_id = #{id,jdbcType=VARCHAR} and status = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectByPrimaryOriginID" parameterType="com.jiuzhekan.cbkj.beans.sysBeans.AdminInfo" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryOriginID" parameterType="com.jiuzhekan.cbkj.beans.sysBeans.AdminInfo" resultMap="BaseResultMap">
|
|
@@ -76,7 +76,7 @@ update_user,update_time,professional,professional_pic_path
|
|
status,is_qualifier,dept_id_his,dept_name_his,
|
|
status,is_qualifier,dept_id_his,dept_name_his,
|
|
personal_share,qualifier_pic_path
|
|
personal_share,qualifier_pic_path
|
|
from sys_admin_info
|
|
from sys_admin_info
|
|
- where status='1'
|
|
|
|
|
|
+ where status='0'
|
|
<if test="appId != null">
|
|
<if test="appId != null">
|
|
and APP_ID = #{appId}
|
|
and APP_ID = #{appId}
|
|
</if>
|
|
</if>
|
|
@@ -431,9 +431,9 @@ update_user,update_time,professional,professional_pic_path
|
|
<select id="loadUserByUsername" resultMap="BaseResultMap">
|
|
<select id="loadUserByUsername" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
<include refid="Base_Column_List"/>
|
|
- ,(select ins_name from sys_institution ins where ins.status = '1' and ins.app_id = ai.app_id and ins.ins_code = ai.ins_code) as ins_name
|
|
|
|
|
|
+ ,(select ins_name from sys_institution ins where ins.status = '0' and ins.app_id = ai.app_id and ins.ins_code = ai.ins_code) as ins_name
|
|
from sys_admin_info ai
|
|
from sys_admin_info ai
|
|
- where (user_name = #{username} ) and status = '1'
|
|
|
|
|
|
+ where (user_name = #{username} ) and status = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getPageDatas" parameterType="AdminInfo" resultType="Map">
|
|
<select id="getPageDatas" parameterType="AdminInfo" resultType="Map">
|
|
@@ -478,7 +478,7 @@ update_user,update_time,professional,professional_pic_path
|
|
LEFT JOIN sys_doctor_multipoint ap ON ap.user_id = a.user_id
|
|
LEFT JOIN sys_doctor_multipoint ap ON ap.user_id = a.user_id
|
|
left join sys_app p on ap.app_id = p.app_id
|
|
left join sys_app p on ap.app_id = p.app_id
|
|
left join sys_institution i on ap.app_id = i.APP_ID and ap.ins_code = i.INS_CODE
|
|
left join sys_institution i on ap.app_id = i.APP_ID and ap.ins_code = i.INS_CODE
|
|
- WHERE a.status in ('1','2','3')
|
|
|
|
|
|
+ WHERE a.status in ('0','2','3')
|
|
<if test="userName != null and userName != ''">
|
|
<if test="userName != null and userName != ''">
|
|
and (a.user_name like concat('%',trim(#{userName}),'%') or a.name_zh like concat('%',trim(#{userName}),'%')
|
|
and (a.user_name like concat('%',trim(#{userName}),'%') or a.name_zh like concat('%',trim(#{userName}),'%')
|
|
)
|
|
)
|
|
@@ -564,7 +564,7 @@ update_user,update_time,professional,professional_pic_path
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<update id="deleteBylis" parameterType="Map">
|
|
<update id="deleteBylis" parameterType="Map">
|
|
- update sys_admin_info set status = '0' where id in
|
|
|
|
|
|
+ update sys_admin_info set status = '1' where id in
|
|
<foreach collection="array" item="item" open="(" separator="," close=")">
|
|
<foreach collection="array" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -572,7 +572,7 @@ update_user,update_time,professional,professional_pic_path
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<select id="getAdmins" resultType="Map" parameterType="String">
|
|
<select id="getAdmins" resultType="Map" parameterType="String">
|
|
- select user_id uuid,user_name,user_heand heand,email from sys_admin_info where user_id != #{id} and status ='1'
|
|
|
|
|
|
+ select user_id uuid,user_name,user_heand heand,email from sys_admin_info where user_id != #{id} and status ='0'
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -611,7 +611,7 @@ update_user,update_time,professional,professional_pic_path
|
|
FROM
|
|
FROM
|
|
sys_admin_info AS a
|
|
sys_admin_info AS a
|
|
<where>
|
|
<where>
|
|
- a.status = '1'
|
|
|
|
|
|
+ a.status = '0'
|
|
<if test="name != null and name !=''">
|
|
<if test="name != null and name !=''">
|
|
and a.user_name = #{name}
|
|
and a.user_name = #{name}
|
|
</if>
|
|
</if>
|
|
@@ -639,7 +639,7 @@ update_user,update_time,professional,professional_pic_path
|
|
EXPIRE_DATE,create_user_name,
|
|
EXPIRE_DATE,create_user_name,
|
|
status
|
|
status
|
|
from sys_admin_info
|
|
from sys_admin_info
|
|
- where status='1'
|
|
|
|
|
|
+ where status='0'
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
and (user_name like concat('%',#{name},'%') or name_zh like concat('%',#{name},'%'))
|
|
and (user_name like concat('%',#{name},'%') or name_zh like concat('%',#{name},'%'))
|
|
</if>
|
|
</if>
|
|
@@ -656,7 +656,7 @@ update_user,update_time,professional,professional_pic_path
|
|
from sys_admin_info ai
|
|
from sys_admin_info ai
|
|
left join sys_doctor_multipoint ap on ap.user_id = ai.user_id
|
|
left join sys_doctor_multipoint ap on ap.user_id = ai.user_id
|
|
<where>
|
|
<where>
|
|
- ai.status = '1'
|
|
|
|
|
|
+ ai.status = '0'
|
|
<if test="appId != null and appId != ''">
|
|
<if test="appId != null and appId != ''">
|
|
and ap.app_id = #{appId}
|
|
and ap.app_id = #{appId}
|
|
</if>
|
|
</if>
|