Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
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 f2c708b7
authored
Apr 03, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixbug:修复绑定车辆的报告错误提示
1 parent
6a67bf25
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionReportService.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionReportService.java
View file @
f2c708b
...
@@ -290,13 +290,14 @@ public class InspectionReportService {
...
@@ -290,13 +290,14 @@ public class InspectionReportService {
Vehicle
vehicle
=
report
.
getVehicle
();
Vehicle
vehicle
=
report
.
getVehicle
();
List
<
InspectionReport
>
bindedReports
=
inspectionReportRepository
.
findByVehicleAndBindStatusAndDeleteFlag
(
vehicle
,
1
,
DeleteFlag
.
NOT_DELETED
.
getCode
());
List
<
InspectionReport
>
bindedReports
=
inspectionReportRepository
.
findByVehicleAndBindStatusAndDeleteFlag
(
vehicle
,
1
,
DeleteFlag
.
NOT_DELETED
.
getCode
());
if
(!
bindedReports
.
isEmpty
())
{
if
(!
bindedReports
.
isEmpty
())
{
bindSourceNoList
.
add
(
vehicle
.
getBaseInfo
().
getSourceNo
());
String
bindSourceNo
=
String
.
format
(
"该车辆(车源号:%s)已绑定另一份报告(报告编号:%s),请先解绑后再执行此操作。"
,
vehicle
.
getBaseInfo
().
getSourceNo
(),
bindedReports
.
get
(
0
).
getReportNo
());
bindSourceNoList
.
add
(
bindSourceNo
);
continue
;
continue
;
}
}
bindInspectionReport
(
report
,
vehicle
,
operatorId
,
operatorName
,
platType
);
bindInspectionReport
(
report
,
vehicle
,
operatorId
,
operatorName
,
platType
);
}
}
if
(!
bindSourceNoList
.
isEmpty
())
{
if
(!
bindSourceNoList
.
isEmpty
())
{
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
VEHICLE_ALREADY_BIND
,
String
.
join
(
"
,
"
,
bindSourceNoList
));
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
VEHICLE_ALREADY_BIND
,
String
.
join
(
"
|
"
,
bindSourceNoList
));
}
}
}
}
private
void
bindInspectionReport
(
InspectionReport
report
,
Vehicle
vehicle
,
Long
operatorId
,
String
operatorName
,
Integer
platType
)
{
private
void
bindInspectionReport
(
InspectionReport
report
,
Vehicle
vehicle
,
Long
operatorId
,
String
operatorName
,
Integer
platType
)
{
...
...
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