记得上下班打卡 | 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
9054ce5d
Commit
9054ce5d
authored
Jul 05, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台 创建修改
parent
218f9c05
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
GoblinMixDetailsItemVo.java
...quidnet/service/goblin/dto/vo/GoblinMixDetailsItemVo.java
+1
-1
GoblinMixServiceImpl.java
...vice/goblin/service/impl/manage/GoblinMixServiceImpl.java
+2
-1
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+2
-2
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinMixDetailsItemVo.java
View file @
9054ce5d
...
...
@@ -51,7 +51,7 @@ public class GoblinMixDetailsItemVo implements Serializable, Cloneable {
public
GoblinMixDetailsItemVo
copyByInsert
(
GoblinMixDetailsItemParam
source
)
{
if
(
null
==
source
)
return
this
;
this
.
setSpuId
(
DateUtil
.
getNowTime
());
this
.
setSpuId
(
source
.
getSpuId
());
this
.
setSkuId
(
source
.
getSkuId
());
this
.
setSkuPrice
(
source
.
getSkuPrice
());
this
.
setPrice
(
source
.
getPrice
());
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinMixServiceImpl.java
View file @
9054ce5d
...
...
@@ -111,7 +111,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
item
.
setSkuName
(
skuInfoVo
.
getName
());
item
.
setSkuPrice
(
skuInfoVo
.
getPrice
());
item
.
setSkuPic
(
skuInfoVo
.
getSkuPic
());
item
.
setStock
(
skuInfoVo
.
getSkuStock
());
item
.
setStock
(
vo
.
getStock
()*
item
.
getCount
());
if
(
skuInfoVo
.
getUnbox
().
equals
(
"1"
))
{
List
<
String
>
skuIds
=
redisUtils
.
getGoblinMixRelationBox
(
skuInfoVo
.
getSkuId
(),
mixId
);
...
...
@@ -290,6 +290,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
}
else
{
redisUtils
.
setSkuStock
(
mixId
,
key
,
stockNum
);
redisUtils
.
addGoblinMixRelationBox
(
skuId
,
mixId
,
key
);
log
.
debug
(
"id = "
+
redisUtils
.
getGoblinMixRelationBox
(
skuId
,
mixId
));
sucSkuId
.
add
(
key
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
9054ce5d
...
...
@@ -2399,7 +2399,7 @@ public class GoblinRedisUtils {
*/
public
void
addGoblinMixRelationBox
(
String
skuId
,
String
mixId
,
String
relationSkuId
)
{
String
rdk
=
GoblinRedisConst
.
GOBLIN_MIX_RELATION_BOX
.
concat
(
skuId
).
concat
(
":"
+
mixId
);
ArrayList
<
String
>
list
=
getGoblin
List
RelationBox
(
skuId
,
mixId
);
ArrayList
<
String
>
list
=
getGoblin
Mix
RelationBox
(
skuId
,
mixId
);
list
.
add
(
relationSkuId
);
redisUtil
.
set
(
rdk
,
list
);
}
...
...
@@ -2409,7 +2409,7 @@ public class GoblinRedisUtils {
*/
public
void
removeGoblinMixRelationBox
(
String
skuId
,
String
mixId
,
String
relationSkuId
)
{
String
rdk
=
GoblinRedisConst
.
GOBLIN_MIX_RELATION_BOX
.
concat
(
skuId
).
concat
(
":"
+
mixId
);
ArrayList
<
String
>
list
=
getGoblin
List
RelationBox
(
skuId
,
mixId
);
ArrayList
<
String
>
list
=
getGoblin
Mix
RelationBox
(
skuId
,
mixId
);
for
(
String
item
:
list
)
{
if
(
item
.
equals
(
relationSkuId
))
{
list
.
remove
(
item
);
...
...
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