Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bme-access-upload
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
李洪明
bme-access-upload
Commits
87d09c18
Commit
87d09c18
authored
Jul 11, 2025
by
曹军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传定时任务
parent
1ffff686
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
UploadTransportVehicleInfo.java
...load/module/module/upload/UploadTransportVehicleInfo.java
+1
-1
InFactoryTransportVehicleInfoService.java
.../module/service/InFactoryTransportVehicleInfoService.java
+2
-2
BeanConverter.java
...ava/com/bme/access/upload/module/utils/BeanConverter.java
+10
-2
No files found.
src/main/java/com/bme/access/upload/module/module/upload/UploadTransportVehicleInfo.java
View file @
87d09c18
...
...
@@ -61,7 +61,7 @@ public class UploadTransportVehicleInfo {
/**
* 车辆型号(如凯美瑞2023款、特斯拉Model 3等)
*/
private
String
vehicleMode
;
private
String
vehicleMode
l
;
/**
* 车辆类型(如小型轿车、货车、客车等)
...
...
src/main/java/com/bme/access/upload/module/service/InFactoryTransportVehicleInfoService.java
View file @
87d09c18
...
...
@@ -40,8 +40,8 @@ public class InFactoryTransportVehicleInfoService {
}
for
(
InFactoryTransportVehicleInfo
inFactoryTransportVehicleInfo
:
inFactoryTransportVehicleInfos
)
{
String
bodyJson
=
JSONObject
.
toJSONString
(
inFactoryTransportVehicleInfo
);
//
log.info("场内车辆最终被发送的数据bodyJson={}", bodyJson);
HttpUtils
.
sendPost
(
IN_FACTORY_URL
,
null
,
null
,
bodyJson
);
log
.
info
(
"场内车辆最终被发送的数据bodyJson={}"
,
bodyJson
);
Http
Response
httpResponse
=
Http
Utils
.
sendPost
(
IN_FACTORY_URL
,
null
,
null
,
bodyJson
);
Thread
.
sleep
(
50
);
}
log
.
info
(
"上传场内车辆{}条"
,
inFactoryTransportVehicleInfoUrls
.
size
());
...
...
src/main/java/com/bme/access/upload/module/utils/BeanConverter.java
View file @
87d09c18
...
...
@@ -13,6 +13,8 @@ import org.apache.commons.lang.StringUtils;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.List
;
import
java.util.Objects
;
...
...
@@ -115,7 +117,13 @@ public class BeanConverter {
}
info
.
setLicensePlateColor
(
color
);
}
info
.
setRegistrationDate
(
item
.
getRegistrationDate
());
if
(
StringUtils
.
isNotBlank
(
item
.
getRegistrationDate
()))
{
String
registrationDate
=
item
.
getRegistrationDate
();
if
(
registrationDate
.
length
()
==
8
)
{
String
s
=
registrationDate
.
substring
(
0
,
4
)
+
"-"
+
registrationDate
.
substring
(
4
,
6
)
+
"-"
+
registrationDate
.
substring
(
6
);
info
.
setRegistrationDate
(
s
);
}
}
if
(
StringUtils
.
isBlank
(
item
.
getNatureUse
()))
{
info
.
setUsaGenaTure
(
"货运"
);
}
else
{
...
...
@@ -128,7 +136,7 @@ public class BeanConverter {
if
(
StringUtils
.
isNotBlank
(
item
.
getOnBoardList
()))
{
info
.
setVehicleListImg
(
Base64Utils
.
imgToBase64
(
Base64Utils
.
encodeImageUrl
(
item
.
getOnBoardList
())));
}
info
.
setVehicleMode
(
item
.
getModel
());
info
.
setVehicleMode
l
(
item
.
getModel
());
info
.
setVehicleType
(
item
.
getVehicleType
());
info
.
setVin
(
item
.
getVin
());
if
(
StringUtils
.
isNotBlank
(
item
.
getOwner
())
&&
item
.
getOwner
().
contains
(
"成都锦宸"
))
{
...
...
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