| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.AccountMessage; |
| | | |
| | | public interface AccountMessageMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(AccountMessage record); |
| | | |
| | | int insertSelective(AccountMessage record); |
| | | |
| | | AccountMessage selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(AccountMessage record); |
| | | |
| | | int updateByPrimaryKey(AccountMessage record); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.AccountMessage;
|
| | |
|
| | | public interface AccountMessageMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(AccountMessage record);
|
| | |
|
| | | int insertSelective(AccountMessage record);
|
| | |
|
| | | AccountMessage selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(AccountMessage record);
|
| | |
|
| | | int updateByPrimaryKey(AccountMessage record);
|
| | |
|
| | | /**
|
| | | * 通过用户ID查询消息(id倒叙排列)
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<AccountMessage> listByUidOrderByIdDesc(@Param("uid")Long uid, @Param("start")long start, @Param("count")int count);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据用户ID获取是否已经打开的消息数量
|
| | | * @param uid
|
| | | * @param open
|
| | | * @return
|
| | | */
|
| | | long countByUidAndOpen(@Param("uid")Long uid,@Param("open")Boolean open);
|
| | | } |