记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
03a6701c
Commit
03a6701c
authored
Aug 25, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nft详情vo 添加 第一个分批购的 开始/结束时间
parent
42ff5565
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
GoblinNftGoodsSkuInfoVo.java
...uidnet/service/goblin/dto/vo/GoblinNftGoodsSkuInfoVo.java
+7
-0
GoblinNftGoodsAppServiceImpl.java
...ice/goblin/service/impl/GoblinNftGoodsAppServiceImpl.java
+4
-0
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+26
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinNftGoodsSkuInfoVo.java
View file @
03a6701c
...
@@ -113,6 +113,13 @@ public class GoblinNftGoodsSkuInfoVo implements Serializable, Cloneable {
...
@@ -113,6 +113,13 @@ public class GoblinNftGoodsSkuInfoVo implements Serializable, Cloneable {
@ApiModelProperty
(
position
=
72
,
value
=
"下个分段购开始时间,如果为null则没有"
)
@ApiModelProperty
(
position
=
72
,
value
=
"下个分段购开始时间,如果为null则没有"
)
private
LocalDateTime
nextSaleStartTime
;
private
LocalDateTime
nextSaleStartTime
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
DateUtil
.
DATE_FULL_STR
)
@ApiModelProperty
(
position
=
73
,
value
=
"第一个分批购开始时间"
)
private
LocalDateTime
firstSaleStartTime
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
DateUtil
.
DATE_FULL_STR
)
@ApiModelProperty
(
position
=
74
,
value
=
"第一个分批购结束时间"
)
private
LocalDateTime
firstSaleEndTime
;
private
static
final
GoblinNftGoodsSkuInfoVo
obj
=
new
GoblinNftGoodsSkuInfoVo
();
private
static
final
GoblinNftGoodsSkuInfoVo
obj
=
new
GoblinNftGoodsSkuInfoVo
();
public
static
GoblinNftGoodsSkuInfoVo
getNew
()
{
public
static
GoblinNftGoodsSkuInfoVo
getNew
()
{
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinNftGoodsAppServiceImpl.java
View file @
03a6701c
...
@@ -153,6 +153,8 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
...
@@ -153,6 +153,8 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
String
listId
=
(
String
)
map
.
get
(
"listId"
);
String
listId
=
(
String
)
map
.
get
(
"listId"
);
LocalDateTime
baseSaleStartTime
=
(
LocalDateTime
)
map
.
get
(
"baseSaleStartTime"
);
LocalDateTime
baseSaleStartTime
=
(
LocalDateTime
)
map
.
get
(
"baseSaleStartTime"
);
LocalDateTime
nextSaleStartTime
=
(
LocalDateTime
)
map
.
get
(
"nextSaleStartTime"
);
LocalDateTime
nextSaleStartTime
=
(
LocalDateTime
)
map
.
get
(
"nextSaleStartTime"
);
LocalDateTime
firstSaleStartTime
=
(
LocalDateTime
)
map
.
get
(
"firstSaleStartTime"
);
LocalDateTime
firstSaleEndTime
=
(
LocalDateTime
)
map
.
get
(
"firstSaleEndTime"
);
if
(
goblinRedisUtils
.
getSkuAllStatusShow
(
skuInfoVo
))
{
if
(
goblinRedisUtils
.
getSkuAllStatusShow
(
skuInfoVo
))
{
//获取预约相关
//获取预约相关
AnticipateValueVo
anticipateValueVo
=
goblinGoodsAnticipateMgService
.
getAnticipateValueBySkuId
(
skuId
,
1
);
AnticipateValueVo
anticipateValueVo
=
goblinGoodsAnticipateMgService
.
getAnticipateValueBySkuId
(
skuId
,
1
);
...
@@ -184,6 +186,8 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
...
@@ -184,6 +186,8 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
nftGoodsSkuInfoVo
.
setListId
(
listId
);
nftGoodsSkuInfoVo
.
setListId
(
listId
);
nftGoodsSkuInfoVo
.
setBaseSaleStartTime
(
baseSaleStartTime
);
nftGoodsSkuInfoVo
.
setBaseSaleStartTime
(
baseSaleStartTime
);
nftGoodsSkuInfoVo
.
setNextSaleStartTime
(
nextSaleStartTime
);
nftGoodsSkuInfoVo
.
setNextSaleStartTime
(
nextSaleStartTime
);
nftGoodsSkuInfoVo
.
setFirstSaleEndTime
(
firstSaleEndTime
);
nftGoodsSkuInfoVo
.
setFirstSaleStartTime
(
firstSaleStartTime
);
// 是否开启兑换
// 是否开启兑换
nftGoodsSkuInfoVo
.
setIsExchange
(
goblinRedisUtils
.
getIsExchange
(
skuId
));
nftGoodsSkuInfoVo
.
setIsExchange
(
goblinRedisUtils
.
getIsExchange
(
skuId
));
// 待支付订单数量
// 待支付订单数量
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
03a6701c
...
@@ -840,6 +840,7 @@ public class GoblinRedisUtils {
...
@@ -840,6 +840,7 @@ public class GoblinRedisUtils {
if
(
null
==
vo
)
{
if
(
null
==
vo
)
{
return
null
;
return
null
;
}
}
GoblinListCollectVo
firstCollectVo
=
getCollectByFirst
(
skuId
);
HashMap
<
String
,
Object
>
map
=
CollectionUtil
.
mapStringObject
();
HashMap
<
String
,
Object
>
map
=
CollectionUtil
.
mapStringObject
();
LocalDateTime
nextSaleStartTime
=
null
;
LocalDateTime
nextSaleStartTime
=
null
;
if
(
null
==
vo
.
getSaleStartTime
()
||
now
.
isAfter
(
vo
.
getSaleStartTime
()))
{
//普通商品已开售
if
(
null
==
vo
.
getSaleStartTime
()
||
now
.
isAfter
(
vo
.
getSaleStartTime
()))
{
//普通商品已开售
...
@@ -884,6 +885,13 @@ public class GoblinRedisUtils {
...
@@ -884,6 +885,13 @@ public class GoblinRedisUtils {
map
.
put
(
"baseSaleStartTime"
,
baseSaleStartTime
);
map
.
put
(
"baseSaleStartTime"
,
baseSaleStartTime
);
map
.
put
(
"nextSaleStartTime"
,
nextSaleStartTime
);
map
.
put
(
"nextSaleStartTime"
,
nextSaleStartTime
);
}
}
if
(
firstCollectVo
!=
null
)
{
map
.
put
(
"firstSaleStartTime"
,
firstCollectVo
.
getTimeStart
());
map
.
put
(
"firstSaleEndTime"
,
firstCollectVo
.
getTimeEnd
());
}
else
{
map
.
put
(
"firstSaleStartTime"
,
null
);
map
.
put
(
"firstSaleEndTime"
,
null
);
}
return
map
;
return
map
;
}
}
...
@@ -999,6 +1007,22 @@ public class GoblinRedisUtils {
...
@@ -999,6 +1007,22 @@ public class GoblinRedisUtils {
return
collectNext
;
return
collectNext
;
}
}
public
GoblinListCollectVo
getCollectByFirst
(
String
skuId
)
{
GoblinListCollectVo
vo
=
null
;
List
<
GoblinListCollectVo
>
collectVos
=
getGoblinListCollect
(
skuId
);
for
(
int
i
=
0
;
i
<
collectVos
.
size
();
i
++)
{
GoblinListCollectVo
collectVoItem
=
collectVos
.
get
(
i
);
if
(
vo
==
null
)
{
vo
=
collectVoItem
;
}
if
(
collectVoItem
.
getTimeStart
().
isBefore
(
vo
.
getTimeStart
()))
{
vo
=
collectVoItem
;
}
}
return
vo
;
}
/**
/**
* 处理上个时间段的库存
* 处理上个时间段的库存
*
*
...
@@ -2657,7 +2681,7 @@ public class GoblinRedisUtils {
...
@@ -2657,7 +2681,7 @@ public class GoblinRedisUtils {
//保存用户预约
//保存用户预约
public
void
setReserveMixByUid
(
GoblinMixReserveVo
goblinMixReserveVo
)
{
public
void
setReserveMixByUid
(
GoblinMixReserveVo
goblinMixReserveVo
)
{
String
rdk
=
GoblinRedisConst
.
GOBLIN_MIX_RESERVE_UID
.
concat
(
goblinMixReserveVo
.
getMixId
()).
concat
(
":"
).
concat
(
goblinMixReserveVo
.
getUid
());
String
rdk
=
GoblinRedisConst
.
GOBLIN_MIX_RESERVE_UID
.
concat
(
goblinMixReserveVo
.
getMixId
()).
concat
(
":"
).
concat
(
goblinMixReserveVo
.
getUid
());
redisUtil
.
set
(
rdk
,
goblinMixReserveVo
);
redisUtil
.
set
(
rdk
,
goblinMixReserveVo
);
}
}
//根据用户uid和混合mixId查询用户预约
//根据用户uid和混合mixId查询用户预约
...
@@ -2685,6 +2709,7 @@ public class GoblinRedisUtils {
...
@@ -2685,6 +2709,7 @@ public class GoblinRedisUtils {
/**
/**
* NFT转赠约束配置
* NFT转赠约束配置
* redis未配置默认返回180天对应15552000秒
* redis未配置默认返回180天对应15552000秒
*
* @return Map<String, Long>
* @return Map<String, Long>
*/
*/
public
Map
<
String
,
Long
>
getUserDigitalArtworkTransferConfMap
()
{
public
Map
<
String
,
Long
>
getUserDigitalArtworkTransferConfMap
()
{
...
...
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