package com.storlead.user.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.storlead.user.pojo.entity.SubCompanyEntity;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SubCompanyMapper extends BaseMapper<SubCompanyEntity> {

    @Select("truncate table sub_company")
    void truncateTable();

    List<SubCompanyEntity> getHasSublist(Long roleId);
}
