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
5fca7826
Commit
5fca7826
authored
Jun 18, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消分销选品池上新发送通知
parent
ef112251
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/NewItemNoticeJob.java
...pi/src/main/java/com/wwdz/ch/wx/job/NewItemNoticeJob.java
+4
-6
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/NewItemNoticeJob.java
View file @
5fca7826
...
...
@@ -76,14 +76,14 @@ public class NewItemNoticeJob {
}
logger
.
info
(
">>>>>>>>>>>>>>>>>>>>>>> 发送商品上新通知定时作业, 开始执行 <<<<<<<<<<<<<<<<<<<<<"
);
try
{
//查询后台的上新商品,给分销商发送上新通知
SupplierItemRequestDto
supplierItemRequestDto
=
new
SupplierItemRequestDto
();
supplierItemRequestDto
.
setCreatorId
(
CommConsts
.
SYSTEM_ACCOUNT
);
//查询时间范围为昨天晚上八点之后
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
yesterday
=
now
.
minusDays
(
1
);
LocalDateTime
yesterdayEvening
=
yesterday
.
withHour
(
20
).
withMinute
(
0
).
withSecond
(
0
);
Date
yesterdayDate
=
DateUtils
.
fromLocalDateTime
(
yesterdayEvening
);
/* //查询后台的上新商品,给分销商发送上新通知
SupplierItemRequestDto supplierItemRequestDto = new SupplierItemRequestDto();
supplierItemRequestDto.setCreatorId(CommConsts.SYSTEM_ACCOUNT);
supplierItemRequestDto.setStartCreateTime(yesterdayDate);
long newItemNumForDistributor = supplierItemDao.countOfNewItem(supplierItemRequestDto);
if (newItemNumForDistributor > 0) {
...
...
@@ -110,7 +110,7 @@ public class NewItemNoticeJob {
logger.info(">>>>>>>>>>>>>> 选品池上新,通知分销商成功 <<<<<<<<<<<<<<<<");
} else {
logger.info(">>>>>>>>>>>>>> 选品池没有上新,无需发送通知 <<<<<<<<<<<<<<<<");
}
}
*/
//用户关注列表中有上新藏品,发送通知
SupplierItemRequestDto
supplierItemDto
=
new
SupplierItemRequestDto
();
...
...
@@ -141,8 +141,6 @@ public class NewItemNoticeJob {
}
}
}
}
catch
(
Exception
e
)
{
logger
.
error
(
"商品上新通知定时作业 error {}"
,
e
);
}
finally
{
...
...
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