|
@@ -53,17 +53,17 @@ update_user,update_time,professional,professional_pic_path
|
|
|
<select id="selectAdminRoleById" parameterType="java.lang.String" resultMap="lazyLoadRoles">
|
|
|
select
|
|
|
<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
|
|
|
- where user_id = #{id,jdbcType=VARCHAR} and status = '1'
|
|
|
+ where user_id = #{id,jdbcType=VARCHAR} and status = '0'
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<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
|
|
|
- where user_id = #{id,jdbcType=VARCHAR} and status = '1'
|
|
|
+ where user_id = #{id,jdbcType=VARCHAR} and status = '0'
|
|
|
</select>
|
|
|
|
|
|
<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,
|
|
|
personal_share,qualifier_pic_path
|
|
|
from sys_admin_info
|
|
|
- where status='1'
|
|
|
+ where status='0'
|
|
|
<if test="appId != null">
|
|
|
and APP_ID = #{appId}
|
|
|
</if>
|
|
@@ -431,9 +431,9 @@ update_user,update_time,professional,professional_pic_path
|
|
|
<select id="loadUserByUsername" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<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
|
|
|
- where (user_name = #{username} ) and status = '1'
|
|
|
+ where (user_name = #{username} ) and status = '0'
|
|
|
</select>
|
|
|
|
|
|
<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_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
|
|
|
- WHERE a.status in ('1','2','3')
|
|
|
+ WHERE a.status in ('0','2','3')
|
|
|
<if test="userName != null and 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>
|
|
|
|
|
|
<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=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
@@ -572,7 +572,7 @@ update_user,update_time,professional,professional_pic_path
|
|
|
</update>
|
|
|
|
|
|
<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>
|
|
|
|
|
@@ -611,7 +611,7 @@ update_user,update_time,professional,professional_pic_path
|
|
|
FROM
|
|
|
sys_admin_info AS a
|
|
|
<where>
|
|
|
- a.status = '1'
|
|
|
+ a.status = '0'
|
|
|
<if test="name != null and name !=''">
|
|
|
and a.user_name = #{name}
|
|
|
</if>
|
|
@@ -639,7 +639,7 @@ update_user,update_time,professional,professional_pic_path
|
|
|
EXPIRE_DATE,create_user_name,
|
|
|
status
|
|
|
from sys_admin_info
|
|
|
- where status='1'
|
|
|
+ where status='0'
|
|
|
<if test="name != null">
|
|
|
and (user_name like concat('%',#{name},'%') or name_zh like concat('%',#{name},'%'))
|
|
|
</if>
|
|
@@ -656,7 +656,7 @@ update_user,update_time,professional,professional_pic_path
|
|
|
from sys_admin_info ai
|
|
|
left join sys_doctor_multipoint ap on ap.user_id = ai.user_id
|
|
|
<where>
|
|
|
- ai.status = '1'
|
|
|
+ ai.status = '0'
|
|
|
<if test="appId != null and appId != ''">
|
|
|
and ap.app_id = #{appId}
|
|
|
</if>
|