Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
f68f200e
Commit
f68f200e
authored
Sep 03, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询可交换商品时默认标签去除拍卖中、已结缘、我收藏的
parent
9c46d2fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
9 deletions
+24
-9
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/CollectionBookRequestDto.java
...db/dto/request/distribution/CollectionBookRequestDto.java
+6
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionBookServiceImpl.java
...dz/ch/wx/impl/distribution/CollectionBookServiceImpl.java
+18
-9
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/CollectionBookRequestDto.java
View file @
f68f200e
...
@@ -75,4 +75,10 @@ public class CollectionBookRequestDto extends BaseRequestDto implements Entity
...
@@ -75,4 +75,10 @@ public class CollectionBookRequestDto extends BaseRequestDto implements Entity
* 1:展示默认的标签,为空不展示
* 1:展示默认的标签,为空不展示
*/
*/
private
Integer
viewLabelType
;
private
Integer
viewLabelType
;
/**
* 类型
* 1交换商品,排除默认标签
*/
private
Integer
type
;
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionBookServiceImpl.java
View file @
f68f200e
...
@@ -124,18 +124,27 @@ public class CollectionBookServiceImpl implements CollectionBookService {
...
@@ -124,18 +124,27 @@ public class CollectionBookServiceImpl implements CollectionBookService {
if
(
dto
.
getViewLabelType
().
intValue
()
==
1
)
{
if
(
dto
.
getViewLabelType
().
intValue
()
==
1
)
{
if
(
collectorWhiteListDao
.
isExisted
(
userId
))
{
if
(
collectorWhiteListDao
.
isExisted
(
userId
))
{
for
(
CollectionBookConstants
.
DefaultBookEnum
defaultBookEnum
:
CollectionBookConstants
.
DefaultBookEnum
.
values
())
{
for
(
CollectionBookConstants
.
DefaultBookEnum
defaultBookEnum
:
CollectionBookConstants
.
DefaultBookEnum
.
values
())
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
dto
.
getType
()
!=
null
&&
dto
.
getType
()
==
1
)
{
map
.
put
(
"id"
,
defaultBookEnum
.
getId
());
if
(
CollectionBookConstants
.
DefaultBookEnum
.
FINISHED
.
getId
().
intValue
()
==
defaultBookEnum
.
getId
()
map
.
put
(
"title"
,
defaultBookEnum
.
getName
());
||
CollectionBookConstants
.
DefaultBookEnum
.
AUCTIONING
.
getId
().
intValue
()
==
defaultBookEnum
.
getId
())
{
list
.
add
(
map
);
continue
;
}
else
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"id"
,
defaultBookEnum
.
getId
());
map
.
put
(
"title"
,
defaultBookEnum
.
getName
());
list
.
add
(
map
);
}
}
}
}
}
}
}
}
if
(
dto
.
getIsHasExtraLabel
())
{
if
(
dto
.
getType
()
!=
null
&&
dto
.
getType
()
!=
1
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
dto
.
getIsHasExtraLabel
())
{
map
.
put
(
"id"
,
0
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"title"
,
"我收藏的"
);
map
.
put
(
"id"
,
0
);
list
.
add
(
map
);
map
.
put
(
"title"
,
"我收藏的"
);
list
.
add
(
map
);
}
}
}
collectionBookList
.
forEach
(
collectionBook
->
{
collectionBookList
.
forEach
(
collectionBook
->
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
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