XklMemberOpenidRespository.java 614 Bytes
package com.xkl.repository;

import com.xkl.domain.XklMemberOpenidEntity;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by win7 on 2016/11/20.
 */
public interface XklMemberOpenidRespository extends CrudRepository<XklMemberOpenidEntity, Long> {
    public XklMemberOpenidEntity findByAccountIdAndType(long accountId, int type);

    public XklMemberOpenidEntity findByAccountIdAndTypeAndOpenid(long accountId, int type, String openid);

    public XklMemberOpenidEntity findOneByOpenidAndType(String openid,int type);

    public void deleteByOpenidAndType(String openid,int type);

}