Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a686f449
authored
Jul 04, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
字段类型修改
1 parent
585c6872
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
src/main/java/cn/com/glsx/app/modules/model/view/LowPowerVO.java
src/test/java/cn/com/glsx/app/modules/service/VehicleMonitorServiceTest.java
src/main/java/cn/com/glsx/app/modules/model/view/LowPowerVO.java
View file @
a686f44
...
@@ -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
;
/**
/**
...
...
src/test/java/cn/com/glsx/app/modules/service/VehicleMonitorServiceTest.java
View file @
a686f44
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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment