开发同学页面接口

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

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}