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.ElderlySpecialNursingLogPageReqVO;
import cn.iocoder.yudao.module.system.controller.admin.nursing.vo.ElderlySpecialNursingLogRespVO;
import cn.iocoder.yudao.module.system.controller.admin.nursing.vo.ElderlySpecialNursingLogSimpleRespVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ElderlySpecialNursingLogDO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ElderlySpecialNursingLogMapper extends BaseMapperX<ElderlySpecialNursingLogDO> {

    List<ElderlySpecialNursingLogSimpleRespVO> selectPageWithElderInfo(@Param("page") Page<ElderlySpecialNursingLogSimpleRespVO> page,
                                                                       @Param("pageVO") ElderlySpecialNursingLogPageReqVO pageReqVO);

    List<ElderlySpecialNursingLogRespVO> selectListByElderIdAndFinishTimeWithItemName(@Param("elderId") Long elderId,
                                                                                      @Param("tenantId") Long tenantId,
                                                                                      @Param("begin") LocalDateTime begin,
                                                                                      @Param("endExclusive") LocalDateTime endExclusive);
}
