package cn.iocoder.yudao.module.system.dal.mysql.biz;


import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.controller.admin.biz.vo.VitalSignsPageReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ElderlyVitalSignsDO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 生命体征 Mapper
 *
 * @author 源码
 */
@Mapper
public interface ElderlyVitalSignsMapper extends BaseMapperX<ElderlyVitalSignsDO> {
    List<ElderlyVitalSignsDO> getVitalSignsPage(Page<ElderlyVitalSignsDO> page,@Param("params") VitalSignsPageReqVO pageReqVO);

//    default PageResult<VitalSignsDO> selectPage(VitalSignsPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<VitalSignsDO>()
//                .eqIfPresent(VitalSignsDO::getElderId, reqVO.getElderId())
//                .eqIfPresent(VitalSignsDO::getTemperature, reqVO.getTemperature())
//                .eqIfPresent(VitalSignsDO::getPulse, reqVO.getPulse())
//                .eqIfPresent(VitalSignsDO::getRespiratoryRate, reqVO.getRespiratoryRate())
//                .eqIfPresent(VitalSignsDO::getSystolicPressure, reqVO.getSystolicPressure())
//                .eqIfPresent(VitalSignsDO::getDiastolicPressure, reqVO.getDiastolicPressure())
//                .eqIfPresent(VitalSignsDO::getBloodOxygenSaturation, reqVO.getBloodOxygenSaturation())
//                .eqIfPresent(VitalSignsDO::getBloodSugar, reqVO.getBloodSugar())
//                .eqIfPresent(VitalSignsDO::getWeight, reqVO.getWeight())
//                .eqIfPresent(VitalSignsDO::getStool, reqVO.getStool())
//                .eqIfPresent(VitalSignsDO::getUrinate, reqVO.getUrinate())
//                .eqIfPresent(VitalSignsDO::getRemarks, reqVO.getRemarks())
//                .likeIfPresent(VitalSignsDO::getSurveyorName, reqVO.getSurveyorName())
//                .betweenIfPresent(VitalSignsDO::getMeasuringTime, reqVO.getMeasuringTime())
//                .betweenIfPresent(VitalSignsDO::getMeasuringDate, reqVO.getMeasuringDate())
//                .orderByDesc(VitalSignsDO::getId));
//    }

}