记得上下班打卡 | 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
4bff4260
Commit
4bff4260
authored
Apr 07, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_nft_411' into dev_nft_411
parents
4a2b68e9
2e7ebd3a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
10 deletions
+43
-10
GoblinPayOrderDetailsVo.java
...uidnet/service/goblin/dto/vo/GoblinPayOrderDetailsVo.java
+4
-0
ConsumerGalaxySqlNftOrderFailLogConfig.java
.../kylin/config/ConsumerGalaxySqlNftOrderFailLogConfig.java
+1
-1
GalaxyRouterStrategyZxlTradeImpl.java
...router/zxin/service/GalaxyRouterStrategyZxlTradeImpl.java
+3
-1
GoblinRscController.java
.../service/goblin/controller/Inner/GoblinRscController.java
+3
-3
GoblinNftNumAccountServiceImpl.java
...e/goblin/service/impl/GoblinNftNumAccountServiceImpl.java
+28
-4
GoblinNftOrderAppServiceImpl.java
...ice/goblin/service/impl/GoblinNftOrderAppServiceImpl.java
+3
-0
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+1
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinPayOrderDetailsVo.java
View file @
4bff4260
...
@@ -27,6 +27,10 @@ public class GoblinPayOrderDetailsVo implements Serializable, Cloneable {
...
@@ -27,6 +27,10 @@ public class GoblinPayOrderDetailsVo implements Serializable, Cloneable {
private
String
skuPic
;
private
String
skuPic
;
@ApiModelProperty
(
position
=
21
,
value
=
"单品现价[20,2]"
)
@ApiModelProperty
(
position
=
21
,
value
=
"单品现价[20,2]"
)
private
BigDecimal
price
;
private
BigDecimal
price
;
@ApiModelProperty
(
value
=
"商铺名称"
)
private
String
storeName
;
@ApiModelProperty
(
position
=
22
,
value
=
"数量"
)
@ApiModelProperty
(
position
=
22
,
value
=
"数量"
)
private
Integer
num
;
private
Integer
num
;
@ApiModelProperty
(
position
=
23
,
value
=
"总价"
)
@ApiModelProperty
(
position
=
23
,
value
=
"总价"
)
...
...
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-kylin/src/main/java/com/liquidnet/service/consumer/kylin/config/ConsumerGalaxySqlNftOrderFailLogConfig.java
View file @
4bff4260
...
@@ -36,7 +36,7 @@ public class ConsumerGalaxySqlNftOrderFailLogConfig extends RedisStreamConfig {
...
@@ -36,7 +36,7 @@ public class ConsumerGalaxySqlNftOrderFailLogConfig extends RedisStreamConfig {
StringRedisTemplate
stringRedisTemplate
;
StringRedisTemplate
stringRedisTemplate
;
@Bean
@Bean
public
List
<
Subscription
>
subscriptionSqlNftOrder
Info
(
RedisConnectionFactory
factory
)
{
public
List
<
Subscription
>
subscriptionSqlNftOrder
FailLog
(
RedisConnectionFactory
factory
)
{
List
<
Subscription
>
subscriptionList
=
new
ArrayList
<>();
List
<
Subscription
>
subscriptionList
=
new
ArrayList
<>();
MQConst
.
GalaxyQueue
stream
=
MQConst
.
GalaxyQueue
.
SQL_NFT_ORDER_FAIL_LOG
;
MQConst
.
GalaxyQueue
stream
=
MQConst
.
GalaxyQueue
.
SQL_NFT_ORDER_FAIL_LOG
;
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/zxin/service/GalaxyRouterStrategyZxlTradeImpl.java
View file @
4bff4260
package
com
.
liquidnet
.
service
.
galaxy
.
router
.
zxin
.
service
;
package
com
.
liquidnet
.
service
.
galaxy
.
router
.
zxin
.
service
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.galaxy.constant.GalaxyEnum
;
import
com.liquidnet.service.galaxy.constant.GalaxyEnum
;
import
com.liquidnet.service.galaxy.dto.param.*
;
import
com.liquidnet.service.galaxy.dto.param.*
;
import
com.liquidnet.service.galaxy.router.strategy.IGalaxyRouterStrategyTrade
;
import
com.liquidnet.service.galaxy.router.strategy.IGalaxyRouterStrategyTrade
;
...
@@ -33,7 +35,7 @@ public class GalaxyRouterStrategyZxlTradeImpl implements IGalaxyRouterStrategyTr
...
@@ -33,7 +35,7 @@ public class GalaxyRouterStrategyZxlTradeImpl implements IGalaxyRouterStrategyTr
@Override
@Override
public
ResponseDto
<
GalaxyNftPublishAndBuyRespDto
>
nftPublishAndBuy
(
GalaxyNftPublishAndBuyReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyNftPublishAndBuyRespDto
>
nftPublishAndBuy
(
GalaxyNftPublishAndBuyReqDto
reqDto
)
{
//测试发送队列
//测试发送队列
//
queueUtil.sendMsgByRedis(MQConst.GalaxyQueue.JSON_NFT_PUBLISH_AND_BUY.getKey(), JsonUtils.toJson(reqDto));
queueUtil
.
sendMsgByRedis
(
MQConst
.
GalaxyQueue
.
JSON_NFT_PUBLISH_AND_BUY
.
getKey
(),
JsonUtils
.
toJson
(
reqDto
));
// return ResponseDto.success();
// return ResponseDto.success();
return
zxinTradeBiz
.
nftPublishAndBuy
(
reqDto
);
return
zxinTradeBiz
.
nftPublishAndBuy
(
reqDto
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/Inner/GoblinRscController.java
View file @
4bff4260
...
@@ -31,14 +31,14 @@ public class GoblinRscController {
...
@@ -31,14 +31,14 @@ public class GoblinRscController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"userId"
,
value
=
"用户ID"
,
example
=
"1"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"userId"
,
value
=
"用户ID"
,
example
=
"1"
,
required
=
true
),
})
})
public
ResponseDto
<
Boolean
>
syncNotice
(
public
ResponseDto
syncNotice
(
@RequestParam
(
"userId"
)
@NotBlank
(
message
=
"用户ID不能为空"
)
String
userId
@RequestParam
(
"userId"
)
@NotBlank
(
message
=
"用户ID不能为空"
)
String
userId
)
{
)
{
Boolean
notice
=
accountService
.
syncNotice
(
userId
);
Boolean
notice
=
accountService
.
syncNotice
(
userId
);
if
(
notice
)
{
if
(
notice
)
{
return
ResponseDto
.
success
();
return
ResponseDto
.
success
(
"同步成功"
);
}
else
{
}
else
{
return
ResponseDto
.
failure
();
return
ResponseDto
.
failure
(
"未获取到数据"
);
}
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinNftNumAccountServiceImpl.java
View file @
4bff4260
package
com
.
liquidnet
.
service
.
goblin
.
service
.
impl
;
package
com
.
liquidnet
.
service
.
goblin
.
service
.
impl
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.HttpUtil
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.adam.dto.vo.AdamUserBizAcctVo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.goblin.util.GoblinRedisUtils
;
import
com.liquidnet.service.goblin.util.GoblinRedisUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.MediaType
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.MultiValueMap
;
@Service
@Service
@Slf4j
@Slf4j
...
@@ -12,11 +21,26 @@ public class GoblinNftNumAccountServiceImpl {
...
@@ -12,11 +21,26 @@ public class GoblinNftNumAccountServiceImpl {
@Autowired
@Autowired
private
GoblinRedisUtils
goblinRedisUtils
;
private
GoblinRedisUtils
goblinRedisUtils
;
@Value
(
"${liquidnet.service.adam.url}"
)
private
String
adamUrl
;
public
Boolean
syncNotice
(
String
userId
)
{
public
Boolean
syncNotice
(
String
userId
)
{
// TODO: jxl 2022/4/6 请求adam
// 请求adam
// 写入redis
MultiValueMap
<
String
,
String
>
headers
=
CollectionUtil
.
linkedMultiValueMapStringString
();
goblinRedisUtils
.
setNftNumAccount
(
userId
);
headers
.
add
(
"Accept"
,
MediaType
.
APPLICATION_JSON_UTF8_VALUE
);
return
true
;
headers
.
set
(
"Content-Type"
,
MediaType
.
APPLICATION_FORM_URLENCODED_VALUE
);
String
returnData
=
HttpUtil
.
getByUri
(
adamUrl
.
concat
(
"/adam/rsc/inquire/bizacc?bizCode=NFT_ZX&uid="
.
concat
(
userId
)),
headers
);
ResponseDto
<
AdamUserBizAcctVo
>
rsp
=
JsonUtils
.
fromJson
(
returnData
,
new
TypeReference
<
ResponseDto
<
AdamUserBizAcctVo
>>()
{
});
AdamUserBizAcctVo
rspData
=
rsp
.
getData
();
if
(
null
!=
rspData
)
{
// 写入redis
goblinRedisUtils
.
setNftNumAccount
(
userId
);
return
true
;
}
else
{
log
.
info
(
"同步数字账号失败,信息不存在 [userId:{}]"
,
userId
);
return
false
;
}
}
}
}
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinNftOrderAppServiceImpl.java
View file @
4bff4260
...
@@ -93,6 +93,9 @@ public class GoblinNftOrderAppServiceImpl implements IGoblinNftOrderAppService {
...
@@ -93,6 +93,9 @@ public class GoblinNftOrderAppServiceImpl implements IGoblinNftOrderAppService {
GoblinPayOrderDetailsVo
payOrderDetailsVo
=
GoblinPayOrderDetailsVo
.
getNew
().
copy
(
goodsSkuInfoVo
);
GoblinPayOrderDetailsVo
payOrderDetailsVo
=
GoblinPayOrderDetailsVo
.
getNew
().
copy
(
goodsSkuInfoVo
);
payOrderDetailsVo
.
setNum
(
1
);
payOrderDetailsVo
.
setNum
(
1
);
payOrderDetailsVo
.
setPriceTotal
(
payOrderDetailsVo
.
getPrice
());
payOrderDetailsVo
.
setPriceTotal
(
payOrderDetailsVo
.
getPrice
());
GoblinStoreInfoVo
storeInfoVo
=
goblinRedisUtils
.
getStoreInfoVo
(
goodsSkuInfoVo
.
getStoreId
());
payOrderDetailsVo
.
setStoreName
(
storeInfoVo
.
getStoreName
());
return
payOrderDetailsVo
;
return
payOrderDetailsVo
;
}
else
{
}
else
{
return
null
;
return
null
;
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
4bff4260
...
@@ -1399,7 +1399,7 @@ public class GoblinRedisUtils {
...
@@ -1399,7 +1399,7 @@ public class GoblinRedisUtils {
//
//
public
void
setNftNumAccount
(
String
userId
)
{
public
void
setNftNumAccount
(
String
userId
)
{
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_NFT_NUM_ACCOUNT
.
concat
(
userId
);
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_NFT_NUM_ACCOUNT
.
concat
(
userId
);
//
redisUtil.set(redisKey, 1);
redisUtil
.
set
(
redisKey
,
1
);
}
}
/* ---------------------------------------- ---------------------------------------- */
/* ---------------------------------------- ---------------------------------------- */
...
...
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