package com.yuchen.saas.park.service.service.door.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.park.api.dto.door.DoorUserInOutEventDTO;
import com.yuchen.saas.park.api.entity.door.DoorDeviceGroupItem;
import com.yuchen.saas.park.api.entity.door.DoorDevicePoint;
import com.yuchen.saas.park.api.entity.door.DoorUserInOutEvent;
import com.yuchen.saas.park.service.mapper.door.DoorDeviceGroupItemMapper;
import com.yuchen.saas.park.service.mapper.door.DoorUserInOutEventMapper;
import com.yuchen.saas.park.service.service.door.DoorUserInOutEventService;
import com.yuchen.saas.payment.api.util.PageConverterUtils;
import org.nest.springwrap.core.mp.base.BaseServiceImpl;
import org.nest.springwrap.core.mp.support.NestPage;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 人员出入事件 服务实现类
 * </p>
 *
 * @author miaoqs
 * @since 2023-12-20
 */
@Service
public class DoorUserInOutEventServiceImpl extends BaseServiceImpl<DoorUserInOutEventMapper, DoorUserInOutEvent> implements DoorUserInOutEventService {

    @Resource
    private DoorUserInOutEventMapper userInOutEventMapper;

    @Override
    public NestPage<DoorUserInOutEvent> paramPage(Page<DoorUserInOutEvent> page, DoorUserInOutEventDTO req) {
        Page<DoorUserInOutEvent> doorUserInOutEventPage = userInOutEventMapper.paramParam(page, req);
        return PageConverterUtils.convert(doorUserInOutEventPage);
    }

}
