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
d240f038
Commit
d240f038
authored
Jun 27, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旅游
parent
a5ec13d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
TourTagBannerBiz.java
...ain/java/com/xxfc/platform/tour/biz/TourTagBannerBiz.java
+4
-4
TourTagBiz.java
.../src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
+1
-1
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourTagBannerBiz.java
View file @
d240f038
...
...
@@ -127,13 +127,13 @@ public class TourTagBannerBiz extends BaseBiz<TourTagBannerMapper,TourTagBanner>
* @param tourTagBannerDTOS
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateTourBannerByBatch
(
List
<
TourTagBannerDTO
>
tourTagBannerDTOS
,
UserDTO
userDTO
)
{
public
void
updateTourBannerByBatch
(
List
<
TourTagBannerDTO
>
tourTagBannerDTOS
,
Integer
tagId
,
UserDTO
userDTO
)
{
List
<
Long
>
tourTagBannerIds
=
tourTagBannerDTOS
.
stream
().
filter
(
tourTagBannerDTO
->
Objects
.
nonNull
(
tourTagBannerDTO
.
getId
())).
map
(
TourTagBannerDTO:
:
getId
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
tourTagBannerIds
)){
mapper
.
updateTourBannerStatusByTagannerIdsAndTagId
(
tourTagBannerIds
,
t
ourTagBannerDTOS
.
get
(
0
).
getTagId
()
,
1
);
mapper
.
updateTourBannerStatusByTagannerIdsAndTagId
(
tourTagBannerIds
,
t
agId
,
1
);
}
else
{
if
(
CollectionUtils
.
is
Not
Empty
(
tourTagBannerDTOS
)){
mapper
.
updateTourTagBannerStatusByTagId
(
t
ourTagBannerDTOS
.
get
(
0
).
getTagId
()
,
1
,
Instant
.
now
().
toEpochMilli
());
if
(
CollectionUtils
.
isEmpty
(
tourTagBannerDTOS
)){
mapper
.
updateTourTagBannerStatusByTagId
(
t
agId
,
1
,
Instant
.
now
().
toEpochMilli
());
}
}
List
<
TourTagBannerDTO
>
tagBannerDTOS
=
tourTagBannerDTOS
.
stream
().
filter
(
tourTagBannerDTO
->
Objects
.
isNull
(
tourTagBannerDTO
.
getId
())).
collect
(
Collectors
.
toList
());
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
View file @
d240f038
...
...
@@ -210,7 +210,7 @@ public class TourTagBiz extends BaseBiz<TourTagMapper,TourTag> {
if
(
CollectionUtils
.
isNotEmpty
(
tourTagBannerDTOS
)){
tourTagBannerDTOS
.
stream
().
filter
(
tourTagBannerDTO
->
Objects
.
isNull
(
tourTagBannerDTO
.
getTagId
())).
peek
(
tourTagBannerDTO
->
tourTagBannerDTO
.
setTagId
(
tourTagDTO
.
getId
())).
count
();
}
tourTagBannerBiz
.
updateTourBannerByBatch
(
tourTagBannerDTOS
,
userDTO
);
tourTagBannerBiz
.
updateTourBannerByBatch
(
tourTagBannerDTOS
,
tourTagAndBannerDTO
.
getTourTagDTO
().
getId
(),
userDTO
);
return
effrows
;
}
...
...
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