Authored by Amos_sdy

根据userid获取openid

package com.yoho.message.dal;
import java.util.List;
import com.yoho.message.dal.model.UserOpenid;
public interface IUserOpenidDAO {
int deleteByPrimaryKey(Integer id);
int insert(UserOpenid record);
int insertSelective(UserOpenid record);
UserOpenid selectByPrimaryKey(Integer id);
List<UserOpenid> selectByUid(Integer uid);
UserOpenid selectOpenUserByOpenAndRefer(String openId, String referId);
UserOpenid selectOpenUserByUidAndRefer(int uid, int referId);
int updateUserOpenID(String newOpenID, String oldOpenID);
int updateByPrimaryKeySelective(UserOpenid record);
int updateByPrimaryKey(UserOpenid record);
int updateUserOpenIDByUid(UserOpenid record);
}
\ No newline at end of file
... ...
package com.yoho.message.dal.model;
public class UserOpenid {
/**
*
*/
private static final long serialVersionUID = -3834001209768731678L;
private Integer id;
private Integer uid;
private String openId;
private Short referId;
private Integer bindTime;
private String shareBind;
private String nickname;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUid() {
return uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public String getOpenId() {
return openId;
}
public void setOpenId(String openId) {
this.openId = openId == null ? null : openId.trim();
}
public Short getReferId() {
return referId;
}
public void setReferId(Short referId) {
this.referId = referId;
}
public Integer getBindTime() {
return bindTime;
}
public void setBindTime(Integer bindTime) {
this.bindTime = bindTime;
}
public String getShareBind() {
return shareBind;
}
public void setShareBind(String shareBind) {
this.shareBind = shareBind == null ? null : shareBind.trim();
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname == null ? null : nickname.trim();
}
}
\ No newline at end of file
... ...
... ... @@ -38,4 +38,5 @@ datasources:
daos:
- com.yoho.message.dal.IUserProfileDao
- com.yoho.message.dal.IWechatTemplateDao
- com.yoho.message.dal.IUserOpenidDAO
readOnlyInSlave: true
\ No newline at end of file
... ...
... ... @@ -48,4 +48,5 @@ datasources:
daos:
- com.yoho.message.dal.IUserProfileDao
- com.yoho.message.dal.IWechatTemplateDao
- com.yoho.message.dal.IUserOpenidDAO
readOnlyInSlave: ${readOnlyInSlave}
\ No newline at end of file
... ...