package com.sckw.mine.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.mine.entity.KwBusinessNode;
import com.sckw.mine.entity.dto.NodeStatusDTO;
import com.sckw.mine.entity.req.MineralAggPageListParam;
import com.sckw.mine.entity.req.MineralAggregateUpdateParam;
import com.sckw.mine.entity.req.NodePageListParam;
import com.sckw.mine.entity.req.NodeUpdateParam;
import com.sckw.mine.entity.res.KwBusinessMineralAggregateDetailRes;
import com.sckw.mine.entity.res.MineralAggregateListRes;
import com.sckw.mine.entity.res.NodeDetailRes;
import com.sckw.mine.entity.res.NodePageListRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@DS("mine")
public interface NodeMapper extends BaseMapper<KwBusinessNode> {

    int nodeDelete(String id);
    List<NodePageListRes> nodePageList(@Param("param") NodePageListParam param);

    int nodeUpdate(@Param("param") NodeUpdateParam param);

    NodeDetailRes load(@Param("id") String id);

    int statusAction(@Param("id") String id, @Param("status") Integer status);

    List<NodeStatusDTO> selectListNode(@Param("tenantId") String tenantId);
}
