|
@@ -87,9 +87,10 @@ public class Device implements Serializable{
|
|
|
public static String buildDeviceStr(Device device){
|
|
|
Date timestamp = device.getTimestamp();
|
|
|
timestamp = DateUtil.calculateByHour(timestamp, 8);
|
|
|
+ String date = new SimpleDateFormat("yy-MM-dd HH:mm:ss").format(timestamp);
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
builder.append(device.getDeviceId()).append(",");
|
|
|
- builder.append(1).append(",");
|
|
|
+ builder.append(date).append(",");
|
|
|
builder.append(device.getItemState()).append(",");
|
|
|
builder.append(device.getLng()).append(",");
|
|
|
builder.append(device.getLat()).append(",");
|