记得上下班打卡 | 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
b6232eb2
Commit
b6232eb2
authored
Apr 07, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~queue:msg调整;
parent
a0be5d84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
ConsumerGoblinBizArtworkClqRdsReceiver.java
...ylin/receiver/ConsumerGoblinBizArtworkClqRdsReceiver.java
+1
-1
ConsumerGoblinBizArtworkUplRdsReceiver.java
...ylin/receiver/ConsumerGoblinBizArtworkUplRdsReceiver.java
+2
-1
db_0315_jxl_nft.sql
...in/liquidnet-service-goblin-impl/docu/db_0315_jxl_nft.sql
+2
-2
No files found.
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-kylin/src/main/java/com/liquidnet/service/consumer/kylin/receiver/ConsumerGoblinBizArtworkClqRdsReceiver.java
View file @
b6232eb2
...
@@ -63,7 +63,7 @@ public class ConsumerGoblinBizArtworkClqRdsReceiver extends AbstractBizRedisRece
...
@@ -63,7 +63,7 @@ public class ConsumerGoblinBizArtworkClqRdsReceiver extends AbstractBizRedisRece
aBoolean
=
true
;
aBoolean
=
true
;
}
else
{
}
else
{
String
[]
msgArr
=
msg
.
split
(
","
);
String
[]
msgArr
=
msg
.
split
(
","
);
String
skuId
=
msgArr
[
0
],
time
=
msgArr
[
1
]
;
String
skuId
=
msgArr
[
0
],
time
=
msgArr
.
length
==
2
?
msgArr
[
1
]
:
null
;
LocalDateTime
now
=
LocalDateTime
.
now
(),
checkTime
=
now
.
minusSeconds
(
10
);
LocalDateTime
now
=
LocalDateTime
.
now
(),
checkTime
=
now
.
minusSeconds
(
10
);
LocalDateTime
createAt
=
StringUtils
.
isEmpty
(
time
)
?
checkTime
:
LocalDateTime
.
parse
(
time
);
LocalDateTime
createAt
=
StringUtils
.
isEmpty
(
time
)
?
checkTime
:
LocalDateTime
.
parse
(
time
);
...
...
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-kylin/src/main/java/com/liquidnet/service/consumer/kylin/receiver/ConsumerGoblinBizArtworkUplRdsReceiver.java
View file @
b6232eb2
...
@@ -27,6 +27,7 @@ import org.springframework.data.redis.connection.stream.StreamRecords;
...
@@ -27,6 +27,7 @@ import org.springframework.data.redis.connection.stream.StreamRecords;
import
org.springframework.data.redis.core.StreamOperations
;
import
org.springframework.data.redis.core.StreamOperations
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.LinkedList
;
import
java.util.LinkedList
;
...
@@ -144,7 +145,7 @@ public class ConsumerGoblinBizArtworkUplRdsReceiver extends AbstractBizRedisRece
...
@@ -144,7 +145,7 @@ public class ConsumerGoblinBizArtworkUplRdsReceiver extends AbstractBizRedisRece
streamOperations
.
add
(
StreamRecords
.
mapBacked
(
sqlUpdateMap
).
withStreamKey
(
MQConst
.
GoblinQueue
.
SQL_GOODS
.
getKey
()));
streamOperations
.
add
(
StreamRecords
.
mapBacked
(
sqlUpdateMap
).
withStreamKey
(
MQConst
.
GoblinQueue
.
SQL_GOODS
.
getKey
()));
HashMap
<
String
,
String
>
toQueueBeClaimQueryMsg
=
CollectionUtil
.
mapStringString
();
HashMap
<
String
,
String
>
toQueueBeClaimQueryMsg
=
CollectionUtil
.
mapStringString
();
toQueueBeClaimQueryMsg
.
put
(
MQConst
.
QUEUE_MESSAGE_KEY
,
skuId
);
toQueueBeClaimQueryMsg
.
put
(
MQConst
.
QUEUE_MESSAGE_KEY
,
skuId
.
concat
(
","
).
concat
(
String
.
valueOf
(
LocalDateTime
.
now
()))
);
streamOperations
.
add
(
StreamRecords
.
mapBacked
(
toQueueBeClaimQueryMsg
).
withStreamKey
(
MQConst
.
GoblinQueue
.
BIZ_ARTWORK_CLQ
.
getKey
()));
streamOperations
.
add
(
StreamRecords
.
mapBacked
(
toQueueBeClaimQueryMsg
).
withStreamKey
(
MQConst
.
GoblinQueue
.
BIZ_ARTWORK_CLQ
.
getKey
()));
return
true
;
return
true
;
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/db_0315_jxl_nft.sql
View file @
b6232eb2
...
@@ -26,7 +26,7 @@ alter table goblin_goods_sku add sale_stop_time datetime null comment '停售时
...
@@ -26,7 +26,7 @@ alter table goblin_goods_sku add sale_stop_time datetime null comment '停售时
alter
table
goblin_goods_sku
add
soldout_status
char
default
'0'
not
null
comment
'是否售罄[0-否|1-是]'
after
shelves_status
;
alter
table
goblin_goods_sku
add
soldout_status
char
default
'0'
not
null
comment
'是否售罄[0-否|1-是]'
after
shelves_status
;
alter
table
goblin_goods_sku
add
sku_canbuy
char
null
comment
'是否购买[0-否|1-是]'
after
sku_appear
;
alter
table
goblin_goods_sku
add
sku_canbuy
char
null
comment
'是否购买[0-否|1-是]'
after
sku_appear
;
alter
table
goblin_goods_sku
add
unbox
char
default
'0'
not
null
null
comment
'是否盲盒[0-否|1-是]'
after
sku_canbuy
;
alter
table
goblin_goods_sku
add
unbox
char
default
'0'
not
null
null
comment
'是否盲盒[0-否|1-是]'
after
sku_canbuy
;
alter
table
goblin_goods_sku
add
hit_ratio
decimal
(
3
,
2
)
null
comment
'盲盒命中率[0.01~100%]'
after
unbox
;
alter
table
goblin_goods_sku
add
hit_ratio
decimal
(
8
,
2
)
null
comment
'盲盒命中率[0.01~100%]'
after
unbox
;
alter
table
goblin_goods_sku
add
opening_time
datetime
null
comment
'盲盒开启时间'
after
hit_ratio
;
alter
table
goblin_goods_sku
add
opening_time
datetime
null
comment
'盲盒开启时间'
after
hit_ratio
;
alter
table
goblin_goods_sku
add
opening_limit
int
default
0
comment
'盲盒开启时限[单位秒]'
after
opening_time
;
alter
table
goblin_goods_sku
add
opening_limit
int
default
0
comment
'盲盒开启时限[单位秒]'
after
opening_time
;
...
@@ -54,7 +54,7 @@ create table goblin_goods_sku_nft
...
@@ -54,7 +54,7 @@ create table goblin_goods_sku_nft
nft_url
varchar
(
500
)
null
comment
'NFT素材访问URL'
,
nft_url
varchar
(
500
)
null
comment
'NFT素材访问URL'
,
series_id
varchar
(
256
)
null
comment
'NFT系列ID'
,
series_id
varchar
(
256
)
null
comment
'NFT系列ID'
,
series_hash
varchar
(
256
)
null
comment
'NFT系列HASH'
,
series_hash
varchar
(
256
)
null
comment
'NFT系列HASH'
,
nft_hash
varchar
(
25
)
null
comment
'NFT藏品HASH'
,
nft_hash
varchar
(
25
6
)
null
comment
'NFT藏品HASH'
,
declare_at
varchar
(
25
)
null
comment
'NFT系列声明时间'
,
declare_at
varchar
(
25
)
null
comment
'NFT系列声明时间'
,
created_at
datetime
not
null
,
created_at
datetime
not
null
,
updated_at
datetime
null
,
updated_at
datetime
null
,
...
...
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