Files
ga-commission-system/ga-common/src/main/java/com/ga/common/notification/NotificationMapper.java
T

18 lines
590 B
Java
Raw Normal View History

package com.ga.common.notification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface NotificationMapper {
int insert(NotificationVO vo);
int insertBatch(@Param("list") List<NotificationVO> list);
List<NotificationVO> selectByUser(@Param("userId") Long userId);
int countUnread(@Param("userId") Long userId);
int markRead(@Param("notiId") Long notiId, @Param("userId") Long userId);
int markAllRead(@Param("userId") Long userId);
int deleteOld(@Param("days") int days);
}