Commit fd386dc6 by danmo

成员列表查询修改

1 parent 5f232ff3
...@@ -72,7 +72,7 @@ public class UserDetailsServiceImpl implements UserDetailsService ...@@ -72,7 +72,7 @@ public class UserDetailsServiceImpl implements UserDetailsService
.userType(Constants.USER_TYPE_WECOME) .userType(Constants.USER_TYPE_WECOME)
.email(weUser.getEmail()) .email(weUser.getEmail())
.phonenumber(weUser.getMobile()) .phonenumber(weUser.getMobile())
.sex(weUser.getGender().toString()) .sex(weUser.getGender() ==0 ? "1": weUser.getGender() .toString())
.avatar(weUser.getAvatarMediaid()) .avatar(weUser.getAvatarMediaid())
.roleIds(ArrayUtil.toArray(roleMapper.selectRoleList(SysRole.builder() .roleIds(ArrayUtil.toArray(roleMapper.selectRoleList(SysRole.builder()
.roleKey(Constants.DEFAULT_WECOME_ROLE_KEY) .roleKey(Constants.DEFAULT_WECOME_ROLE_KEY)
......
...@@ -57,7 +57,7 @@ public class WeUser ...@@ -57,7 +57,7 @@ public class WeUser
private String userId; private String userId;
/** 性别。1表示男性,2表示女性 */ /** 性别。1表示男性,2表示女性 */
private Integer gender=new Integer(1); private Integer gender;
/** 手机号 */ /** 手机号 */
@NotBlank(message = "手机号不可为空") @NotBlank(message = "手机号不可为空")
......
...@@ -39,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -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="name != null and name != ''"> and user_name like concat('%', #{name}, '%')</if>
<if test="alias != null and alias != ''"> and alias = #{alias}</if> <if test="alias != null and alias != ''"> and alias = #{alias}</if>
<if test="userId != null and userId != ''"> and user_id = #{userId}</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="gender != null "> and gender = #{gender}</if>
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if> <if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
<if test="email != null and email != ''"> and email = #{email}</if> <if test="email != null and email != ''"> and email = #{email}</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!