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.FacPhotovoltaicPanelColumn;
import org.dromara.facility.domain.dto.photovoltaicpanelcolumn.FacPhotovoltaicPanelColumnCreateReq;
import org.dromara.facility.domain.dto.photovoltaicpanelcolumn.FacPhotovoltaicPanelColumnQueryReq;
import org.dromara.facility.domain.dto.photovoltaicpanelcolumn.FacPhotovoltaicPanelColumnUpdateReq;
import org.dromara.facility.domain.vo.photovoltaicpanelcolumn.FacPhotovoltaicPanelColumnVo;

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

/**
 * 设施-光伏板立柱Service接口
 *
 * @author lcj
 * @date 2025-04-21
 */
public interface IFacPhotovoltaicPanelColumnService extends IService<FacPhotovoltaicPanelColumn> {

    /**
     * 查询设施-光伏板立柱
     *
     * @param id 主键
     * @return 设施-光伏板立柱
     */
    FacPhotovoltaicPanelColumnVo queryById(Long id);

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

    /**
     * 查询符合条件的设施-光伏板立柱列表
     *
     * @param req 查询条件
     * @return 设施-光伏板立柱列表
     */
    List<FacPhotovoltaicPanelColumnVo> queryList(FacPhotovoltaicPanelColumnQueryReq req);

    /**
     * 新增设施-光伏板立柱
     *
     * @param req 设施-光伏板立柱
     * @return 新增光伏板立柱id
     */
    Long insertByBo(FacPhotovoltaicPanelColumnCreateReq req);

    /**
     * 修改设施-光伏板立柱
     *
     * @param req 设施-光伏板立柱
     * @return 是否修改成功
     */
    Boolean updateByBo(FacPhotovoltaicPanelColumnUpdateReq req);

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

    /**
     * 获取设施-光伏板立柱视图对象
     *
     * @param photovoltaicPanelColumn 设施-光伏板立柱对象
     * @return 设施-光伏板立柱视图对象
     */
    FacPhotovoltaicPanelColumnVo getVo(FacPhotovoltaicPanelColumn photovoltaicPanelColumn);

    /**
     * 获取设施-光伏板立柱查询条件封装
     *
     * @param req 查询条件
     * @return 查询条件封装
     */
    LambdaQueryWrapper<FacPhotovoltaicPanelColumn> buildQueryWrapper(FacPhotovoltaicPanelColumnQueryReq req);

    /**
     * 获取设施-光伏板立柱分页对象视图
     *
     * @param photovoltaicPanelColumnPage 设施-光伏板立柱分页对象
     * @return 设施-光伏板立柱分页对象视图
     */
    Page<FacPhotovoltaicPanelColumnVo> getVoPage(Page<FacPhotovoltaicPanelColumn> photovoltaicPanelColumnPage);

}
