开发同学页面接口

This commit is contained in:
huangdeliang 2020-12-08 20:49:03 +08:00
parent 561dfb6364
commit 2e3b440c42
6 changed files with 28 additions and 8 deletions

10
pom.xml
View File

@ -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>

View File

@ -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);
}
}

View File

@ -27,6 +27,8 @@ public interface SysWxUserInfoMapper
*/
public List<SysWxUserInfo> selectSysWxUserInfoList(SysWxUserInfo sysWxUserInfo);
public List<SysWxUserInfo> selectSysWxUserInfoListNot(SysWxUserInfo sysWxUserInfo);
/**
* 新增微信用户
*

View File

@ -27,6 +27,8 @@ public interface ISysWxUserInfoService
*/
public List<SysWxUserInfo> selectSysWxUserInfoList(SysWxUserInfo sysWxUserInfo);
public List<SysWxUserInfo> selectSysWxUserInfoListNot(SysWxUserInfo sysWxUserInfo);
/**
* 新增微信用户
*

View File

@ -44,6 +44,11 @@ public class SysWxUserInfoServiceImpl implements ISysWxUserInfoService
return sysWxUserInfoMapper.selectSysWxUserInfoList(sysWxUserInfo);
}
@Override
public List<SysWxUserInfo> selectSysWxUserInfoListNot(SysWxUserInfo sysWxUserInfo) {
return sysWxUserInfoMapper.selectSysWxUserInfoListNot(sysWxUserInfo);
}
/**
* 新增微信用户
*

View File

@ -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}