|
@@ -1,5 +1,6 @@
|
|
|
package com.liangjiang.price_collection.mapper;
|
|
package com.liangjiang.price_collection.mapper;
|
|
|
|
|
|
|
|
|
|
+import com.liangjiang.price_collection.dto.BackupsInfo;
|
|
|
import com.liangjiang.price_collection.dto.PriceDto;
|
|
import com.liangjiang.price_collection.dto.PriceDto;
|
|
|
import com.liangjiang.price_collection.dto.PriceInfoDto;
|
|
import com.liangjiang.price_collection.dto.PriceInfoDto;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
@@ -7,14 +8,19 @@ import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
|
|
import java.sql.SQLSyntaxErrorException;
|
|
import java.sql.SQLSyntaxErrorException;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.Set;
|
|
|
|
|
|
|
|
@Mapper
|
|
@Mapper
|
|
|
public interface TableMapper {
|
|
public interface TableMapper {
|
|
|
// 创建表
|
|
// 创建表
|
|
|
void createTable(@Param("tableName")String tableName);
|
|
void createTable(@Param("tableName")String tableName);
|
|
|
|
|
+ // 批量创建表
|
|
|
|
|
+ void createTables(@Param("tableNames")Set<String> tableNames);
|
|
|
// 获取所有表名
|
|
// 获取所有表名
|
|
|
List<String> getTableName();
|
|
List<String> getTableName();
|
|
|
|
|
|
|
|
|
|
+ void savePrices(@Param("priceInfos") List<BackupsInfo> priceInfos);
|
|
|
|
|
+
|
|
|
// 保存价格信息
|
|
// 保存价格信息
|
|
|
void savePrice(@Param("tableName") String tableName, @Param("id") Integer id, @Param("ask") String ask,@Param("bid") String bid) throws SQLSyntaxErrorException;
|
|
void savePrice(@Param("tableName") String tableName, @Param("id") Integer id, @Param("ask") String ask,@Param("bid") String bid) throws SQLSyntaxErrorException;
|
|
|
|
|
|