数据源库调整
This commit is contained in:
@@ -33,6 +33,11 @@ import java.util.List;
|
||||
public class DataSyncController {
|
||||
|
||||
|
||||
/**
|
||||
* 将时间区间拆解为24小时分区,小于24小时,仅查询当前时间区间,目前不支持指定时分秒
|
||||
* 暂且不用多线程处理,因无法控制数据指标数和时间范围多大,担心
|
||||
* @param migrationParam
|
||||
*/
|
||||
@PostMapping("/dataSync")
|
||||
@ApiOperation("数据同步")
|
||||
@ApiImplicitParam(name = "componentParam", value = "组件数据", required = true)
|
||||
@@ -51,7 +56,6 @@ public class DataSyncController {
|
||||
executor.clearTargetData(migrationParam);
|
||||
executor.insertBatchByDB(list);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -81,3 +81,4 @@ mybatis-plus:
|
||||
db-config:
|
||||
#指定主键生成策略
|
||||
id-type: assign_uuid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user