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.ElderlyHealthFollowUpPageVO;
import cn.iocoder.yudao.module.system.controller.admin.biz.vo.HealthFollowUpPageReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ElderlyHealthFollowUpDO;
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 ElderlyHealthFollowUpMapper extends BaseMapperX<ElderlyHealthFollowUpDO> {
    List<ElderlyHealthFollowUpPageVO> getHealthFollowUpPage(Page<ElderlyHealthFollowUpPageVO> page, @Param("params") HealthFollowUpPageReqVO pageReqVO);

//    default PageResult<ElderlyHealthFollowUpDO> selectPage(HealthFollowUpPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<ElderlyHealthFollowUpDO>()
//                .eqIfPresent(ElderlyHealthFollowUpDO::getElderId, reqVO.getElderId())
//                .likeIfPresent(ElderlyHealthFollowUpDO::getElderName, reqVO.getElderName())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getElderSex, reqVO.getElderSex())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getBedId, reqVO.getBedId())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getFollowUpGrade, reqVO.getFollowUpGrade())
//                .betweenIfPresent(ElderlyHealthFollowUpDO::getFollowUpTime, reqVO.getFollowUpTime())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getType, reqVO.getType())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getFollowUpPersonnel, reqVO.getFollowUpPersonnel())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getFollowUpFellow, reqVO.getFollowUpFellow())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getConcerns, reqVO.getConcerns())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getElderMood, reqVO.getElderMood())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getElderAttitude, reqVO.getElderAttitude())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getAttachments, reqVO.getAttachments())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getDescription, reqVO.getDescription())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getBodyTemperature, reqVO.getBodyTemperature())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getSystolicPressure, reqVO.getSystolicPressure())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getDiastolicPressure, reqVO.getDiastolicPressure())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getPulse, reqVO.getPulse())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getRespiratoryRate, reqVO.getRespiratoryRate())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getBloodOxygenSaturation, reqVO.getBloodOxygenSaturation())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getBloodSugar, reqVO.getBloodSugar())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getBloodSugarType, reqVO.getBloodSugarType())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getBothLungs, reqVO.getBothLungs())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getHeartRate, reqVO.getHeartRate())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getCholesterol, reqVO.getCholesterol())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getUricAcid, reqVO.getUricAcid())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getSleep, reqVO.getSleep())
//                .betweenIfPresent(ElderlyHealthFollowUpDO::getIsMedicationOnTime, reqVO.getIsMedicationOnTime())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getDiet, reqVO.getDiet())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getFiveSenses, reqVO.getFiveSenses())
//                .eqIfPresent(ElderlyHealthFollowUpDO::getMedicationSituation, reqVO.getMedicationSituation())
//                .betweenIfPresent(ElderlyHealthFollowUpDO::getCreateTime, reqVO.getCreateTime())
//                .orderByDesc(ElderlyHealthFollowUpDO::getId));
//    }

}