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
3c3f8e69
Commit
3c3f8e69
authored
Jun 25, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
藏品转拍卖默认有效状态,避免定时作业刷新状态为流拍
parent
7a3134eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
...om/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoCreateAuctionOrderJob.java
...in/java/com/wwdz/ch/wx/job/AutoCreateAuctionOrderJob.java
+1
-0
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
3c3f8e69
...
@@ -510,7 +510,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
...
@@ -510,7 +510,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
auctionConfig
.
setState
(
AuctionEnum
.
StateEnum
.
WAIT_ON_SALE
.
getCode
());
auctionConfig
.
setState
(
AuctionEnum
.
StateEnum
.
WAIT_ON_SALE
.
getCode
());
auctionConfig
.
setItemId
(
newItemId
);
auctionConfig
.
setItemId
(
newItemId
);
auctionConfig
.
setCreatorId
(
oldItem
.
getCreatorId
());
auctionConfig
.
setCreatorId
(
oldItem
.
getCreatorId
());
auctionConfig
.
setIsValid
(
fals
e
);
auctionConfig
.
setIsValid
(
tru
e
);
auctionConfig
.
setIsDeal
(
false
);
auctionConfig
.
setIsDeal
(
false
);
Instant
startInstant
=
now
.
toInstant
().
plus
(
Duration
.
ofHours
(
2
));
Instant
startInstant
=
now
.
toInstant
().
plus
(
Duration
.
ofHours
(
2
));
Date
startTime
=
Date
.
from
(
startInstant
);
Date
startTime
=
Date
.
from
(
startInstant
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
View file @
3c3f8e69
...
@@ -106,7 +106,7 @@ public class AuctionConfigDaoImpl implements AuctionConfigDao {
...
@@ -106,7 +106,7 @@ public class AuctionConfigDaoImpl implements AuctionConfigDao {
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
Date
now
=
new
Date
();
Date
now
=
new
Date
();
//查询截
单
时间一小时内的拍卖
//查询截
拍
时间一小时内的拍卖
Instant
instant
=
now
.
toInstant
().
minus
(
Duration
.
ofHours
(
1
));
Instant
instant
=
now
.
toInstant
().
minus
(
Duration
.
ofHours
(
1
));
Date
time
=
Date
.
from
(
instant
);
Date
time
=
Date
.
from
(
instant
);
criteria
.
andRealEndTimeGreaterThanOrEqualTo
(
time
);
criteria
.
andRealEndTimeGreaterThanOrEqualTo
(
time
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoCreateAuctionOrderJob.java
View file @
3c3f8e69
...
@@ -102,6 +102,7 @@ public class AutoCreateAuctionOrderJob {
...
@@ -102,6 +102,7 @@ public class AutoCreateAuctionOrderJob {
}
}
}
else
{
}
else
{
//没有出价记录,流拍的商品也要更新拍卖配置信息为已处理, 拍品状态更新为"无出价流拍"
//没有出价记录,流拍的商品也要更新拍卖配置信息为已处理, 拍品状态更新为"无出价流拍"
logger
.
info
(
"商品id:{}, 没有出价记录,状态更新为'无出价流拍'"
);
auctionConfigDao
.
setDeal
(
itemId
,
AuctionEnum
.
StateEnum
.
NO_OFFER_TO_PASS
.
getCode
());
auctionConfigDao
.
setDeal
(
itemId
,
AuctionEnum
.
StateEnum
.
NO_OFFER_TO_PASS
.
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