package com.xinelu.familydoctor.mapper;

import com.xinelu.familydoctor.entity.DeviceBindResident;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author gaoyu
* @description 针对表【device_bind_resident(居民设备绑定记录表)】的数据库操作Mapper
* @createDate 2023-09-25 16:01:01
* @Entity com.xinelu.familydoctor.entity.DeviceBindResident
*/
public interface DeviceBindResidentMapper {

    /**
     * 已绑定设备
     * @param identity 身份证号
     * @return {@link java.util.List<com.xinelu.familydoctor.entity.DeviceBindResident>}
     * @author gaoyu
     * @date 2023-9-26 9:58
    */
    List<DeviceBindResident> boundDevice(@Param("identity") String identity);

    /**
     * 设备是否多次绑定
     * @param record 参数
     * @return {@link java.lang.Integer}
     * @author gaoyu
     * @date 2023-9-25 17:16
    */
    Integer repeatBind(DeviceBindResident record);

    int insert(DeviceBindResident record);

    int update(DeviceBindResident record);

}
