MyBatis-Plus executes native SQL

Define the method to be executed in the mapper file

@Repository
public interface ZbArticleCEIResultPerformanceMapper extends BaseMapper<ZbArticleCEIResultPerformance> {

    @Select({"${sql}"})
    @ResultType(ArrayList.class)
    List<ZbArticleCEIResultPerformance> executeQuery(@Param("sql") String sql);

}

Guess you like

Origin blog.csdn.net/m0_54853503/article/details/123988889