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
60157987
Commit
60157987
authored
Jul 14, 2025
by
曹军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传定时任务,优化代码,添加默认车牌颜色
parent
0663d5e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
TransportVehicleInfoService.java
...ss/upload/module/service/TransportVehicleInfoService.java
+1
-1
BeanConverter.java
...ava/com/bme/access/upload/module/utils/BeanConverter.java
+2
-2
No files found.
src/main/java/com/bme/access/upload/module/service/TransportVehicleInfoService.java
View file @
60157987
...
@@ -83,7 +83,7 @@ public class TransportVehicleInfoService {
...
@@ -83,7 +83,7 @@ public class TransportVehicleInfoService {
// 查询车牌颜色
// 查询车牌颜色
InAndOutDateUrl
inAndOutDateUrl
=
inAndOutDateUrlMapper
.
selectInAndOutDateUrlByNo
(
transportVehicleInfoUrl
.
getNumberPlate
());
InAndOutDateUrl
inAndOutDateUrl
=
inAndOutDateUrlMapper
.
selectInAndOutDateUrlByNo
(
transportVehicleInfoUrl
.
getNumberPlate
());
Integer
color
=
5
;
Integer
color
=
1
;
if
(
Objects
.
nonNull
(
inAndOutDateUrl
))
{
if
(
Objects
.
nonNull
(
inAndOutDateUrl
))
{
color
=
inAndOutDateUrl
.
getVehicleColorIndex
();
color
=
inAndOutDateUrl
.
getVehicleColorIndex
();
}
}
...
...
src/main/java/com/bme/access/upload/module/utils/BeanConverter.java
View file @
60157987
...
@@ -94,9 +94,9 @@ public class BeanConverter {
...
@@ -94,9 +94,9 @@ public class BeanConverter {
}
}
// 车牌颜色 0-蓝牌,1-黄牌,2-白牌,3-黑牌,4-新能源绿牌,5-其他,6-新能源绿黄牌
// 车牌颜色 0-蓝牌,1-黄牌,2-白牌,3-黑牌,4-新能源绿牌,5-其他,6-新能源绿黄牌
if
(
Objects
.
isNull
(
rawColor
))
{
if
(
Objects
.
isNull
(
rawColor
))
{
info
.
setLicensePlateColor
(
"
5
"
);
info
.
setLicensePlateColor
(
"
0
"
);
}
else
{
}
else
{
String
color
=
"
5
"
;
String
color
=
"
0
"
;
if
(
rawColor
==
1
)
{
if
(
rawColor
==
1
)
{
color
=
"0"
;
color
=
"0"
;
}
}
...
...
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