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


import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ByodRegistrationDrugDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 长者自带药登记药品 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface ByodRegistrationDrugMapper extends BaseMapperX<ByodRegistrationDrugDO> {

//    default PageResult<ByodRegistrationDrugDO> selectPage(ByodRegistrationDrugPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<ByodRegistrationDrugDO>()
//                .eqIfPresent(ByodRegistrationDrugDO::getByodRegistrationId, reqVO.getByodRegistrationId())
//                .likeIfPresent(ByodRegistrationDrugDO::getDrugName, reqVO.getDrugName())
//                .eqIfPresent(ByodRegistrationDrugDO::getSpec, reqVO.getSpec())
//                .eqIfPresent(ByodRegistrationDrugDO::getCount, reqVO.getCount())
//                .eqIfPresent(ByodRegistrationDrugDO::getUnit, reqVO.getUnit())
//                .betweenIfPresent(ByodRegistrationDrugDO::getExpireTime, reqVO.getExpireTime())
//                .betweenIfPresent(ByodRegistrationDrugDO::getCalculateDate, reqVO.getCalculateDate())
//                .eqIfPresent(ByodRegistrationDrugDO::getTotalDosage, reqVO.getTotalDosage())
//                .eqIfPresent(ByodRegistrationDrugDO::getDailyDosage, reqVO.getDailyDosage())
//                .betweenIfPresent(ByodRegistrationDrugDO::getExpectedUsableTime, reqVO.getExpectedUsableTime())
//                .betweenIfPresent(ByodRegistrationDrugDO::getCreatedTime, reqVO.getCreatedTime())
//                .eqIfPresent(ByodRegistrationDrugDO::getCreatedBy, reqVO.getCreatedBy())
//                .eqIfPresent(ByodRegistrationDrugDO::getUsageDosage, reqVO.getUsageDosage())
//                .orderByDesc(ByodRegistrationDrugDO::getId));
//    }

}