package com.fs.watch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.watch.domain.WatchDeviceAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备(睡眠,房颤查询账户记录)Mapper接口
 *
 * @author fs
 * @date 2025-05-09
 */
public interface WatchDeviceAccountMapper extends BaseMapper<WatchDeviceAccount>{
    /**
     * 查询设备(睡眠,房颤查询账户记录)
     *
     * @param id 设备(睡眠,房颤查询账户记录)主键
     * @return 设备(睡眠,房颤查询账户记录)
     */
    WatchDeviceAccount selectWatchDeviceAccountById(Long id);

    WatchDeviceAccount selectWatchDeviceAccountByDeviceId(@Param("deviceId") String deviceId);

    /**
     * 查询设备(睡眠,房颤查询账户记录)列表
     *
     * @param watchDeviceAccount 设备(睡眠,房颤查询账户记录)
     * @return 设备(睡眠,房颤查询账户记录)集合
     */
    List<WatchDeviceAccount> selectWatchDeviceAccountList(WatchDeviceAccount watchDeviceAccount);

    /**
     * 新增设备(睡眠,房颤查询账户记录)
     *
     * @param watchDeviceAccount 设备(睡眠,房颤查询账户记录)
     * @return 结果
     */
    int insertWatchDeviceAccount(WatchDeviceAccount watchDeviceAccount);

    /**
     * 修改设备(睡眠,房颤查询账户记录)
     *
     * @param watchDeviceAccount 设备(睡眠,房颤查询账户记录)
     * @return 结果
     */
    int updateWatchDeviceAccount(WatchDeviceAccount watchDeviceAccount);

    /**
     * 删除设备(睡眠,房颤查询账户记录)
     *
     * @param id 设备(睡眠,房颤查询账户记录)主键
     * @return 结果
     */
    int deleteWatchDeviceAccountById(Long id);

    /**
     * 批量删除设备(睡眠,房颤查询账户记录)
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteWatchDeviceAccountByIds(Long[] ids);
}
