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
9b7d3abb
Commit
9b7d3abb
authored
Dec 12, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节日设置bug修复
parent
4c9e28eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
VehicleModelHolidayPriceBiz.java
...xfc/platform/vehicle/biz/VehicleModelHolidayPriceBiz.java
+2
-14
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleModelHolidayPriceBiz.java
View file @
9b7d3abb
...
@@ -62,19 +62,8 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
...
@@ -62,19 +62,8 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
}
}
//编辑
//编辑
if
(
Objects
.
nonNull
(
vehicleModelHolidayPriceSaveDTO
.
getId
()))
{
if
(
Objects
.
nonNull
(
vehicleModelHolidayPriceSaveDTO
.
getId
()))
{
Example
example
=
new
Example
(
VehicleModelHolidayPrice
.
class
);
deleteById
(
vehicleModelHolidayPriceSaveDTO
.
getId
());
Example
.
Criteria
criteria
=
example
.
createCriteria
();
}
criteria
.
andEqualTo
(
"festivalId"
,
vehicleModelHolidayPriceSaveDTO
.
getId
());
for
(
VehicleModelHolidayPrice
modelHolidayPrice
:
vehicleModelHolidayPriceList
)
{
modelHolidayPrice
.
setUpdUserId
(
userId
);
modelHolidayPrice
.
setUpdTime
(
new
Date
());
mapper
.
updateByExampleSelective
(
modelHolidayPrice
,
example
);
}
Festival
festival
=
new
Festival
();
festival
.
setName
(
vehicleModelHolidayPriceSaveDTO
.
getFestival
());
festival
.
setId
(
vehicleModelHolidayPriceSaveDTO
.
getId
());
festivalBiz
.
add
(
festival
);
}
else
{
Festival
festival
=
new
Festival
();
Festival
festival
=
new
Festival
();
festival
.
setName
(
vehicleModelHolidayPriceSaveDTO
.
getFestival
());
festival
.
setName
(
vehicleModelHolidayPriceSaveDTO
.
getFestival
());
festivalBiz
.
add
(
festival
);
festivalBiz
.
add
(
festival
);
...
@@ -83,7 +72,6 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
...
@@ -83,7 +72,6 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
modelHolidayPrice
.
setCrtUserId
(
userId
);
modelHolidayPrice
.
setCrtUserId
(
userId
);
modelHolidayPrice
.
setFestivalId
(
festival
.
getId
());
modelHolidayPrice
.
setFestivalId
(
festival
.
getId
());
mapper
.
insertSelective
(
modelHolidayPrice
);
mapper
.
insertSelective
(
modelHolidayPrice
);
}
}
}
}
}
...
...
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