Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
cc7e00be
Commit
cc7e00be
authored
Aug 27, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆信息
parent
ad59aaa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
VehicleCommonPriceInfoBiz.java
.../xxfc/platform/vehicle/biz/VehicleCommonPriceInfoBiz.java
+11
-6
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleCommonPriceInfoBiz.java
View file @
cc7e00be
...
@@ -70,15 +70,20 @@ public class VehicleCommonPriceInfoBiz extends BaseBiz<VehicleCommonPriceInfoMap
...
@@ -70,15 +70,20 @@ public class VehicleCommonPriceInfoBiz extends BaseBiz<VehicleCommonPriceInfoMap
vehicleList
.
parallelStream
().
forEach
(
vehicleInfo
->
{
vehicleList
.
parallelStream
().
forEach
(
vehicleInfo
->
{
if
(
vehicleInfo
!=
null
)
{
if
(
vehicleInfo
!=
null
)
{
VehicleCommonPriceInfo
oldValue
=
getByVehicleId
(
vehicleInfo
.
getId
());
VehicleCommonPriceInfo
oldValue
=
getByVehicleId
(
vehicleInfo
.
getId
());
vehicleCommonPriceInfo
.
setVehicleId
(
vehicleInfo
.
getId
());
vehicleCommonPriceInfo
.
setCompanyId
(
vehicleInfo
.
getSubordinateBranch
());
vehicleCommonPriceInfo
.
setModelId
(
vehicleInfo
.
getModelId
());
vehicleCommonPriceInfo
.
setId
(
null
);
if
(
oldValue
==
null
)
{
if
(
oldValue
==
null
)
{
insertSelectiveRe
(
vehicleCommonPriceInfo
);
oldValue
=
new
VehicleCommonPriceInfo
();
BeanUtil
.
copyProperties
(
vehicleCommonPriceInfo
,
oldValue
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
oldValue
.
setVehicleId
(
vehicleInfo
.
getId
());
oldValue
.
setCompanyId
(
vehicleInfo
.
getSubordinateBranch
());
oldValue
.
setModelId
(
vehicleInfo
.
getModelId
());
oldValue
.
setId
(
null
);
insertSelectiveRe
(
oldValue
);
}
else
{
}
else
{
BeanUtil
.
copyProperties
(
vehicleCommonPriceInfo
,
oldValue
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
BeanUtil
.
copyProperties
(
vehicleCommonPriceInfo
,
oldValue
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
updateSelectiveByIdRe
(
oldValue
);
oldValue
.
setVehicleId
(
vehicleInfo
.
getId
());
oldValue
.
setCompanyId
(
vehicleInfo
.
getSubordinateBranch
());
oldValue
.
setModelId
(
vehicleInfo
.
getModelId
());
mapper
.
updateByPrimaryKeySelective
(
oldValue
);
}
}
}
}
...
...
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