开发同学页面接口
This commit is contained in:
parent
561dfb6364
commit
2e3b440c42
10
pom.xml
10
pom.xml
@ -254,20 +254,20 @@
|
||||
</pluginRepositories>
|
||||
|
||||
<profiles>
|
||||
<!-- dev开发环境配置,release为生产环境配置 -->
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<id>local</id>
|
||||
<properties>
|
||||
<profileActive>dev</profileActive>
|
||||
<profileActive>local</profileActive>
|
||||
</properties>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
</profile>
|
||||
<!-- dev开发环境配置,release为生产环境配置 -->
|
||||
<profile>
|
||||
<id>local</id>
|
||||
<id>dev</id>
|
||||
<properties>
|
||||
<profileActive>local</profileActive>
|
||||
<profileActive>dev</profileActive>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
@ -144,15 +144,15 @@ public class SysWxUserInfoController extends BaseController {
|
||||
}
|
||||
|
||||
@GetMapping("/wx/user/list")
|
||||
public AjaxResult userList(SysWxUserInfo sysWxUserInfo) {
|
||||
public TableDataInfo userList(SysWxUserInfo sysWxUserInfo) {
|
||||
startPage();
|
||||
List<SysWxUserInfo> list = sysWxUserInfoService.selectSysWxUserInfoList(sysWxUserInfo);
|
||||
List<SysWxUserInfo> list = sysWxUserInfoService.selectSysWxUserInfoListNot(sysWxUserInfo);
|
||||
|
||||
for (SysWxUserInfo userInfo : list) {
|
||||
if (StringUtils.isNotEmpty(userInfo.getPhone())) {
|
||||
userInfo.setPhone(userInfo.getPhone().replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2"));
|
||||
}
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -27,6 +27,8 @@ public interface SysWxUserInfoMapper
|
||||
*/
|
||||
public List<SysWxUserInfo> selectSysWxUserInfoList(SysWxUserInfo sysWxUserInfo);
|
||||
|
||||
public List<SysWxUserInfo> selectSysWxUserInfoListNot(SysWxUserInfo sysWxUserInfo);
|
||||
|
||||
/**
|
||||
* 新增微信用户
|
||||
*
|
||||
|
@ -27,6 +27,8 @@ public interface ISysWxUserInfoService
|
||||
*/
|
||||
public List<SysWxUserInfo> selectSysWxUserInfoList(SysWxUserInfo sysWxUserInfo);
|
||||
|
||||
public List<SysWxUserInfo> selectSysWxUserInfoListNot(SysWxUserInfo sysWxUserInfo);
|
||||
|
||||
/**
|
||||
* 新增微信用户
|
||||
*
|
||||
|
@ -44,6 +44,11 @@ public class SysWxUserInfoServiceImpl implements ISysWxUserInfoService
|
||||
return sysWxUserInfoMapper.selectSysWxUserInfoList(sysWxUserInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SysWxUserInfo> selectSysWxUserInfoListNot(SysWxUserInfo sysWxUserInfo) {
|
||||
return sysWxUserInfoMapper.selectSysWxUserInfoListNot(sysWxUserInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增微信用户
|
||||
*
|
||||
|
@ -35,6 +35,17 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysWxUserInfoListNot" parameterType="SysWxUserInfo" resultMap="SysWxUserInfoResult">
|
||||
<include refid="selectSysWxUserInfoVo"/>
|
||||
<where>
|
||||
<if test="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
|
||||
<if test="appid != null and appid != ''"> and appid = #{appid}</if>
|
||||
<if test="openid != null and openid != ''"> and openid != #{openid}</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysWxUserInfoById" parameterType="String" resultMap="SysWxUserInfoResult">
|
||||
<include refid="selectSysWxUserInfoVo"/>
|
||||
where openid = #{openid}
|
||||
|
Loading…
x
Reference in New Issue
Block a user