package org.dromara.facility.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.facility.domain.FacPhotovoltaicPanelPoint;
import org.dromara.facility.domain.dto.photovoltaicpanelpoint.FacPhotovoltaicPanelPointCreateReq;
import org.dromara.facility.domain.dto.photovoltaicpanelpoint.FacPhotovoltaicPanelPointQueryReq;
import org.dromara.facility.domain.dto.photovoltaicpanelpoint.FacPhotovoltaicPanelPointUpdateReq;
import org.dromara.facility.domain.vo.photovoltaicpanelpoint.FacPhotovoltaicPanelPointVo;

import java.util.Collection;
import java.util.List;

/**
 * 设施-光伏板桩点Service接口
 *
 * @author lcj
 * @date 2025-04-21
 */
public interface IFacPhotovoltaicPanelPointService extends IService<FacPhotovoltaicPanelPoint> {

    /**
     * 查询设施-光伏板桩点
     *
     * @param id 主键
     * @return 设施-光伏板桩点
     */
    FacPhotovoltaicPanelPointVo queryById(Long id);

    /**
     * 分页查询设施-光伏板桩点列表
     *
     * @param req       查询条件
     * @param pageQuery 分页参数
     * @return 设施-光伏板桩点分页列表
     */
    TableDataInfo<FacPhotovoltaicPanelPointVo> queryPageList(FacPhotovoltaicPanelPointQueryReq req, PageQuery pageQuery);

    /**
     * 查询符合条件的设施-光伏板桩点列表
     *
     * @param req 查询条件
     * @return 设施-光伏板桩点列表
     */
    List<FacPhotovoltaicPanelPointVo> queryList(FacPhotovoltaicPanelPointQueryReq req);

    /**
     * 新增设施-光伏板桩点
     *
     * @param req 设施-光伏板桩点
     * @return 新增光伏板桩点id
     */
    Long insertByBo(FacPhotovoltaicPanelPointCreateReq req);

    /**
     * 修改设施-光伏板桩点
     *
     * @param req 设施-光伏板桩点
     * @return 是否修改成功
     */
    Boolean updateByBo(FacPhotovoltaicPanelPointUpdateReq req);

    /**
     * 校验并批量删除设施-光伏板桩点信息
     *
     * @param ids     待删除的主键集合
     * @param isValid 是否进行有效性校验
     * @return 是否删除成功
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 获取设施-光伏板桩点视图对象
     *
     * @param photovoltaicPanelPoint 设施-光伏板桩点对象
     * @return 设施-光伏板桩点视图对象
     */
    FacPhotovoltaicPanelPointVo getVo(FacPhotovoltaicPanelPoint photovoltaicPanelPoint);

    /**
     * 获取设施-光伏板桩点查询条件封装
     *
     * @param req 查询条件
     * @return 查询条件封装
     */
    LambdaQueryWrapper<FacPhotovoltaicPanelPoint> buildQueryWrapper(FacPhotovoltaicPanelPointQueryReq req);

    /**
     * 获取设施-光伏板桩点分页对象视图
     *
     * @param photovoltaicPanelPointPage 设施-光伏板桩点分页对象
     * @return 设施-光伏板桩点分页对象视图
     */
    Page<FacPhotovoltaicPanelPointVo> getVoPage(Page<FacPhotovoltaicPanelPoint> photovoltaicPanelPointPage);

}
