package com.njzscloud.supervisory.biz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.biz.pojo.entity.BizCompanyEntity;
import com.njzscloud.supervisory.biz.pojo.result.StationResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 企业信息
 */
@Mapper
public interface BizCompanyMapper extends BaseMapper<BizCompanyEntity> {
    IPage<BizCompanyEntity> paging(Page<Object> page, @Param("ew") QueryWrapper<Object> ew);
    
    /**
     * 根据ID获取企业详情，包含用户的bizObj
     * @param id 企业ID
     * @return 企业实体，包含bizObj
     */
    BizCompanyEntity selectDetailWithBizObj(@Param("id") Long id);

    List<StationResult> station(@Param("lng") Double lng, @Param("lat") Double lat);

}
