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 6b541632
authored
Apr 20, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:按照规范if后面加上大括号
1 parent
6bcaf766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
29 deletions
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrAuditService.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrAuditService.java
View file @
6b54163
...
...
@@ -162,41 +162,99 @@ public class VrAuditService {
private
void
fillStepFields
(
VrAudit
entity
,
VrAuditSaveReqVO
req
)
{
switch
(
req
.
getStep
())
{
case
1
->
{
if
(
StringUtils
.
hasText
(
req
.
getVin
()))
entity
.
setVin
(
req
.
getVin
());
if
(
req
.
getLicensePlate
()
!=
null
)
entity
.
setLicensePlate
(
req
.
getLicensePlate
());
if
(
StringUtils
.
hasText
(
req
.
getCarBrandId
()))
entity
.
setCarBrandId
(
req
.
getCarBrandId
());
if
(
StringUtils
.
hasText
(
req
.
getCarBrandName
()))
entity
.
setCarBrandName
(
req
.
getCarBrandName
());
if
(
StringUtils
.
hasText
(
req
.
getCarSeriesId
()))
entity
.
setCarSeriesId
(
req
.
getCarSeriesId
());
if
(
StringUtils
.
hasText
(
req
.
getCarSeriesName
()))
entity
.
setCarSeriesName
(
req
.
getCarSeriesName
());
if
(
StringUtils
.
hasText
(
req
.
getCarTypeId
()))
entity
.
setCarTypeId
(
req
.
getCarTypeId
());
if
(
StringUtils
.
hasText
(
req
.
getCarTypeName
()))
entity
.
setCarTypeName
(
req
.
getCarTypeName
());
if
(
StringUtils
.
hasText
(
req
.
getDisplacement
()))
entity
.
setDisplacement
(
req
.
getDisplacement
());
if
(
req
.
getTransmissionType
()
!=
null
)
entity
.
setTransmissionType
(
req
.
getTransmissionType
());
if
(
req
.
getVehicleNature
()
!=
null
)
entity
.
setVehicleNature
(
req
.
getVehicleNature
());
if
(
req
.
getFuelType
()
!=
null
)
entity
.
setFuelType
(
req
.
getFuelType
());
if
(
StringUtils
.
hasText
(
req
.
getBodyColor
()))
entity
.
setBodyColor
(
req
.
getBodyColor
());
if
(
StringUtils
.
hasText
(
req
.
getInteriorColor
()))
entity
.
setInteriorColor
(
req
.
getInteriorColor
());
if
(
StringUtils
.
hasText
(
req
.
getProvinceCode
()))
entity
.
setProvinceCode
(
req
.
getProvinceCode
());
if
(
StringUtils
.
hasText
(
req
.
getProvinceName
()))
entity
.
setProvinceName
(
req
.
getProvinceName
());
if
(
StringUtils
.
hasText
(
req
.
getCityCode
()))
entity
.
setCityCode
(
req
.
getCityCode
());
if
(
StringUtils
.
hasText
(
req
.
getCityName
()))
entity
.
setCityName
(
req
.
getCityName
());
if
(
StringUtils
.
hasText
(
req
.
getVin
()))
{
entity
.
setVin
(
req
.
getVin
());
}
if
(
req
.
getLicensePlate
()
!=
null
)
{
entity
.
setLicensePlate
(
req
.
getLicensePlate
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarBrandId
()))
{
entity
.
setCarBrandId
(
req
.
getCarBrandId
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarBrandName
()))
{
entity
.
setCarBrandName
(
req
.
getCarBrandName
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarSeriesId
()))
{
entity
.
setCarSeriesId
(
req
.
getCarSeriesId
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarSeriesName
()))
{
entity
.
setCarSeriesName
(
req
.
getCarSeriesName
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarTypeId
()))
{
entity
.
setCarTypeId
(
req
.
getCarTypeId
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarTypeName
()))
{
entity
.
setCarTypeName
(
req
.
getCarTypeName
());
}
if
(
StringUtils
.
hasText
(
req
.
getDisplacement
()))
{
entity
.
setDisplacement
(
req
.
getDisplacement
());
}
if
(
req
.
getTransmissionType
()
!=
null
)
{
entity
.
setTransmissionType
(
req
.
getTransmissionType
());
}
if
(
req
.
getVehicleNature
()
!=
null
)
{
entity
.
setVehicleNature
(
req
.
getVehicleNature
());
}
if
(
req
.
getFuelType
()
!=
null
)
{
entity
.
setFuelType
(
req
.
getFuelType
());
}
if
(
StringUtils
.
hasText
(
req
.
getBodyColor
()))
{
entity
.
setBodyColor
(
req
.
getBodyColor
());
}
if
(
StringUtils
.
hasText
(
req
.
getInteriorColor
()))
{
entity
.
setInteriorColor
(
req
.
getInteriorColor
());
}
if
(
StringUtils
.
hasText
(
req
.
getProvinceCode
()))
{
entity
.
setProvinceCode
(
req
.
getProvinceCode
());
}
if
(
StringUtils
.
hasText
(
req
.
getProvinceName
()))
{
entity
.
setProvinceName
(
req
.
getProvinceName
());
}
if
(
StringUtils
.
hasText
(
req
.
getCityCode
()))
{
entity
.
setCityCode
(
req
.
getCityCode
());
}
if
(
StringUtils
.
hasText
(
req
.
getCityName
()))
{
entity
.
setCityName
(
req
.
getCityName
());
}
}
case
2
->
{
if
(
StringUtils
.
hasText
(
req
.
getRegisterDate
()))
entity
.
setRegisterDate
(
req
.
getRegisterDate
());
if
(
req
.
getMileage
()
!=
null
)
entity
.
setMileage
(
req
.
getMileage
());
if
(
req
.
getTransferCount
()
!=
null
)
entity
.
setTransferCount
(
req
.
getTransferCount
());
if
(
StringUtils
.
hasText
(
req
.
getRegisterDate
()))
{
entity
.
setRegisterDate
(
req
.
getRegisterDate
());
}
if
(
req
.
getMileage
()
!=
null
)
{
entity
.
setMileage
(
req
.
getMileage
());
}
if
(
req
.
getTransferCount
()
!=
null
)
{
entity
.
setTransferCount
(
req
.
getTransferCount
());
}
}
case
3
->
{
if
(
req
.
getReservePrice
()
!=
null
)
entity
.
setReservePrice
(
req
.
getReservePrice
());
if
(
req
.
getReservePrice
()
!=
null
)
{
entity
.
setReservePrice
(
req
.
getReservePrice
());
}
}
case
4
->
{
if
(
StringUtils
.
hasText
(
req
.
getPhotoFront
()))
entity
.
setPhotoFront
(
req
.
getPhotoFront
());
if
(
StringUtils
.
hasText
(
req
.
getPhotoLeftFront
()))
entity
.
setPhotoLeftFront
(
req
.
getPhotoLeftFront
());
if
(
StringUtils
.
hasText
(
req
.
getPhotoRightRear
()))
entity
.
setPhotoRightRear
(
req
.
getPhotoRightRear
());
if
(
StringUtils
.
hasText
(
req
.
getPhotoInterior
()))
entity
.
setPhotoInterior
(
req
.
getPhotoInterior
());
if
(
StringUtils
.
hasText
(
req
.
getPhotoDashboard
()))
entity
.
setPhotoDashboard
(
req
.
getPhotoDashboard
());
if
(
StringUtils
.
hasText
(
req
.
getPhotoEngine
()))
entity
.
setPhotoEngine
(
req
.
getPhotoEngine
());
if
(
StringUtils
.
hasText
(
req
.
getPhotoTrunk
()))
entity
.
setPhotoTrunk
(
req
.
getPhotoTrunk
());
if
(
StringUtils
.
hasText
(
req
.
getPhotoFront
()))
{
entity
.
setPhotoFront
(
req
.
getPhotoFront
());
}
if
(
StringUtils
.
hasText
(
req
.
getPhotoLeftFront
()))
{
entity
.
setPhotoLeftFront
(
req
.
getPhotoLeftFront
());
}
if
(
StringUtils
.
hasText
(
req
.
getPhotoRightRear
()))
{
entity
.
setPhotoRightRear
(
req
.
getPhotoRightRear
());
}
if
(
StringUtils
.
hasText
(
req
.
getPhotoInterior
()))
{
entity
.
setPhotoInterior
(
req
.
getPhotoInterior
());
}
if
(
StringUtils
.
hasText
(
req
.
getPhotoDashboard
()))
{
entity
.
setPhotoDashboard
(
req
.
getPhotoDashboard
());
}
if
(
StringUtils
.
hasText
(
req
.
getPhotoEngine
()))
{
entity
.
setPhotoEngine
(
req
.
getPhotoEngine
());
}
if
(
StringUtils
.
hasText
(
req
.
getPhotoTrunk
()))
{
entity
.
setPhotoTrunk
(
req
.
getPhotoTrunk
());
}
}
default
->
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
PARAM_INVALID
);
}
...
...
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