package com.xinelu.familydoctor.mapper;

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

import java.util.List;

/**
* @author gaoyu
* @description 针对表【device_bf_record(血脂记录表)】的数据库操作Mapper
* @createDate 2023-09-26 15:04:52
* @Entity com.xinelu.familydoctor.entity.DeviceBfRecord
*/
public interface DeviceBfRecordMapper {

    /**
     * 获取血脂记录
     * @param identity 身份证号
     * @param type 类型0：全部1：周2：月3：年
     * @return {@link java.util.List<com.xinelu.familydoctor.entity.DeviceBfRecord>}
     * @author gaoyu
     * @date 2023-9-27 16:17
    */
    List<DeviceBfRecord> getBfRecord(@Param("identity") String identity, @Param("type") String type);

    int insert(DeviceBfRecord record);

    int update(DeviceBfRecord record);

}
