Commit a686f449 by 向延琳

字段类型修改

1 parent 585c6872
...@@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* 看板低电量统计返回 * 看板低电量统计返回
...@@ -29,25 +28,25 @@ public class LowPowerVO implements Serializable { ...@@ -29,25 +28,25 @@ public class LowPowerVO implements Serializable {
/** /**
* 车架号 * 车架号
**/ **/
@ApiModelProperty("车架号*/") @ApiModelProperty("车架号")
private String vin; private String vin;
/** /**
* 设备号 * 设备号
**/ **/
@ApiModelProperty("设备号*/") @ApiModelProperty("设备号")
private String sn; private String sn;
/** /**
* 时间 * 时间
**/ **/
@ApiModelProperty("时间*/") @ApiModelProperty("报警时间")
private Date timeFlag; private String alarmTime;
/** /**
* 激活时间 * 激活时间
**/ **/
@ApiModelProperty("激活时间*/") @ApiModelProperty("激活时间")
private String activeDate; private String activeDate;
/** /**
......
package cn.com.glsx.app.modules.service; package cn.com.glsx.app.modules.service;
import cn.com.glsx.app.modules.converter.VehicleMonitorConvert; import cn.com.glsx.app.modules.converter.VehicleMonitorConvert;
import cn.com.glsx.app.modules.model.view.LowPowerVO;
import cn.com.glsx.app.modules.model.view.StatisticalInfoVO;
import cn.com.glsx.app.modules.model.view.VehicleLocationDTO; import cn.com.glsx.app.modules.model.view.VehicleLocationDTO;
import cn.com.glsx.app.modules.model.view.TrackPointVO; import cn.com.glsx.app.modules.model.view.TrackPointVO;
import cn.com.glsx.devicemonitor.api.dto.response.DeviceLocationDTO; import cn.com.glsx.devicemonitor.api.dto.response.DeviceLocationDTO;
...@@ -20,7 +22,9 @@ class VehicleMonitorServiceTest { ...@@ -20,7 +22,9 @@ class VehicleMonitorServiceTest {
public static void main(String[] args) { public static void main(String[] args) {
// generateDeviceLocationDTOJSON(); // generateDeviceLocationDTOJSON();
generateTrackPointVOJSON(); // generateTrackPointVOJSON();
// generateStatisticalInfoVOJSON();
generateLowPowerVOJSON();
} }
private static void generateDeviceLocationDTOJSON() { private static void generateDeviceLocationDTOJSON() {
...@@ -46,4 +50,22 @@ class VehicleMonitorServiceTest { ...@@ -46,4 +50,22 @@ class VehicleMonitorServiceTest {
SerializerFeature.WriteMapNullValue)); SerializerFeature.WriteMapNullValue));
} }
private static void generateStatisticalInfoVOJSON() {
StatisticalInfoVO element = new StatisticalInfoVO();
System.out.println(JSON.toJSONString(
R.ok().data(element)
, SerializerFeature.PrettyFormat,
SerializerFeature.WriteMapNullValue));
}
private static void generateLowPowerVOJSON() {
LowPowerVO element = new LowPowerVO();
List<LowPowerVO> list = Lists.newArrayList(element);
System.out.println(JSON.toJSONString(
R.ok().putPageData(element, 1)
, SerializerFeature.PrettyFormat,
SerializerFeature.WriteMapNullValue));
}
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!