记得上下班打卡 | 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
3e05a35f
Commit
3e05a35f
authored
May 27, 2022
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hjc_goblin_list_unbox' into hjc_goblin_list_unbox
parents
860f4511
3aa26008
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
ZxinUserCommonBiz.java
...net/service/galaxy/router/zxin/biz/ZxinUserCommonBiz.java
+2
-2
GoblinNftBoxUtils.java
.../com/liquidnet/service/goblin/util/GoblinNftBoxUtils.java
+2
-2
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+2
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-common/src/main/java/com/liquidnet/service/galaxy/router/zxin/biz/ZxinUserCommonBiz.java
View file @
3e05a35f
...
@@ -262,7 +262,7 @@ public class ZxinUserCommonBiz {
...
@@ -262,7 +262,7 @@ public class ZxinUserCommonBiz {
}
}
long
endTime
=
System
.
currentTimeMillis
();
long
endTime
=
System
.
currentTimeMillis
();
log
.
error
(
"开通数字账户userRegister总耗时:{} "
,
endTime
-
startTime
);
log
.
info
(
"开通数字账户userRegister总耗时:{} "
,
endTime
-
startTime
);
if
(
StringUtil
.
isNotEmpty
(
sysFailDesc
)){
if
(
StringUtil
.
isNotEmpty
(
sysFailDesc
)){
return
ResponseDto
.
failure
(
sysFailDesc
);
return
ResponseDto
.
failure
(
sysFailDesc
);
...
@@ -356,7 +356,7 @@ public class ZxinUserCommonBiz {
...
@@ -356,7 +356,7 @@ public class ZxinUserCommonBiz {
,
reqDto
.
getUserName
().
concat
(
","
).
concat
(
reqDto
.
getMobile
()),
openAccFailKeyExpireTime
);
,
reqDto
.
getUserName
().
concat
(
","
).
concat
(
reqDto
.
getMobile
()),
openAccFailKeyExpireTime
);
}
}
long
endTime
=
System
.
currentTimeMillis
();
long
endTime
=
System
.
currentTimeMillis
();
log
.
error
(
"同步数字账户syncOpenAccount总耗时:{} "
,
endTime
-
startTime
);
log
.
info
(
"同步数字账户syncOpenAccount总耗时:{} "
,
endTime
-
startTime
);
return
isOpenAccount
;
return
isOpenAccount
;
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinNftBoxUtils.java
View file @
3e05a35f
...
@@ -96,11 +96,11 @@ public class GoblinNftBoxUtils {
...
@@ -96,11 +96,11 @@ public class GoblinNftBoxUtils {
continue
;
continue
;
}
}
BigDecimal
bigDecimal
=
BigDecimal
.
valueOf
(
exStock
).
multiply
((
new
BigDecimal
(
hitRatio
.
toString
()).
divide
(
hitRatioCount
,
2
,
BigDecimal
.
ROUND_HALF_UP
)));
BigDecimal
bigDecimal
=
BigDecimal
.
valueOf
(
exStock
).
multiply
((
new
BigDecimal
(
hitRatio
.
toString
()).
divide
(
hitRatioCount
,
5
,
BigDecimal
.
ROUND_HALF_UP
)));
bigDecimalHashMap
.
put
(
key
,
bigDecimal
);
bigDecimalHashMap
.
put
(
key
,
bigDecimal
);
// 要减去的库存
// 要减去的库存
int
subStock
=
BigDecimal
.
valueOf
(
exStock
).
multiply
((
new
BigDecimal
(
hitRatio
.
toString
()).
divide
(
hitRatioCount
,
2
,
BigDecimal
.
ROUND_HALF_UP
))).
setScale
(
0
,
BigDecimal
.
ROUND_UP
).
intValue
();
int
subStock
=
BigDecimal
.
valueOf
(
exStock
).
multiply
((
new
BigDecimal
(
hitRatio
.
toString
()).
divide
(
hitRatioCount
,
5
,
BigDecimal
.
ROUND_HALF_UP
))).
setScale
(
0
,
BigDecimal
.
ROUND_UP
).
intValue
();
if
(
subStock
>
Integer
.
valueOf
(
stock
.
toString
()))
{
if
(
subStock
>
Integer
.
valueOf
(
stock
.
toString
()))
{
subNumber
+=
Integer
.
valueOf
(
stock
.
toString
());
subNumber
+=
Integer
.
valueOf
(
stock
.
toString
());
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
3e05a35f
...
@@ -2129,7 +2129,8 @@ public class GoblinRedisUtils {
...
@@ -2129,7 +2129,8 @@ public class GoblinRedisUtils {
info
!=
null
info
!=
null
&&
(
null
==
info
.
getSoldoutStatus
()
||
info
.
getSoldoutStatus
().
equals
(
"0"
))
&&
(
null
==
info
.
getSoldoutStatus
()
||
info
.
getSoldoutStatus
().
equals
(
"0"
))
&&
(
null
==
info
.
getHitRatio
()
||
info
.
getHitRatio
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
&&
(
null
==
info
.
getHitRatio
()
||
info
.
getHitRatio
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
&&
(
null
==
info
.
getSkuCanbuy
()
||
info
.
getSkuCanbuy
().
equals
(
"1"
))
&&
(
null
==
info
.
getSkuCanbuy
()
||
info
.
getSkuCanbuy
().
equals
(
"1"
)
&&
(
null
==
info
.
getShelvesStatus
()
||
info
.
getShelvesStatus
().
equals
(
"3"
)))
)
{
// 可以返回库存
)
{
// 可以返回库存
return
getSkuStock
(
null
,
info
.
getSkuId
());
return
getSkuStock
(
null
,
info
.
getSkuId
());
}
else
{
// 不计入库存
}
else
{
// 不计入库存
...
...
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