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

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.entity.pldoor.PlPsRobot;
import com.yuchen.saas.park.api.vo.request.PlPsRobotReq;
import com.yuchen.saas.park.service.mapper.pldoor.PlPsRobotMapper;
import com.yuchen.saas.park.service.service.pldoor.PlPsRobotService;
import org.nest.springwrap.core.mp.base.BaseServiceImpl;
import org.nest.springwrap.core.mp.support.Query;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 智慧配送机器人实时位置 服务实现类
 * </p>
 *
 * @author miaoqs
 * @since 2024-07-31
 */
@Service
public class PlPsRobotServiceImpl extends BaseServiceImpl<PlPsRobotMapper, PlPsRobot> implements PlPsRobotService {

    @Override
    public IPage<PlPsRobot> pageByparam(PlPsRobotReq plPsRobotReq, Query query) {

        return null;
    }

    @Override
    public List<PlPsRobot> listByparam(Long parkId) {
        List<PlPsRobot> list = list(new LambdaQueryWrapper<PlPsRobot>().eq(PlPsRobot::getParkId, parkId));
        return list;
    }
}
