记得上下班打卡 | 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
a383e3b9
Commit
a383e3b9
authored
Feb 23, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
7920ab56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
GoblinFrontServiceImpl.java
...t/service/goblin/service/impl/GoblinFrontServiceImpl.java
+5
-2
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinFrontServiceImpl.java
View file @
a383e3b9
...
@@ -693,6 +693,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -693,6 +693,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
}
}
public
void
setPage1AndSpu
(
List
<
GoblinFrontSelectGoods
>
list
,
int
pageSize
){
public
void
setPage1AndSpu
(
List
<
GoblinFrontSelectGoods
>
list
,
int
pageSize
){
validate
(
list
);
validate
(
list
);
//sb 为配置的 精选商品 spuid
StringBuffer
sb
=
new
StringBuffer
();
StringBuffer
sb
=
new
StringBuffer
();
if
(
null
!=
list
&&
list
.
size
()>
0
){
if
(
null
!=
list
&&
list
.
size
()>
0
){
int
i
=
0
;
int
i
=
0
;
...
@@ -705,6 +706,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -705,6 +706,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
i
++;
i
++;
}
}
}
}
//获得没有配置的spuid s 是没有配置的精选商品spuid
String
s
=
this
.
getspuId
(
sb
.
toString
(),
0
,
0
);
String
s
=
this
.
getspuId
(
sb
.
toString
(),
0
,
0
);
String
supids
=
""
;
String
supids
=
""
;
if
(
StringUtil
.
isNotBlank
(
sb
.
toString
())&&
StringUtil
.
isNotBlank
(
s
)){
if
(
StringUtil
.
isNotBlank
(
sb
.
toString
())&&
StringUtil
.
isNotBlank
(
s
)){
...
@@ -716,6 +718,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -716,6 +718,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
}
}
log
.
debug
(
"spuid所有的为:{}"
,
supids
);
log
.
debug
(
"spuid所有的为:{}"
,
supids
);
int
index
=
0
;
int
index
=
0
;
//sb1 为 第一页的 spuid
StringBuffer
sb1
=
new
StringBuffer
();
StringBuffer
sb1
=
new
StringBuffer
();
for
(
String
ss:
supids
.
split
(
","
)){
for
(
String
ss:
supids
.
split
(
","
)){
if
(
index
==
0
){
if
(
index
==
0
){
...
@@ -794,11 +797,11 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -794,11 +797,11 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
//找到对应的spuid
//找到对应的spuid
int
start
=
page
*
pageSize
;
int
start
=
page
*
pageSize
;
int
end
=(
page
+
1
)*
pageSize
;
int
end
=(
page
+
1
)*
pageSize
;
if
(
end
<
spuidss
.
length
){
if
(
end
>
spuidss
.
length
){
end
=
spuidss
.
length
;
end
=
spuidss
.
length
;
}
}
ArrayList
<
GoblinGoodsInfoVo
>
goblinGoodsInfoVoArrayList
=
ObjectUtil
.
getGoblinGoodsInfoVos
();
ArrayList
<
GoblinGoodsInfoVo
>
goblinGoodsInfoVoArrayList
=
ObjectUtil
.
getGoblinGoodsInfoVos
();
for
(
int
i
=
0
;
i
<
=
end
;
i
++){
for
(
int
i
=
0
;
i
<
end
;
i
++){
if
(
i
>=
start
){
if
(
i
>=
start
){
GoblinGoodsInfoVo
goblinGoodsInfoVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
spuidss
[
i
]);
GoblinGoodsInfoVo
goblinGoodsInfoVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
spuidss
[
i
]);
goblinGoodsInfoVoArrayList
.
add
(
goblinGoodsInfoVo
);
goblinGoodsInfoVoArrayList
.
add
(
goblinGoodsInfoVo
);
...
...
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