package com.kiisoo.ic.store.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kiisoo.ic.store.entity.PrivilageCpUserStoreDO;
import com.kiisoo.ic.store.entity.StoreUserDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 店铺-企业微信账号-关联表  Mapper
 * @author yechenhao
 * @since 2020-04-09
 */
@Repository
public interface PrivilageCpUserStoreDOMapper extends BaseMapper<PrivilageCpUserStoreDO> {
    List<StoreUserDTO> selectCpUserByShops (@Param("shopIds") List<Long> shops);

    Long selectOneByCpUserId(String cpuserId);

    String selectCpUserIdByStoreId(Long storeId);
}
