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
0bd13cee
Commit
0bd13cee
authored
Jul 05, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
专场列表首页展示排除已经截拍的商品
parent
831951ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
...om/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
...h/wx/impl/distribution/SpecialPerformanceServiceImpl.java
+3
-1
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
View file @
0bd13cee
...
...
@@ -85,6 +85,7 @@ public class AuctionConfigDaoImpl implements AuctionConfigDao {
JdbcHelper
.
ifPresent
(
dto
.
getCreatorId
(),
criteria:
:
andCreatorIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getState
(),
criteria:
:
andStateEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getFilterItemIds
(),
criteria:
:
andItemIdNotIn
);
JdbcHelper
.
ifPresent
(
dto
.
getIsValid
(),
criteria:
:
andIsValidEqualTo
);
example
.
setOrderByClause
(
" update_time desc"
);
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
return
auctionConfigMapper
.
selectByExample
(
example
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
View file @
0bd13cee
...
...
@@ -127,9 +127,10 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
specialPerformanceConfigRequestDto
.
setPage
(
dto
.
getPage
());
specialPerformanceConfigRequestDto
.
setLimit
(
dto
.
getLimit
());
specialPerformanceConfigRequestDto
.
setSpecialPerformanceId
(
specialPerformanceId
);
//排除待上架的商品
//排除待上架的商品
、已截拍失效的商品
AuctionConfigRequestDto
auctionConfigRequestDto
=
new
AuctionConfigRequestDto
();
auctionConfigRequestDto
.
setState
(
AuctionEnum
.
StateEnum
.
WAIT_ON_SALE
.
getCode
());
auctionConfigRequestDto
.
setIsValid
(
false
);
auctionConfigRequestDto
.
setLimit
(
9999
);
List
<
AuctionConfig
>
auctionConfigList
=
auctionConfigDao
.
findList
(
auctionConfigRequestDto
);
List
<
Long
>
filterItemIdList
=
auctionConfigList
.
stream
().
map
(
AuctionConfig:
:
getItemId
).
collect
(
Collectors
.
toList
());
...
...
@@ -215,6 +216,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
//排除待上架的商品
AuctionConfigRequestDto
auctionConfigRequestDto
=
new
AuctionConfigRequestDto
();
auctionConfigRequestDto
.
setState
(
AuctionEnum
.
StateEnum
.
WAIT_ON_SALE
.
getCode
());
auctionConfigRequestDto
.
setIsValid
(
false
);
auctionConfigRequestDto
.
setLimit
(
9999
);
List
<
AuctionConfig
>
auctionConfigList
=
auctionConfigDao
.
findList
(
auctionConfigRequestDto
);
List
<
Long
>
filterItemIdList
=
auctionConfigList
.
stream
().
map
(
AuctionConfig:
:
getItemId
).
collect
(
Collectors
.
toList
());
...
...
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