package com.zioinfo.hrm.uiws.system.mapper;

import com.zioinfo.hrm.uiws.system.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/** 거래처(tb_uiws_company) 매퍼. 원본 CompanyRepository 변환. */
@Mapper
public interface CompanyMapper {
    List<SysCompany> search(@Param("keyword") String keyword,
                            @Param("offset") int offset, @Param("size") int size);
    long countSearch(@Param("keyword") String keyword);
    List<SysCompany> searchActive(@Param("keyword") String keyword);
    List<SysCompany> findActiveOrdered();
    List<SysCompany> findAll();
    SysCompany findById(@Param("companyId") String companyId);
    boolean existsById(@Param("companyId") String companyId);
    int insert(SysCompany company);
    int update(SysCompany company);
    int deleteById(@Param("companyId") String companyId);
}
