Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fd386dc6
authored
Feb 07, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
成员列表查询修改
1 parent
5f232ff3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
linkwe-framework/src/main/java/com/linkwechat/framework/web/service/UserDetailsServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeUser.java
linkwe-wecom/src/main/resources/mapper/wecom/WeUserMapper.xml
linkwe-framework/src/main/java/com/linkwechat/framework/web/service/UserDetailsServiceImpl.java
View file @
fd386dc
...
...
@@ -72,7 +72,7 @@ public class UserDetailsServiceImpl implements UserDetailsService
.
userType
(
Constants
.
USER_TYPE_WECOME
)
.
email
(
weUser
.
getEmail
())
.
phonenumber
(
weUser
.
getMobile
())
.
sex
(
weUser
.
getGender
().
toString
())
.
sex
(
weUser
.
getGender
()
==
0
?
"1"
:
weUser
.
getGender
()
.
toString
())
.
avatar
(
weUser
.
getAvatarMediaid
())
.
roleIds
(
ArrayUtil
.
toArray
(
roleMapper
.
selectRoleList
(
SysRole
.
builder
()
.
roleKey
(
Constants
.
DEFAULT_WECOME_ROLE_KEY
)
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeUser.java
View file @
fd386dc
...
...
@@ -57,7 +57,7 @@ public class WeUser
private
String
userId
;
/** 性别。1表示男性,2表示女性 */
private
Integer
gender
=
new
Integer
(
1
)
;
private
Integer
gender
;
/** 手机号 */
@NotBlank
(
message
=
"手机号不可为空"
)
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeUserMapper.xml
View file @
fd386dc
...
...
@@ -39,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"name != null and name != ''"
>
and user_name like concat('%', #{name}, '%')
</if>
<if
test=
"alias != null and alias != ''"
>
and alias = #{alias}
</if>
<if
test=
"userId != null and userId != ''"
>
and user_id = #{userId}
</if>
<if
test=
"isActivate != null"
>
and is_activate = #{isActivate}
</if>
<if
test=
"gender != null "
>
and gender = #{gender}
</if>
<if
test=
"mobile != null and mobile != ''"
>
and mobile = #{mobile}
</if>
<if
test=
"email != null and email != ''"
>
and email = #{email}
</if>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment