Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
daaf96e8
Commit
daaf96e8
authored
Jul 03, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关注商品列表查询2
parent
9ffcfcf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
...h/wx/impl/distribution/SpecialPerformanceServiceImpl.java
+15
-10
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
View file @
daaf96e8
...
@@ -292,13 +292,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
...
@@ -292,13 +292,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
.
collect
(
Collectors
.
toMap
(
SpecialPerformanceItemFollow:
:
getItemId
,
Function
.
identity
(),
(
k1
,
k2
)
->
k2
));
.
collect
(
Collectors
.
toMap
(
SpecialPerformanceItemFollow:
:
getItemId
,
Function
.
identity
(),
(
k1
,
k2
)
->
k2
));
SpecialPerformanceConfigRequestDto
specialPerformanceConfigRequestDto
=
new
SpecialPerformanceConfigRequestDto
();
SpecialPerformanceConfigRequestDto
specialPerformanceConfigRequestDto
=
new
SpecialPerformanceConfigRequestDto
();
if
(
dto
.
getSearchType
()
!=
null
&&
dto
.
getSearchType
()
==
1
)
{
if
(!
CollectionUtils
.
isEmpty
(
followItemList
))
{
specialPerformanceConfigRequestDto
.
setItemIdList
(
followItemList
);
}
else
{
return
Result
.
failed
(
"没有关注商品"
);
}
}
//判断是否有查询条件
//判断是否有查询条件
if
(
StringUtils
.
hasLength
(
dto
.
getSearchParam
()))
{
if
(
StringUtils
.
hasLength
(
dto
.
getSearchParam
()))
{
...
@@ -333,8 +327,17 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
...
@@ -333,8 +327,17 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
if
(!
CollectionUtils
.
isEmpty
(
filterItemIdList
))
{
if
(!
CollectionUtils
.
isEmpty
(
filterItemIdList
))
{
specialPerformanceConfigRequestDto
.
setFilterItemIdList
(
filterItemIdList
);
specialPerformanceConfigRequestDto
.
setFilterItemIdList
(
filterItemIdList
);
}
}
List
<
SpecialPerformanceConfig
>
list
=
specialPerformanceConfigDao
.
findList
(
specialPerformanceConfigRequestDto
);
List
<
SpecialPerformanceConfig
>
list
=
new
ArrayList
<>();
PageInfo
<
SpecialPerformanceConfig
>
pageInfo
=
new
PageInfo
(
list
);
PageInfo
<
SpecialPerformanceConfig
>
pageInfo
=
null
;
if
(
dto
.
getSearchType
()
!=
null
&&
dto
.
getSearchType
()
==
1
)
{
if
(!
CollectionUtils
.
isEmpty
(
followItemList
))
{
specialPerformanceConfigRequestDto
.
setItemIdList
(
followItemList
);
list
=
specialPerformanceConfigDao
.
findList
(
specialPerformanceConfigRequestDto
);
pageInfo
=
new
PageInfo
(
list
);
}
else
{
resultMap
.
put
(
"dataList"
,
null
);
}
}
resultMap
.
put
(
"backgroundImage"
,
specialPerformance
.
getBackgroundImage
());
resultMap
.
put
(
"backgroundImage"
,
specialPerformance
.
getBackgroundImage
());
//商品总数
//商品总数
...
@@ -416,7 +419,9 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
...
@@ -416,7 +419,9 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
}
}
supplierItemVos
.
add
(
supplierItemVo
);
supplierItemVos
.
add
(
supplierItemVo
);
}
}
resultMap
.
put
(
"dataList"
,
PageSearchResult
.
of
(
pageInfo
,
supplierItemVos
));
if
(!
resultMap
.
containsKey
(
"dataList"
))
{
resultMap
.
put
(
"dataList"
,
PageSearchResult
.
of
(
pageInfo
,
supplierItemVos
));
}
resultMap
.
put
(
"startTime"
,
specialPerformance
.
getStartTime
());
resultMap
.
put
(
"startTime"
,
specialPerformance
.
getStartTime
());
resultMap
.
put
(
"endTime"
,
specialPerformance
.
getEndTime
());
resultMap
.
put
(
"endTime"
,
specialPerformance
.
getEndTime
());
resultMap
.
put
(
"title"
,
specialPerformance
.
getTitle
());
resultMap
.
put
(
"title"
,
specialPerformance
.
getTitle
());
...
...
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