package com.enterprise.manage.modules.asset.mapper;

import com.enterprise.manage.common.base.BaseMapper;
import com.enterprise.manage.modules.asset.domain.Enterprise;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 企业机构 mapper 接口层
 *
 * @author QingLi Wang
 * 2023-11-28 09:24
 */
@Repository
public interface EnterpriseMapper extends BaseMapper<Enterprise> {
    /**
     * 根据社会信用代码查询是否存在
     *
     * Param name
     * Param id
     * Return int
     */
    int enterpriseUniqueCheck(@Param("creditCode") String creditCode,@Param("id") Long id);

    /**
     * 查询企业信息树
     *
     * Return list
     */
    List<Enterprise> selectTreeAll();
}


