package com.sckw.mine.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.mine.entity.KwBusinessMineralAggregate;
import com.sckw.mine.entity.req.MineralAggPageListParam;
import com.sckw.mine.entity.req.MineralAggregateUpdateParam;
import com.sckw.mine.entity.res.KwBusinessMineralAggregateDetailRes;
import com.sckw.mine.entity.res.MineralAggregateListRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@DS("mine")
public interface MineralAggregateMapper extends BaseMapper<KwBusinessMineralAggregate> {

    List<MineralAggregateListRes> mineAggregatePageList(@Param("param") MineralAggPageListParam param);
    int aggreDelete(String id);

    int aggreUpdate(@Param("param") MineralAggregateUpdateParam param);

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

}
