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
e7d9bc31
Commit
e7d9bc31
authored
Aug 28, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆节假日价格信息
parent
b70595ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
VehicleHolidayPriceInfoBiz.java
...xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
+3
-2
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
View file @
e7d9bc31
...
@@ -66,6 +66,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -66,6 +66,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
if
(
vehicle
==
null
)
{
if
(
vehicle
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"车辆不存在!"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"车辆不存在!"
);
}
}
Integer
festivalId
=
getMaxFestivalId
()
+
1
;
vehicleHolidayPriceInfo
.
setCompanyId
(
vehicle
.
getSubordinateBranch
());
vehicleHolidayPriceInfo
.
setCompanyId
(
vehicle
.
getSubordinateBranch
());
List
<
Vehicle
>
vehicleList
=
null
;
List
<
Vehicle
>
vehicleList
=
null
;
if
(
vehicleHolidayPriceInfo
.
getAllVehicleUse
()
!=
null
&&
vehicleHolidayPriceInfo
.
getAllVehicleUse
()
==
1
)
{
//所有车辆可用
if
(
vehicleHolidayPriceInfo
.
getAllVehicleUse
()
!=
null
&&
vehicleHolidayPriceInfo
.
getAllVehicleUse
()
==
1
)
{
//所有车辆可用
...
@@ -80,7 +81,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -80,7 +81,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
VehicleHolidayPriceInfo
oldValue
=
getByVehicleId
(
vehicleHolidayPriceInfo
.
getVehicleId
(),
date
);
VehicleHolidayPriceInfo
oldValue
=
getByVehicleId
(
vehicleHolidayPriceInfo
.
getVehicleId
(),
date
);
if
(
oldValue
==
null
)
{
if
(
oldValue
==
null
)
{
vehicleHolidayPriceInfo
.
setId
(
null
);
vehicleHolidayPriceInfo
.
setId
(
null
);
vehicleHolidayPriceInfo
.
setFestivalId
(
getMaxFestivalId
()
+
1
);
vehicleHolidayPriceInfo
.
setFestivalId
(
festivalId
);
insertSelectiveRe
(
vehicleHolidayPriceInfo
);
insertSelectiveRe
(
vehicleHolidayPriceInfo
);
}
else
{
}
else
{
BeanUtil
.
copyProperties
(
vehicleHolidayPriceInfo
,
oldValue
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
BeanUtil
.
copyProperties
(
vehicleHolidayPriceInfo
,
oldValue
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
...
@@ -100,7 +101,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -100,7 +101,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
oldValue
.
setCompanyId
(
vehicleInfo
.
getSubordinateBranch
());
oldValue
.
setCompanyId
(
vehicleInfo
.
getSubordinateBranch
());
oldValue
.
setModelId
(
vehicleInfo
.
getModelId
());
oldValue
.
setModelId
(
vehicleInfo
.
getModelId
());
oldValue
.
setId
(
null
);
oldValue
.
setId
(
null
);
oldValue
.
setFestivalId
(
getMaxFestivalId
()
+
1
);
oldValue
.
setFestivalId
(
festivalId
);
insertSelectiveRe
(
vehicleHolidayPriceInfo
);
insertSelectiveRe
(
vehicleHolidayPriceInfo
);
}
else
{
}
else
{
BeanUtil
.
copyProperties
(
vehicleHolidayPriceInfo
,
oldValue
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
BeanUtil
.
copyProperties
(
vehicleHolidayPriceInfo
,
oldValue
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
...
...
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