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
432227a2
Commit
432227a2
authored
Jun 21, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍卖中标签查询商品返回倒计时
parent
33a96c75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionItemsRelationServiceImpl.java
...impl/distribution/CollectionItemsRelationServiceImpl.java
+7
-3
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
432227a2
...
@@ -362,7 +362,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
...
@@ -362,7 +362,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
auctionConfig
.
setEndTime
(
StringUtils
.
isEmpty
(
dto
.
getAuctionEndTime
())
?
new
Date
():
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()));
auctionConfig
.
setEndTime
(
StringUtils
.
isEmpty
(
dto
.
getAuctionEndTime
())
?
new
Date
():
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()));
auctionConfig
.
setRealEndTime
(
StringUtils
.
isEmpty
(
dto
.
getAuctionEndTime
())
?
new
Date
():
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()));
auctionConfig
.
setRealEndTime
(
StringUtils
.
isEmpty
(
dto
.
getAuctionEndTime
())
?
new
Date
():
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()));
auctionConfig
.
setStartPrice
(
StringUtils
.
isEmpty
(
dto
.
getStartPrice
())
?
0
:
PriceUtil
.
convertPriceFromStr
(
dto
.
getStartPrice
()));
auctionConfig
.
setStartPrice
(
StringUtils
.
isEmpty
(
dto
.
getStartPrice
())
?
0
:
PriceUtil
.
convertPriceFromStr
(
dto
.
getStartPrice
()));
auctionConfig
.
setAddExtent
(
StringUtils
.
isEmpty
(
dto
.
getAddExtent
())
?
50
:
PriceUtil
.
convertPriceFromStr
(
dto
.
getAddExtent
()));
auctionConfig
.
setAddExtent
(
StringUtils
.
isEmpty
(
dto
.
getAddExtent
())
?
50
00
:
PriceUtil
.
convertPriceFromStr
(
dto
.
getAddExtent
()));
//修改的截拍时间在当前时间之后,则重新上架,设置拍卖信息为有效
//修改的截拍时间在当前时间之后,则重新上架,设置拍卖信息为有效
if
(
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()).
after
(
new
Date
()))
{
if
(
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()).
after
(
new
Date
()))
{
auctionConfig
.
setIsValid
(
true
);
auctionConfig
.
setIsValid
(
true
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionItemsRelationServiceImpl.java
View file @
432227a2
...
@@ -209,7 +209,6 @@ public class CollectionItemsRelationServiceImpl implements CollectionItemsRelati
...
@@ -209,7 +209,6 @@ public class CollectionItemsRelationServiceImpl implements CollectionItemsRelati
List
<
Long
>
itemIds
=
auctionConfigList
.
stream
().
map
(
AuctionConfig:
:
getItemId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
itemIds
=
auctionConfigList
.
stream
().
map
(
AuctionConfig:
:
getItemId
).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
itemIds
))
{
if
(!
CollectionUtils
.
isEmpty
(
itemIds
))
{
SupplierItemRequestDto
requestDto
=
new
SupplierItemRequestDto
();
SupplierItemRequestDto
requestDto
=
new
SupplierItemRequestDto
();
requestDto
.
setCreatorId
(
targetUserId
);
requestDto
.
setIds
(
itemIds
);
requestDto
.
setIds
(
itemIds
);
requestDto
.
setIsDeleted
(
false
);
requestDto
.
setIsDeleted
(
false
);
supplierItemList
=
supplierItemDao
.
findList
(
requestDto
);
supplierItemList
=
supplierItemDao
.
findList
(
requestDto
);
...
@@ -234,13 +233,18 @@ public class CollectionItemsRelationServiceImpl implements CollectionItemsRelati
...
@@ -234,13 +233,18 @@ public class CollectionItemsRelationServiceImpl implements CollectionItemsRelati
}
}
}
}
List
<
SupplierItemVo
>
list
=
new
ArrayList
<>();
List
<
SupplierItemVo
>
list
=
new
ArrayList
<>();
supplierItemList
.
forEach
(
supplierItem
->
{
for
(
SupplierItem
supplierItem
:
supplierItemList
)
{
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
supplierItemVo
.
setDistributionPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getDistributionPrice
()));
supplierItemVo
.
setDistributionPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getDistributionPrice
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
if
(
dto
.
getCollectionBookId
().
longValue
()
==
CollectionBookConstants
.
DefaultBookEnum
.
AUCTIONING
.
getId
()){
List
<
AuctionConfig
>
auctionConfigList
=
pageInfo
.
getList
();
Map
<
Long
,
Date
>
map
=
auctionConfigList
.
stream
().
collect
(
Collectors
.
toMap
(
AuctionConfig:
:
getItemId
,
AuctionConfig:
:
getRealEndTime
,
(
k1
,
k2
)
->
k2
));
supplierItemVo
.
setAuctionEndTime
(
map
.
get
(
supplierItem
.
getId
()));
}
list
.
add
(
supplierItemVo
);
list
.
add
(
supplierItemVo
);
}
);
}
logger
.
info
(
"查询标签下的藏品列表:{}"
,
list
);
logger
.
info
(
"查询标签下的藏品列表:{}"
,
list
);
return
Result
.
success
(
PageSearchResult
.
of
(
pageInfo
,
list
));
return
Result
.
success
(
PageSearchResult
.
of
(
pageInfo
,
list
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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