记得上下班打卡 | 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
9b0a5610
Commit
9b0a5610
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
dac9cfb1
2154d769
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+1
-1
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+15
-0
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
9b0a5610
...
@@ -1661,7 +1661,7 @@ public class GoblinMongoUtils {
...
@@ -1661,7 +1661,7 @@ public class GoblinMongoUtils {
}
else
if
(
filterParam
.
getType
().
equals
(
1
))
{
}
else
if
(
filterParam
.
getType
().
equals
(
1
))
{
restStock
+=
redisUtils
.
getSkuAllStatusStockType1
(
itemVo
);
restStock
+=
redisUtils
.
getSkuAllStatusStockType1
(
itemVo
);
}
}
stock
+=
redisUtils
.
getSkuTotalStock
(
itemVo
);
stock
+=
redisUtils
.
getSkuTotalStock
ShelvesStatus3
(
itemVo
);
}
}
mgtGoodsSkuListVo
.
setSurplusStock
(
restStock
);
mgtGoodsSkuListVo
.
setSurplusStock
(
restStock
);
mgtGoodsSkuListVo
.
setSkuStock
(
stock
);
mgtGoodsSkuListVo
.
setSkuStock
(
stock
);
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
9b0a5610
...
@@ -2123,6 +2123,21 @@ public class GoblinRedisUtils {
...
@@ -2123,6 +2123,21 @@ public class GoblinRedisUtils {
}
}
}
}
// 各种状态下判断藏品总库存
public
Integer
getSkuTotalStockShelvesStatus3
(
GoblinGoodsSkuInfoVo
info
)
{
if
(
info
!=
null
&&
(
null
==
info
.
getShelvesStatus
()
||
info
.
getShelvesStatus
().
equals
(
"3"
))
// && LocalDateTime.now().isAfter(info.getSaleStartTime())
// && (null == info.getSoldoutStatus() || info.getSoldoutStatus().equals("0"))
// && (null == info.getHitRatio() || info.getHitRatio().compareTo(BigDecimal.ZERO) > 0)
)
{
// 可以返回库存
return
info
.
getSkuStock
();
}
else
{
// 不计入库存
return
0
;
}
}
// 获取盲盒下藏品的库存 各种状态下不能算库存的排除掉
// 获取盲盒下藏品的库存 各种状态下不能算库存的排除掉
public
int
getSkuAllStatusStockType1
(
GoblinGoodsSkuInfoVo
info
)
{
public
int
getSkuAllStatusStockType1
(
GoblinGoodsSkuInfoVo
info
)
{
if
(
if
(
...
...
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