Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BHFT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈嘉强 Rainy Chen
BHFT
Commits
376b843a
Commit
376b843a
authored
Mar 10, 2022
by
陈嘉强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据进入数据库
parent
02dbe3d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
InterfaceParkingGate.java
...in/java/com/logwire/bhft/domain/InterfaceParkingGate.java
+6
-6
TopicReceiveListener.java
.../java/com/logwire/bhft/listener/TopicReceiveListener.java
+2
-1
ParkingGateServiceImpl.java
...com/logwire/bhft/service/impl/ParkingGateServiceImpl.java
+10
-0
No files found.
src/main/java/com/logwire/bhft/domain/InterfaceParkingGate.java
View file @
376b843a
...
...
@@ -17,12 +17,12 @@ public class InterfaceParkingGate implements Serializable {
/**
* id
*/
private
Object
id
;
private
Long
id
;
/**
* 请求时间戳
*/
private
Object
requestTime
;
private
Long
requestTime
;
/**
* 请求id
...
...
@@ -32,7 +32,7 @@ public class InterfaceParkingGate implements Serializable {
/**
* 出场请求时间戳
*/
private
Object
exitRequestTime
;
private
Long
exitRequestTime
;
/**
* 出场请求id
...
...
@@ -57,7 +57,7 @@ public class InterfaceParkingGate implements Serializable {
/**
* 进场时间
*/
private
Object
entryTime
;
private
Long
entryTime
;
/**
* 入口id
...
...
@@ -67,7 +67,7 @@ public class InterfaceParkingGate implements Serializable {
/**
* 出场时间
*/
private
Object
exitTime
;
private
Long
exitTime
;
/**
* 出口id
...
...
@@ -77,7 +77,7 @@ public class InterfaceParkingGate implements Serializable {
/**
* 交易时间
*/
private
Object
tradeTime
;
private
Long
tradeTime
;
/**
* 费率版本
...
...
src/main/java/com/logwire/bhft/listener/TopicReceiveListener.java
View file @
376b843a
...
...
@@ -53,6 +53,8 @@ public class TopicReceiveListener {
parkingGate
.
setRequestId
(
infomation
.
getRequestId
());
parkingGate
.
setRequestTime
(
infomation
.
getRequestTime
());
parkingGate
.
setSlotId
(
infomation
.
getSlotId
());
parkingGate
.
setTradeTime
(
infomation
.
getTradeTime
());
parkingGate
.
setTradeType
(
infomation
.
getTradeType
());
parkingGate
.
setTollRateVersion
(
infomation
.
getTollRateVersion
());
parkingGate
.
setTollCollectorName
(
infomation
.
getTollCollectorName
());
parkingGate
.
setUseType
(
infomation
.
getUseType
());
...
...
@@ -60,7 +62,6 @@ public class TopicReceiveListener {
parkingGate
.
setExitFlagNum
(
infomation
.
getEntryTime
()+
infomation
.
getPlateNo
());
// parkingGate.setVersion(0);
parkingGate
.
setVehicleType
(
infomation
.
getVehicleType
());
logger
.
info
(
infomation
.
toString
());
logger
.
info
(
parkingGate
.
toString
());
...
...
src/main/java/com/logwire/bhft/service/impl/ParkingGateServiceImpl.java
View file @
376b843a
...
...
@@ -46,6 +46,16 @@ public class ParkingGateServiceImpl implements ParkingGateService {
exitInfo
.
setExitTime
(
parkingGate
.
getExitTime
());
exitInfo
.
setExitRequestId
(
parkingGate
.
getRequestId
());
exitInfo
.
setExitRequestTime
(
parkingGate
.
getRequestTime
());
exitInfo
.
setTradeTime
(
parkingGate
.
getTradeTime
());
exitInfo
.
setTradeType
(
parkingGate
.
getTradeType
());
exitInfo
.
setAccount
(
parkingGate
.
getAccount
());
exitInfo
.
setCash
(
parkingGate
.
getCash
());
exitInfo
.
setTollCollectorName
(
parkingGate
.
getTollCollectorName
());
exitInfo
.
setUseType
(
parkingGate
.
getUseType
());
exitInfo
.
setAreaId
(
parkingGate
.
getAreaId
());
exitInfo
.
setSlotId
(
parkingGate
.
getSlotId
());
exitInfo
.
setParkingDetail
(
parkingGate
.
getParkingDetail
());
exitInfo
.
setUpdateUser
(
"interface"
);
exitInfo
.
setUpdateDate
(
new
Date
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment