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
7f19b580
Commit
7f19b580
authored
Nov 21, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 素材列表支持 视频、最热同时排序
parent
98310460
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
+30
-3
pom.xml
haoban-manage3-wx/pom.xml
+6
-0
ContentMaterialController.java
...age/web/controller/content/ContentMaterialController.java
+9
-2
ContentMaterialQO.java
...m/gic/haoban/manage/web/qo/content/ContentMaterialQO.java
+14
-1
dubbo-haoban-manage-wx.xml
...ge3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
+1
-0
No files found.
haoban-manage3-wx/pom.xml
View file @
7f19b580
...
...
@@ -209,6 +209,12 @@
<artifactId>
gic-content-api
</artifactId>
<version>
${gic-content-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
haoban-app-aggregation-api
</artifactId>
<version>
${haoban-app-aggregation-api}
</version>
</dependency>
</dependencies>
<build>
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentMaterialController.java
View file @
7f19b580
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
content
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
...
...
@@ -12,6 +13,7 @@ import com.gic.content.api.qdto.material.ContentMaterialShareQDTO;
import
com.gic.content.api.service.ContentColumnApiService
;
import
com.gic.content.api.service.ContentMaterialApiService
;
import
com.gic.content.api.service.ContentMaterialShareApiService
;
import
com.gic.haoban.app.aggregation.api.service.SettingApiService
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.web.qo.content.ContentMaterialQO
;
...
...
@@ -54,6 +56,8 @@ public class ContentMaterialController {
@Autowired
private
StaffApiService
staffApiService
;
@Autowired
private
SettingApiService
settingApiService
;
/**
...
...
@@ -81,6 +85,10 @@ public class ContentMaterialController {
@RequestMapping
(
path
=
"/content-material-list"
)
public
RestResponse
<
Page
<
ContentMaterialInfoVO
>>
queryContentMaterialList
(
@RequestBody
ContentMaterialQO
contentMaterialQO
){
if
(
StringUtils
.
isBlank
(
contentMaterialQO
.
getEnterpriseId
())){
log
.
info
(
"企业id未传 {}"
,
JSON
.
toJSONString
(
contentMaterialQO
));
return
RestResponse
.
failure
(
"-777"
,
"参数异常"
);
}
ContentMaterialPageFrontQDTO
contentMaterialPageFrontQDTO
=
new
ContentMaterialPageFrontQDTO
();
contentMaterialPageFrontQDTO
.
setEnterpriseId
(
contentMaterialQO
.
getEnterpriseId
());
contentMaterialPageFrontQDTO
.
setKeyWord
(
contentMaterialQO
.
getSearch
());
...
...
@@ -88,8 +96,6 @@ public class ContentMaterialController {
if
(
contentMaterialQO
.
getSortType
()
!=
null
){
if
(
contentMaterialQO
.
getSortType
()
==
2
){
contentMaterialPageFrontQDTO
.
setHotFlag
(
1
);
}
else
if
(
contentMaterialQO
.
getSortType
()
==
3
){
contentMaterialPageFrontQDTO
.
setMaterialType
(
4
);
}
}
// if (StringUtils.isBlank(contentMaterialQO.getStoreId())){
...
...
@@ -186,6 +192,7 @@ public class ContentMaterialController {
}
if
(
storeIds
.
size
()
==
1
&&
StringUtils
.
equals
(
storeIds
.
get
(
0
),
"-1"
)){
// 全部门店权限
log
.
info
(
"区经有全部门店权限 {}"
,
clerkId
);
return
Collections
.
emptyList
();
}
return
storeIds
;
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/content/ContentMaterialQO.java
View file @
7f19b580
...
...
@@ -32,11 +32,16 @@ public class ContentMaterialQO extends PageQo {
private
String
clerkId
;
/**
* 1 最新; 2 最热;
3 视频
* 1 最新; 2 最热;
*/
private
Integer
sortType
;
/**
* 素材类型1图文2纯文字3纯图片4视频
*/
private
Integer
materialType
;
/**
* 素材搜索
*/
private
String
search
;
...
...
@@ -102,4 +107,12 @@ public class ContentMaterialQO extends PageQo {
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
Integer
getMaterialType
()
{
return
materialType
;
}
public
void
setMaterialType
(
Integer
materialType
)
{
this
.
materialType
=
materialType
;
}
}
haoban-manage3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
View file @
7f19b580
...
...
@@ -115,5 +115,6 @@
<dubbo:reference
interface=
"com.gic.content.api.service.ContentColumnApiService"
id=
"contentColumnApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentMaterialApiService"
id=
"contentMaterialApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentMaterialShareApiService"
id=
"contentMaterialShareApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
id=
"settingApiService"
interface=
"com.gic.haoban.app.aggregation.api.service.SettingApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
</beans>
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