package com.ruoyi.system.mapper;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Shawn
 */
public interface SearchMapper {

    List<String> getColumns(@Param("tableName") String tableName);

    List<JSONObject> getTableData(@Param("tableName") String tableName, @Param("field") String field, @Param("logic") String logic, @Param("fieldInfo") String fieldInfo);

    List<JSONObject> getTableData2(@Param("tableName") String tableName, @Param("field") String field, @Param("logic") String logic, @Param("fieldInfo") String fieldInfo, @Param("field2") String field2, @Param("fieldInfo2") String fieldInfo2, @Param("fieldInfo3") String fieldInfo3);

    List<JSONObject> getTableData3(@Param("tableName") String tableName, @Param("field2") String field2, @Param("fieldInfo2") String fieldInfo2, @Param("fieldInfo3") String fieldInfo3);
}
