Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
e240e151
Commit
e240e151
authored
Dec 15, 2022
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-content-pro' into 'master'
过滤无素材栏目 See merge request
!642
parents
27ce02c2
42571bd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
ContentMaterialController.java
...age/web/controller/content/ContentMaterialController.java
+11
-2
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentMaterialController.java
View file @
e240e151
...
...
@@ -8,6 +8,7 @@ import com.gic.commons.webapi.reponse.RestResponse;
import
com.gic.content.api.dto.column.ContentColumnListDTO
;
import
com.gic.content.api.dto.material.ContentMaterialFrontDTO
;
import
com.gic.content.api.dto.material.ContentMaterialShareInfoDTO
;
import
com.gic.content.api.enums.ColumnEnum
;
import
com.gic.content.api.qdto.material.ContentMaterialPageFrontQDTO
;
import
com.gic.content.api.qdto.material.ContentMaterialShareQDTO
;
import
com.gic.content.api.service.ContentColumnApiService
;
...
...
@@ -68,8 +69,16 @@ public class ContentMaterialController {
* @return
*/
@RequestMapping
(
path
=
"/column-list"
)
public
RestResponse
<
List
<
ContentColumnInfoVO
>>
queryContentColumn
(
String
enterpriseId
){
ServiceResponse
<
List
<
ContentColumnListDTO
>>
serviceResponse
=
contentColumnApiService
.
listColumn
(
enterpriseId
,
1
);
public
RestResponse
<
List
<
ContentColumnInfoVO
>>
queryContentColumn
(
String
enterpriseId
,
String
storeId
,
String
wxEnterpriseId
,
String
clerkId
){
List
<
String
>
storeIdList
=
new
ArrayList
<>();
if
(
StringUtils
.
isBlank
(
storeId
)){
// 区经 获取管辖的权限
List
<
String
>
storeIds
=
this
.
queryClerkStoreIds
(
clerkId
,
wxEnterpriseId
);
storeIdList
.
addAll
(
storeIds
);
}
else
{
storeIdList
.
add
(
storeId
);
}
ServiceResponse
<
List
<
ContentColumnListDTO
>>
serviceResponse
=
contentColumnApiService
.
listColumnFront
(
enterpriseId
,
ColumnEnum
.
MATERIAL
.
value
,
storeIdList
);
if
(!
serviceResponse
.
isSuccess
()
||
CollectionUtils
.
isEmpty
(
serviceResponse
.
getResult
())){
return
RestResponse
.
successResult
(
Collections
.
emptyList
());
}
...
...
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