package com.nova.sankuai.infra.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.nova.sankuai.domain.entity.ChannelSupermarket;
|
import com.nova.sankuai.domain.entity.LoanSupermarket;
|
import com.nova.sankuai.domain.vo.LoanSupermarketVo;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.stereotype.Component;
|
|
import java.util.List;
|
|
/**
|
* @author weikangdi
|
* @create 2021/12/27
|
*/
|
@Mapper
|
@Component
|
public interface ChannelSupermarketMapper extends BaseMapper<ChannelSupermarket> {
|
|
/**
|
* 批量新增渠道贷超关联
|
*
|
* @param addList
|
*/
|
void batchSave(@Param("addList") List<ChannelSupermarket> addList);
|
|
/**
|
* 根据渠道Id获取贷超管理列表
|
*
|
* @param channelId
|
* @param page
|
* @return
|
*/
|
IPage<LoanSupermarketVo> pageSupermarketList(@Param("page") Page page, @Param("channelId") Long channelId);
|
|
/**
|
* 根据渠道Id获取可用贷超列表
|
*
|
* @param channelId
|
* @return
|
*/
|
List<LoanSupermarketVo> getSupermarketList(@Param("channelId") Long channelId);
|
|
/**
|
* 批量复制渠道贷超列表
|
*
|
* @param copyList
|
*/
|
void batchCopy(@Param("copyList") List<ChannelSupermarket> copyList);
|
|
/**
|
* 批量更新渠道贷超配置
|
*
|
* @param supermarket
|
*/
|
void batchUpdateByMarket(@Param("supermarket") LoanSupermarket supermarket);
|
}
|