package com.njcn.device.pms.service.majornetwork;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.njcn.device.pms.pojo.param.PowerClientParam;
import com.njcn.device.pms.pojo.param.PowerUserParam;
import com.njcn.device.pms.pojo.po.PowerClient;
import com.njcn.device.pms.pojo.po.PowerClient;
import com.njcn.device.pms.pojo.vo.PowerClientVO;
import com.njcn.web.pojo.param.BaseParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hongawen
 * @since 2022-10-14
 */
public interface IPowerClientService extends IService<PowerClient> {

    /**
     * 新增用电用户
     * @author cdf
     * @date 2022/10/25
     * @param powerClientParam 用电用户
     * @return boolean
     */
    boolean addPowerClient(PowerClientParam powerClientParam);

    /**
     * 修改用电用户
     * @author cdf
     * @date 2022/10/25
     * @param powerClientParam 用电用户
     * @return boolean
     */
    boolean updatePowerClient(PowerClientParam powerClientParam);

    /**
     * 删除用电用户
     * @author cdf
     * @date 2022/10/25
     * @param powerClientIds 用电用户
     * @return boolean
     */
    boolean delPowerClient(List<String> powerClientIds);

    /**
     * 查询用电用户
     * @author cdf
     * @date 2022/10/25
     * @param powerClientId 用电用户id
     * @return boolean
     */
    PowerClient getPowerClientById(String powerClientId);

    /**
     * 查询用电用户列表
     * @author cdf
     * @date 2022/10/25
     * @return boolean
     */
    List<PowerClientVO> getPowerClientList(PowerClientParam powerClientParam);

    /**
     * 查询用电用户列表
     * @author cdf
     * @date 2022/10/25
     * @param baseParam 基础参数
     * @return boolean
     */
    Page<PowerClient> getPowerClientPageList(BaseParam baseParam);

    /**
     * 查询用电用户列表
     */
    List<PowerClient> getPowerUtilizationUserList(PowerUserParam powerUserParam);

}
