package com.yuchen.saas.park.service.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuchen.saas.park.api.dto.response.PmgBatDeviceTreeResponse;
import com.yuchen.saas.park.api.entity.park.PmgBatDeviceCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName DeviceCategoryMapper
 * @Description 园区设备分类映射类
 * @Author 肖祥
 * @Date 2022/10/5 14:50
 * @Version 1.0。0
 **/
public interface DeviceCategoryMapper extends BaseMapper<PmgBatDeviceCategory> {
    /**
     * 根据id查询子id
     * @param id
     * @return
     */
    @SqlParser(filter = true)
    List<PmgBatDeviceTreeResponse> getParkingTreeById(@Param("id") Long id);
}
