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
6ae65e01
Commit
6ae65e01
authored
Mar 14, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时作业修改
parent
2ee1fba7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AuctionConfigDao.java
...ava/com/wwdz/ch/db/dao/distribution/AuctionConfigDao.java
+9
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
...om/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
+13
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoSendMsgJob.java
...-api/src/main/java/com/wwdz/ch/wx/job/AutoSendMsgJob.java
+2
-2
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AuctionConfigDao.java
View file @
6ae65e01
...
...
@@ -41,7 +41,7 @@ public interface AuctionConfigDao {
/**
* 查询截拍
未处理的商品记录
* 查询截拍
后在一小时内的拍卖配置
* @param
* @return
*/
...
...
@@ -54,6 +54,14 @@ public interface AuctionConfigDao {
*/
List
<
AuctionConfig
>
findTimeOutNotValidList
();
/**
* 查询一小时内即将截拍的拍卖商品
* @param
* @return
*/
List
<
AuctionConfig
>
findAbortEndList
();
/**
* 更新截拍时间
* @param itemId
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
View file @
6ae65e01
...
...
@@ -89,6 +89,19 @@ public class AuctionConfigDaoImpl implements AuctionConfigDao {
return
auctionConfigMapper
.
selectByExample
(
example
);
}
@Override
public
List
<
AuctionConfig
>
findAbortEndList
()
{
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
Date
now
=
new
Date
();
//查询即将在一小时内截单的拍卖
Instant
instant
=
now
.
toInstant
().
plus
(
Duration
.
ofHours
(
1
));
Date
time
=
Date
.
from
(
instant
);
criteria
.
andRealEndTimeLessThanOrEqualTo
(
time
);
criteria
.
andIsValidEqualTo
(
true
);
return
auctionConfigMapper
.
selectByExample
(
example
);
}
@Override
public
int
setEnd
(
long
itemId
)
{
AuctionConfigExample
example
=
new
AuctionConfigExample
();
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoSendMsgJob.java
View file @
6ae65e01
...
...
@@ -93,8 +93,8 @@ public class AutoSendMsgJob {
}
logger
.
info
(
">>>>>>>>>>>>>>>>>>>>>>> 自动发送拍卖通知任务,开始执行 <<<<<<<<<<<<<<<<<<<<<"
);
try
{
//查询
一小时内拍卖
截拍的商品,通知参与过出价的用户即将截拍
List
<
AuctionConfig
>
auctionConfigList
=
auctionConfigDao
.
findEndList
();
//查询
即将在一小时内
截拍的商品,通知参与过出价的用户即将截拍
List
<
AuctionConfig
>
auctionConfigList
=
auctionConfigDao
.
find
Abort
EndList
();
logger
.
info
(
">>>>>> 一小时内即将截拍的商品数量 :{} <<<<<<<"
,
auctionConfigList
.
size
());
auctionConfigList
.
forEach
(
auctionConfig
->
{
long
itemId
=
auctionConfig
.
getItemId
();
...
...
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