用户增加状态的修改
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</resultMap>
|
||||
<select id="selectByConditionUser" parameterType="com.jsh.erp.datasource.entities.UserExample" resultMap="ResultMapEx">
|
||||
select user.id, user.username, user.login_name, user.position, user.email, user.phonenum,
|
||||
user.description, user.remark,user.isystem,org.id as orgaId,user.tenant_id,org.org_abr,
|
||||
user.description, user.remark,user.isystem,org.id as orgaId,user.tenant_id,user.status,org.org_abr,
|
||||
rel.user_blng_orga_dspl_seq,rel.id as orgaUserRelId,
|
||||
(select r.id from jsh_user_business ub
|
||||
inner join jsh_role r on ub.value=concat("[",r.id,"]") and ifnull(r.delete_flag,'0') !='1'
|
||||
@@ -23,7 +23,7 @@
|
||||
left join jsh_orga_user_rel rel on user.id=rel.user_id and ifnull(rel.delete_flag,'0') !='1'
|
||||
left join jsh_organization org on rel.orga_id=org.id and ifnull(org.delete_flag,'0') !='1'
|
||||
where 1=1
|
||||
and ifnull(user.status,'0') not in('1','2')
|
||||
and user.status !='1'
|
||||
<if test="userName != null">
|
||||
<bind name="bindUserName" value="'%'+userName+'%'"/>
|
||||
and user.username like #{bindUserName}
|
||||
@@ -41,7 +41,7 @@
|
||||
select count(user.id)
|
||||
FROM jsh_user user
|
||||
where 1=1
|
||||
and ifnull(user.status,'0') not in('1','2')
|
||||
and user.status !='1'
|
||||
<if test="userName != null">
|
||||
<bind name="bindUserName" value="'%'+userName+'%'"/>
|
||||
and user.username like #{bindUserName}
|
||||
|
||||
Reference in New Issue
Block a user