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.nursing.vo.NursingPlanPageReqVO;
import cn.iocoder.yudao.module.system.controller.admin.nursing.vo.NursingPlanRespVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.NursingPlanDO;
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 NursingPlanMapper extends BaseMapperX<NursingPlanDO> {
    List<NursingPlanRespVO> getNursingPlanPage(Page<NursingPlanRespVO> page,@Param("params") NursingPlanPageReqVO pageReqVO);

//    default PageResult<NursingPlanDO> selectPage(NursingPlanPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<NursingPlanDO>()
//                .eqIfPresent(NursingPlanDO::getElderId, reqVO.getElderId())
//                .likeIfPresent(NursingPlanDO::getElderName, reqVO.getElderName())
//                .betweenIfPresent(NursingPlanDO::getEffectiveDate, reqVO.getEffectiveDate())
//                .betweenIfPresent(NursingPlanDO::getExpirationDate, reqVO.getExpirationDate())
//                .eqIfPresent(NursingPlanDO::getDietaryType, reqVO.getDietaryType())
//                .eqIfPresent(NursingPlanDO::getDiet, reqVO.getDiet())
//                .eqIfPresent(NursingPlanDO::getDietaryTaboo, reqVO.getDietaryTaboo())
//                .eqIfPresent(NursingPlanDO::getRiskPrevention, reqVO.getRiskPrevention())
//                .eqIfPresent(NursingPlanDO::getNursingCharacteristics, reqVO.getNursingCharacteristics())
//                .betweenIfPresent(NursingPlanDO::getCreatedTime, reqVO.getCreatedTime())
//                .eqIfPresent(NursingPlanDO::getCreatedBy, reqVO.getCreatedBy())
//                .eqIfPresent(NursingPlanDO::getType, reqVO.getType())
//                .eqIfPresent(NursingPlanDO::getStatus, reqVO.getStatus())
//                .orderByDesc(NursingPlanDO::getId));
//    }

}