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.ByodRegistrationDrugRespVO;
import cn.iocoder.yudao.module.system.controller.admin.biz.vo.ByodRegistrationPageReqVO;
import cn.iocoder.yudao.module.system.controller.admin.biz.vo.ByodRegistrationRespVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ByodRegistrationDO;
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 ByodRegistrationMapper extends BaseMapperX<ByodRegistrationDO> {
    List<ByodRegistrationRespVO> getByodRegistrationPage(Page<ByodRegistrationRespVO> page,@Param("params") ByodRegistrationPageReqVO pageReqVO);

    List<ByodRegistrationDrugRespVO> getByodRegistrationDrugPage(Page<ByodRegistrationDrugRespVO> page,@Param("params") ByodRegistrationPageReqVO pageReqVO);

    List<ByodRegistrationRespVO> getByodRegistrationList();

//    default PageResult<ByodRegistrationDO> selectPage(ByodRegistrationPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<ByodRegistrationDO>()
//                .eqIfPresent(ByodRegistrationDO::getElderId, reqVO.getElderId())
//                .eqIfPresent(ByodRegistrationDO::getType, reqVO.getType())
//                .likeIfPresent(ByodRegistrationDO::getDeliveryPersonName, reqVO.getDeliveryPersonName())
//                .likeIfPresent(ByodRegistrationDO::getRecipientName, reqVO.getRecipientName())
//                .betweenIfPresent(ByodRegistrationDO::getRegistrationDate, reqVO.getRegistrationDate())
//                .eqIfPresent(ByodRegistrationDO::getRemarks, reqVO.getRemarks())
//                .eqIfPresent(ByodRegistrationDO::getFiles, reqVO.getFiles())
//                .betweenIfPresent(ByodRegistrationDO::getCreatedTime, reqVO.getCreatedTime())
//                .eqIfPresent(ByodRegistrationDO::getCreatedBy, reqVO.getCreatedBy())
//                .orderByDesc(ByodRegistrationDO::getId));
//    }

}