package com.zhujizheng.IHome.generator.mapper; import com.zhujizheng.IHome.generator.dao.PYMsgNotify; import org.apache.ibatis.annotations.Param; import java.util.List; public interface PYMsgNotifyMapper { /** * @Description: 查询消息通知 * @Param: 【用户ID,上次查询的时间】 * @return: com.zhujizheng.IHome.generator.dao.PYMsgNotify; * @Author: 朱吉峥 * @Date: 2021/04/13 */ List selectNotifys(@Param("userId") int userId, @Param("msgTime") long time); /** * @Description: 查询指定消息通知 * @Param: 【用户id,消息类型,消息类型id】 * @return: com.zhujizheng.IHome.generator.dao.PYMsgNotify; * @Author: 朱吉峥 * @Date: 2021/04/13 */ PYMsgNotify selectUniqueNotify(@Param("userId") int userId, @Param("msgType") int type, @Param("msgTypeId") int msgTypeId); /** * @Description: 更新指定消息通知 * @Param: com.zhujizheng.IHome.generator.dao.PYMsgNotify; * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2024/05/24 */ int updateNotify(PYMsgNotify msgNotify); /** * @Description: 查询指定Id的消息通知 * @Param: 【消息通知id】 * @return: com.zhujizheng.IHome.generator.dao.PYMsgNotify; * @Author: 朱吉峥 * @Date: 2024/05/17 */ PYMsgNotify selectNotifyWithId(@Param("id") int id); /** * @Description: 插入消息 * @Param: com.zhujizheng.IHome.generator.dao.PYMsgNotify; * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2021/04/13 */ int insertNotify(PYMsgNotify msgNotify); /** * @Description: 根据userId,msgType,msgTypeId更新指定消息 * @Param: 【消息通知id】 * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2021/04/13 */ int deleteMsgNotify(@Param("id") int id); /** * @Description: 根据id更新指定消息 * @Param: 【消息通知id】 * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2024/05/17 */ int clearMsgNotify(@Param("id") int id); /** * @Description: 清空所有消息 * @Param: 【用户id】 * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2024/05/17 */ int clearAllMsgNotify(@Param("userId") int userId); }