| | |
| | | import java.math.BigDecimal;
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import org.apache.ibatis.annotations.Param;
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | |
| | | /**
|
| | | * 通过openid和loginType,获取用户
|
| | | *
|
| | | * @param loginType
|
| | | * 1:阿里系列(淘宝)账户
|
| | | * @param openid
|
| | | * :登录淘宝后得到的openid
|
| | | * @param loginType 1:阿里系列(淘宝)账户
|
| | | * @param openid :登录淘宝后得到的openid
|
| | | * @param appid
|
| | | * @return 用户,如果不存在返回null
|
| | | */
|
| | | public UserInfo getUserByLoginTypeAndOpenId(int loginType, String openid, String appid);
|
| | | /**
|
| | | *
|
| | | * @param loginType
|
| | | * @param openid
|
| | | * @param sysetm
|
| | | * @return
|
| | | */
|
| | | public UserInfo getUserByLoginTypeAndOpenId(int loginType, String openid, SystemEnum sysetm);
|
| | |
|
| | | /**
|
| | | * 添加用户
|
| | | *
|
| | | * @param form
|
| | | * 用户信息
|
| | | * @param form 用户信息
|
| | | * @return 用户,添加失败返回null
|
| | | */
|
| | | public UserInfo addUser(UserInfo form, String appid);
|
| | | public UserInfo addUser(UserInfo form, SystemEnum sysetm);
|
| | |
|
| | | /**
|
| | | * 通过用户id获取用户
|
| | | *
|
| | | * @param uid
|
| | | * 用户id
|
| | | * @param uid 用户id
|
| | | * @return 用户
|
| | | */
|
| | | public UserInfo getUserById(long uid);
|
| | |
| | |
|
| | | public void addMoney(UserInfo userInfo, BigDecimal money);
|
| | |
|
| | | public boolean createUser(UserInfo form, String appid);
|
| | | public boolean createUser(UserInfo form, SystemEnum sysetm);
|
| | |
|
| | | public void updateLoginInfo(UserInfo user);
|
| | |
|
| | |
| | | * @param phone
|
| | | * @return
|
| | | */
|
| | | public UserInfo getEffectiveUserInfoByPhone(String phone);
|
| | | public UserInfo getEffectiveUserInfoByPhone(String phone, SystemEnum sysetm);
|
| | |
|
| | | /**
|
| | | * 获取用户信息
|
| | |
| | | * @param unionId
|
| | | * @return
|
| | | */
|
| | | public UserInfo getEffectiveUserInfoByWXUnionId(String unionId);
|
| | | public UserInfo getEffectiveUserInfoByWXUnionId(String unionId, SystemEnum sysetm);
|
| | |
|
| | | /**
|
| | | * 获取用户余额
|
| | |
| | | public UserInfo selectAvailableByPrimaryKey(Long uid);
|
| | |
|
| | |
|
| | | |
| | | public long countInfo(Integer userState, String key, Integer keyType, String userRank, Integer days, String startTime,
|
| | | String endTime, Integer userType, String level, Integer activeCode);
|
| | |
|
| | |
| | | Integer days, String startTime, String endTime, Integer userType, String level, Integer activeCode);
|
| | |
|
| | |
|
| | | List<UserInfo> listBySystemAndWXUnionId(SystemEnum system, String unionId);
|
| | | List<UserInfo> listBySystemAndTaoBaoOpenId(SystemEnum system, String openId);
|
| | | List<UserInfo> listBySystemAndPhone(SystemEnum system, String phone);
|
| | |
|
| | | /**
|
| | | * 根据用户ID获取所在系统
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public SystemEnum getUserSystem(Long uid);
|
| | | }
|