|
|
@@ -302,7 +302,7 @@
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from admin
|
|
|
- where status !='锁定'
|
|
|
+ where status ='0'
|
|
|
<if test="depId != null">
|
|
|
and department_id = #{depId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -517,7 +517,7 @@
|
|
|
and status= '正常'
|
|
|
</if>
|
|
|
<if test="status==1">
|
|
|
- and status= '锁定'
|
|
|
+ and status= '1'
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
@@ -764,7 +764,7 @@
|
|
|
where c.role_name = #{name,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<update id="updateLockIds" parameterType="java.lang.String">
|
|
|
- update admin set status = '锁定' where id in (${lockIds})
|
|
|
+ update admin set status = '1' where id in (${lockIds})
|
|
|
</update>
|
|
|
|
|
|
<!-- 用户是为正常的 -->
|
|
|
@@ -776,13 +776,13 @@
|
|
|
<select id="getAdminRoleNameList" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select a.id, a.name from admin a left join user_role b on a.id=b.uid
|
|
|
left join `role` c on b.rid=c.id
|
|
|
- where c.role_name = #{name,jdbcType=VARCHAR} and a.status='正常'
|
|
|
+ where c.role_name = #{name,jdbcType=VARCHAR} and a.status= 0
|
|
|
</select>
|
|
|
|
|
|
<select id="getAdminRoleNamesList" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select a.id, a.name from admin a left join user_role b on a.id=b.uid
|
|
|
left join `role` c on b.rid=c.id
|
|
|
- where a.status='正常'
|
|
|
+ where a.status= 0
|
|
|
and c.role_name in
|
|
|
<foreach close=")" collection="list" item="name" open="(" separator=",">
|
|
|
#{name}
|
|
|
@@ -792,13 +792,13 @@
|
|
|
<select id="getAdminRoleTypeList" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select a.id, a.name from admin a left join user_role b on a.id=b.uid
|
|
|
left join `role` c on b.rid=c.id
|
|
|
- where c.role_type = #{roleType} and a.status='正常'
|
|
|
+ where c.role_type = #{roleType} and a.status= 0
|
|
|
</select>
|
|
|
|
|
|
<select id="getAdminRoleTypesList" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select a.id, a.name from admin a left join user_role b on a.id=b.uid
|
|
|
left join `role` c on b.rid=c.id
|
|
|
- where a.status='正常'
|
|
|
+ where a.status= 0
|
|
|
and c.role_type in
|
|
|
<foreach close=")" collection="list" item="type" open="(" separator=",">
|
|
|
#{type}
|
|
|
@@ -907,7 +907,7 @@
|
|
|
left join user_role e on a.id=e.uid
|
|
|
left join `role` f on e.rid=f.id
|
|
|
where f.role_name in ('营销员','营销经理')
|
|
|
- and a.status='正常'
|
|
|
+ and a.status= 0
|
|
|
<if test="depId != null">
|
|
|
and a.department_id = #{depId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -922,7 +922,7 @@
|
|
|
left join user_role e on a.id=e.uid
|
|
|
left join `role` f on e.rid=f.id
|
|
|
where f.role_name in ('营销员','营销经理')
|
|
|
- and a.status='正常'
|
|
|
+ and a.status= 0
|
|
|
<if test="depId != null">
|
|
|
and a.department_id = #{depId,jdbcType=VARCHAR}
|
|
|
</if>
|