Commit ac1be1bb authored by 赵建伟's avatar 赵建伟

update codes

parent 7473e043
...@@ -58,7 +58,7 @@ public class PortraitMonitorSucOperator implements BaseOperator{ ...@@ -58,7 +58,7 @@ public class PortraitMonitorSucOperator implements BaseOperator{
public long extractAscendingTimestamp(String element) { public long extractAscendingTimestamp(String element) {
JSONObject jsonObject = JSON.parseObject(element); JSONObject jsonObject = JSON.parseObject(element);
String dateTimeStr = jsonObject.getString("log_time"); String dateTimeStr = jsonObject.getString("log_time");
long dateTime = Math.round(Double.valueOf(dateTimeStr)); long dateTime = Math.round(Double.valueOf(dateTimeStr)) * 1000;
return dateTime; return dateTime;
} }
}).map(new MapFunction<String, GmPortraitResult>() { }).map(new MapFunction<String, GmPortraitResult>() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment