Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d7d81d9f
authored
May 09, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发警情消费服务
1 parent
2fb0faf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
src/main/java/cn/com/glsx/stdinterface/modules/entity/VehicleDevice.java
src/test/java/cn/com/glsx/stdinterface/modules/service/VehicleDeviceServiceTest.java
src/main/java/cn/com/glsx/stdinterface/modules/entity/VehicleDevice.java
View file @
d7d81d9
package
cn
.
com
.
glsx
.
stdinterface
.
modules
.
entity
;
package
cn
.
com
.
glsx
.
stdinterface
.
modules
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.glsx.plat.mybatis.base.BaseEntity
;
import
com.glsx.plat.mybatis.base.BaseEntity
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -52,6 +53,7 @@ public class VehicleDevice extends BaseEntity {
...
@@ -52,6 +53,7 @@ public class VehicleDevice extends BaseEntity {
* 激活上点时间
* 激活上点时间
*/
*/
@Column
(
name
=
"active_location_date"
)
@Column
(
name
=
"active_location_date"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
activeLocationDate
;
private
Date
activeLocationDate
;
/**
/**
...
...
src/test/java/cn/com/glsx/stdinterface/modules/service/VehicleDeviceServiceTest.java
0 → 100644
View file @
d7d81d9
package
cn
.
com
.
glsx
.
stdinterface
.
modules
.
service
;
import
cn.com.glsx.Application
;
import
cn.com.glsx.stdinterface.dto.VehicleDeviceDto
;
import
cn.hutool.json.JSONUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.jupiter.api.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
@Slf4j
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
)
public
class
VehicleDeviceServiceTest
{
@Autowired
private
VehicleDeviceService
vehicleDeviceService
;
@Test
public
void
getVehicleDeviceBySn
()
{
VehicleDeviceDto
vehicleDeviceBySn
=
vehicleDeviceService
.
getVehicleDeviceBySn
(
"1610507001"
);
System
.
out
.
println
(
"vehicleDeviceBySn = "
+
JSONUtil
.
toJsonStr
(
vehicleDeviceBySn
));
}
}
\ 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