优化代码:统一时间单位为秒,删除部分冗余代码。

This commit is contained in:
zhanghongqing
2022-07-22 15:35:07 +08:00
parent fa3f628658
commit 9f22443c7c
21 changed files with 217 additions and 783 deletions

View File

@@ -0,0 +1,19 @@
package com.zdjizhi.etl;
import com.zdjizhi.utils.json.TypeUtils;
import java.util.Map;
public class LogFormat {
public static Map<String, Object> connTime(Map<String, Object> value) {
value.put("conn_start_time", TypeUtils.coverMSToS(value.get("conn_start_time")));
return value;
}
public static Map<String, Object> sketchTime(Map<String, Object> value) {
value.put("sketch_start_time", TypeUtils.coverMSToS(value.get("sketch_start_time")));
return value;
}
}