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
8ba04be1
Commit
8ba04be1
authored
Jun 25, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动刷新专场预览中状态
parent
11b699fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
...h/wx/impl/distribution/SpecialPerformanceServiceImpl.java
+3
-3
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/SpecialPerformanceNoticeJob.java
.../java/com/wwdz/ch/wx/job/SpecialPerformanceNoticeJob.java
+2
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
View file @
8ba04be1
...
...
@@ -126,7 +126,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
specialPerformanceVo
.
setSpecialPerformanceId
(
specialPerformanceId
);
specialPerformanceVo
.
setTitle
(
specialPerformance
.
getTitle
());
specialPerformanceVo
.
setState
(
specialPerformance
.
getState
());
specialPerformanceVo
.
setStateName
(
DistributionEnum
.
Auction
StateEnum
.
getNameByCode
(
specialPerformance
.
getState
()));
specialPerformanceVo
.
setStateName
(
SpecialPerformanceEnum
.
StateEnum
.
getNameByCode
(
specialPerformance
.
getState
()));
specialPerformanceVo
.
setStartTime
(
specialPerformance
.
getStartTime
());
specialPerformanceVo
.
setEndTime
(
specialPerformance
.
getEndTime
());
long
totalViewNum
=
specialPerformanceConfigDao
.
countViewNum
(
specialPerformanceId
);
...
...
@@ -201,7 +201,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
}
Date
now
=
new
Date
();
Instant
startInstant
=
now
.
toInstant
().
plus
(
Duration
.
ofDays
(
1
));
Date
s
tartTime
=
Date
.
from
(
startInstant
);
Date
previewS
tartTime
=
Date
.
from
(
startInstant
);
supplierItemList
.
forEach
(
supplierItem
->
{
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
...
...
@@ -227,7 +227,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
supplierItemVo
.
setState
(
auctionConfig
.
getState
());
supplierItemVo
.
setStateName
(
AuctionEnum
.
StateEnum
.
getNameByCode
(
auctionConfig
.
getState
()));
if
(
startTime
.
before
(
auctionConfig
.
getStartTime
())
&&
auctionConfig
.
getStartTime
().
after
(
now
))
{
if
(
previewStartTime
.
after
(
auctionConfig
.
getStartTime
())
&&
auctionConfig
.
getStartTime
().
after
(
now
))
{
supplierItemVo
.
setState
(
AuctionEnum
.
StateEnum
.
PREVIEW
.
getCode
());
supplierItemVo
.
setStateName
(
AuctionEnum
.
StateEnum
.
PREVIEW
.
getDes
());
}
else
if
(
auctionConfig
.
getStartTime
().
before
(
now
)
&&
auctionConfig
.
getRealEndTime
().
after
(
now
))
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
8ba04be1
...
...
@@ -613,7 +613,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findByItemId
(
itemId
);
//拍品的状态,提前一天为预览中
if
(
previewStartTime
.
before
(
auctionConfig
.
getStartTime
())
&&
auctionConfig
.
getStartTime
().
after
(
now
))
{
if
(
previewStartTime
.
after
(
auctionConfig
.
getStartTime
())
&&
auctionConfig
.
getStartTime
().
after
(
now
))
{
auctionDetailVo
.
setState
(
AuctionEnum
.
StateEnum
.
PREVIEW
.
getCode
());
auctionDetailVo
.
setStateName
(
AuctionEnum
.
StateEnum
.
PREVIEW
.
getDes
());
}
else
if
(
auctionConfig
.
getStartTime
().
before
(
now
)
&&
auctionConfig
.
getRealEndTime
().
after
(
now
))
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/SpecialPerformanceNoticeJob.java
View file @
8ba04be1
...
...
@@ -172,7 +172,7 @@ public class SpecialPerformanceNoticeJob {
}
else
if
(
specialPerformance
.
getState
().
intValue
()
==
SpecialPerformanceEnum
.
StateEnum
.
NOT_START
.
getCode
())
{
//未开始的专场判断是否需要改为预展中,开始时间提前一天预展
//设置为预展中
if
(
startTime
.
before
(
specialPerformance
.
getStartTime
())
&&
specialPerformance
.
getStartTime
().
after
(
now
))
{
if
(
startTime
.
after
(
specialPerformance
.
getStartTime
())
&&
specialPerformance
.
getStartTime
().
after
(
now
))
{
if
(
specialPerformance
.
getState
().
intValue
()
!=
SpecialPerformanceEnum
.
StateEnum
.
PREVIEW
.
getCode
())
{
specialPerformanceDao
.
updateState
(
specialPerformance
.
getId
(),
SpecialPerformanceEnum
.
StateEnum
.
PREVIEW
.
getCode
());
}
...
...
@@ -205,7 +205,7 @@ public class SpecialPerformanceNoticeJob {
AuctionConfig
auctionConfig
=
auctionConfigDao
.
findByItemId
(
itemId
);
if
(
auctionConfig
.
getState
().
intValue
()
==
AuctionEnum
.
StateEnum
.
WAIT_ON_SALE
.
getCode
())
{
//待上架的拍品判断是否需要改为预展中,开始时间提前一天预展
if
(
startTime
.
before
(
auctionConfig
.
getStartTime
())
&&
auctionConfig
.
getStartTime
().
after
(
now
))
{
if
(
startTime
.
after
(
auctionConfig
.
getStartTime
())
&&
auctionConfig
.
getStartTime
().
after
(
now
))
{
if
(
auctionConfig
.
getState
().
intValue
()
!=
AuctionEnum
.
StateEnum
.
PREVIEW
.
getCode
())
{
auctionConfigDao
.
updateState
(
itemId
,
AuctionEnum
.
StateEnum
.
PREVIEW
.
getCode
());
}
...
...
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