package com.yeshi.fanli.dao.mybatis.user.cloud;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.dao.BaseMapper;
|
import com.yeshi.fanli.entity.bus.user.cloud.UserCloud;
|
|
public interface UserCloudMapper extends BaseMapper<UserCloud> {
|
|
/**
|
* 查询有效信息
|
* @return
|
*/
|
UserCloud getValidByUid(@Param("uid") Long uid);
|
|
/**
|
* 查询有效信息
|
* @return
|
*/
|
UserCloud getLastByUid(@Param("uid") Long uid);
|
|
|
/**
|
* 统计所有记录
|
* @param uid
|
* @return
|
*/
|
Long countByUid(@Param("uid") Long uid);
|
|
|
/**
|
* 查询有效信息
|
* @return
|
*/
|
UserCloud getByOrderId(@Param("orderId") Long orderId);
|
|
/**
|
* 查询有效
|
* @return
|
*/
|
List<Long> listValidUid(@Param("start") long start, @Param("count") int count);
|
|
|
/**
|
* 查询订单记录
|
* @param start
|
* @param count
|
* @param uid
|
* @param state
|
* @return
|
*/
|
List<UserCloud> query(@Param("start") long start, @Param("count") int count, @Param("key")String key, @Param("state")Integer state);
|
|
Long count(@Param("key")String key, @Param("state")Integer state);
|
|
}
|