package com.xinelu.familydoctor.mapper;

import com.xinelu.familydoctor.entity.DeviceBmiRecord;
import com.xinelu.familydoctor.entity.DeviceBoRecord;
import com.xinelu.familydoctor.vo.BmiCalcVO;
import com.xinelu.familydoctor.vo.BoCalcVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author gaoyu
* @description 针对表【device_bo_record(血氧记录表)】的数据库操作Mapper
* @createDate 2023-09-26 15:05:09
* @Entity com.xinelu.familydoctor.entity.DeviceBoRecord
*/
public interface DeviceBoRecordMapper {

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

    /**
     * 获取血氧计算值
     * @param identity 身份证号
     * @param type type 类型0：全部1：周2：月3：年
     * @return {@link com.xinelu.familydoctor.vo.BoCalcVO}
     * @author gaoyu
     * @date 2023-10-8 9:22
     */
    BoCalcVO getBoCalc(@Param("identity") String identity, @Param("type") String type);

    int insert(DeviceBoRecord record);

    int update(DeviceBoRecord record);

}
