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

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

/** 업무 사용자(tb_uiws_sys_user) 매퍼. 원본 SysUserRepository 변환. */
@Mapper
public interface SysUserMapper {
    List<SysUser> search(@Param("keyword") String keyword, @Param("deptId") String deptId,
                         @Param("offset") int offset, @Param("size") int size);
    long countSearch(@Param("keyword") String keyword, @Param("deptId") String deptId);
    List<SysUser> searchActive(@Param("keyword") String keyword, @Param("deptId") String deptId);
    List<SysUser> findByDeptId(@Param("deptId") String deptId);
    SysUser findById(@Param("userId") String userId);
    boolean existsById(@Param("userId") String userId);
    int insert(SysUser user);
    int update(SysUser user);
}
