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

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

/** 프로그램(tb_uiws_program) 매퍼. 원본 ProgramRepository 변환. */
@Mapper
public interface ProgramMapper {
    List<SysProgram> search(@Param("keyword") String keyword, @Param("programType") String programType,
                            @Param("offset") int offset, @Param("size") int size);
    long countSearch(@Param("keyword") String keyword, @Param("programType") String programType);
    List<SysProgram> searchActive(@Param("keyword") String keyword);
    SysProgram findById(@Param("programId") String programId);
    boolean existsById(@Param("programId") String programId);
    int insert(SysProgram program);
    int update(SysProgram program);
    int deleteById(@Param("programId") String programId);
}
