Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
37c25954
Commit
37c25954
authored
Nov 25, 2025
by
wangxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页滚动提示
parent
a7237540
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
166 additions
and
0 deletions
+166
-0
cloud-site-api/src/main/java/com/yizhi/site/application/feign/PublicationManageFeignClients.java
+7
-0
cloud-site-api/src/main/java/com/yizhi/site/application/feign/api/SystemMailboxClients.java
+10
-0
cloud-site-api/src/main/java/com/yizhi/site/application/vo/domain/SystemMailboxParamVo.java
+2
-0
cloud-site-api/src/main/java/com/yizhi/site/application/vo/domain/SystemMailboxVo.java
+3
-0
cloud-site-service/src/main/java/com/yizhi/site/application/controller/PublicationManageController.java
+9
-0
cloud-site-service/src/main/java/com/yizhi/site/application/controller/api/SystemMailboxController.java
+12
-0
cloud-site-service/src/main/java/com/yizhi/site/application/domain/SystemMailbox.java
+4
-0
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/PublicationMapper.java
+8
-0
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/SystemMailboxMapper.java
+6
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/PublicationService.java
+5
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/SystemMailboxService.java
+9
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/PublicationServiceImpl.java
+25
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/SystemMailboxServiceImpl.java
+33
-0
cloud-site-service/src/main/resources/mapper/PublicationMapper.xml
+9
-0
cloud-site-service/src/main/resources/mapper/SystemMailboxMapper.xml
+24
-0
No files found.
cloud-site-api/src/main/java/com/yizhi/site/application/feign/PublicationManageFeignClients.java
View file @
37c25954
...
...
@@ -93,4 +93,11 @@ public interface PublicationManageFeignClients {
*/
@PostMapping
(
value
=
"/site/classify/publication/updateContent"
)
public
boolean
updateContent
(
@RequestBody
PublicationVo
publicationVo
);
/**
* 滚动提示接口:投稿管理(4天内创建且待审核的数据)
* @return
*/
@GetMapping
(
"/site/classify/publication/selectContributionManagementForScroll"
)
List
<
PublicationVo
>
selectContributionManagementForScroll
();
}
cloud-site-api/src/main/java/com/yizhi/site/application/feign/api/SystemMailboxClients.java
View file @
37c25954
...
...
@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
/**
* com.yizhi.site.application.feign.api
*
...
...
@@ -36,4 +38,11 @@ public interface SystemMailboxClients {
@GetMapping
(
"/systemMailbox/hasPermission"
)
Boolean
hasPermission
();
/**
*
* @return
*/
@GetMapping
(
"/systemMailbox/selectMailboxManagementForScroll"
)
List
<
SystemMailboxParamVo
>
selectMailboxManagementForScroll
();
}
\ No newline at end of file
cloud-site-api/src/main/java/com/yizhi/site/application/vo/domain/SystemMailboxParamVo.java
View file @
37c25954
...
...
@@ -21,6 +21,8 @@ public class SystemMailboxParamVo {
@ApiModelProperty
(
value
=
"信箱标题"
)
private
String
fileName
;
@ApiModelProperty
(
value
=
"联系人"
)
private
String
contactName
;
@ApiModelProperty
(
value
=
"信箱类型 1: 纪检 2: 书记"
)
private
Integer
type
;
...
...
cloud-site-api/src/main/java/com/yizhi/site/application/vo/domain/SystemMailboxVo.java
View file @
37c25954
...
...
@@ -82,6 +82,9 @@ public class SystemMailboxVo {
@ApiModelProperty
(
value
=
"视频链接地址"
)
private
String
ossVideoUrl
;
@ApiModelProperty
(
value
=
"是否查看:0未查看,1已查看"
)
private
Integer
isViewed
;
protected
Serializable
pkVal
()
{
return
this
.
id
;
}
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/controller/PublicationManageController.java
View file @
37c25954
...
...
@@ -133,4 +133,13 @@ public class PublicationManageController {
}
return
this
.
publicationService
.
updateById
(
publication
);
}
/**
* 滚动提示接口:投稿管理(4天内创建且待审核的数据)
* @return
*/
@GetMapping
(
"/selectContributionManagementForScroll"
)
public
List
<
Publication
>
selectContributionManagementForScroll
()
{
return
publicationService
.
selectContributionManagementForScroll
();
}
}
cloud-site-service/src/main/java/com/yizhi/site/application/controller/api/SystemMailboxController.java
View file @
37c25954
...
...
@@ -9,6 +9,8 @@ import com.yizhi.site.application.vo.domain.SystemMailboxVo;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* com.yizhi.site.application.controller.api
*
...
...
@@ -51,4 +53,13 @@ public class SystemMailboxController {
public
Boolean
hasPermission
(){
return
systemMailboxService
.
hasPermission
();
}
/**
* 滚动提示接口:信箱管理(4天内创建且未查看的数据)
* @return
*/
@GetMapping
(
"selectMailboxManagementForScroll"
)
public
List
<
SystemMailboxParamVo
>
selectMailboxManagementForScroll
(){
return
systemMailboxService
.
selectMailboxManagementForScroll
();
}
}
\ No newline at end of file
cloud-site-service/src/main/java/com/yizhi/site/application/domain/SystemMailbox.java
View file @
37c25954
...
...
@@ -112,6 +112,10 @@ public class SystemMailbox {
@TableField
(
"oss_video_url"
)
private
String
ossVideoUrl
;
@ApiModelProperty
(
value
=
"是否查看:0未查看,1已查看"
)
@TableField
(
"is_viewed"
)
private
Integer
isViewed
;
@ApiModelProperty
(
value
=
"1:已删除,0未删除"
)
@TableLogic
private
Integer
deleted
;
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/PublicationMapper.java
View file @
37c25954
...
...
@@ -92,4 +92,11 @@ public interface PublicationMapper extends BaseMapper<Publication> {
List
<
PublicationStudentVO
>
publicationIndexTopList
(
@Param
(
"siteId"
)
Long
siteId
);
List
<
Publication
>
publicationFirstList
(
PublicationParamVO
publicationParamVO
,
Page
<
Publication
>
page
);
/**
* 滚动提示接口:投稿管理(4天内创建且待审核的数据)
* @param siteId
* @return
*/
List
<
Publication
>
selectContributionManagementForScroll
(
@Param
(
"siteId"
)
Long
siteId
);
}
\ No newline at end of file
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/SystemMailboxMapper.java
View file @
37c25954
...
...
@@ -19,4 +19,10 @@ public interface SystemMailboxMapper extends BaseMapper<SystemMailbox> {
int
selectMyCount
(
@Param
(
"accountId"
)
Long
accountId
,
@Param
(
"roleType"
)
Integer
roleType
,
@Param
(
"type"
)
Integer
type
);
/**
* 滚动提示接口:信箱管理(4天内创建且未查看的数据)
* @param siteId
* @return
*/
List
<
SystemMailboxParamVo
>
selectMailboxManagementForScroll
(
@Param
(
"accountId"
)
Long
accountId
,
@Param
(
"roleType"
)
Integer
roleType
);
}
cloud-site-service/src/main/java/com/yizhi/site/application/service/PublicationService.java
View file @
37c25954
...
...
@@ -97,4 +97,9 @@ public interface PublicationService extends IService<Publication> {
Page
<
Publication
>
publicationReleaseList
(
PublicationParamReleaseVO
vo
);
/**
* 滚动提示接口:投稿管理(4天内创建且待审核的数据)
* @return
*/
List
<
Publication
>
selectContributionManagementForScroll
();
}
cloud-site-service/src/main/java/com/yizhi/site/application/service/SystemMailboxService.java
View file @
37c25954
...
...
@@ -7,6 +7,8 @@ import com.yizhi.site.application.vo.domain.SystemMailboxParamVo;
import
com.yizhi.site.application.vo.domain.SystemMailboxVo
;
import
com.yizhi.site.application.vo.domain.SystemMailboxConditionVo
;
import
java.util.List
;
/**
* com.yizhi.site.application.service
*
...
...
@@ -26,4 +28,10 @@ public interface SystemMailboxService extends IService<SystemMailbox> {
Page
<
SystemMailboxParamVo
>
selectMyPage
(
Integer
pageNo
,
Integer
pageSize
,
Integer
type
);
Boolean
hasPermission
();
/**
* 滚动提示接口:信箱管理(4天内创建且未查看的数据)
* @return
*/
List
<
SystemMailboxParamVo
>
selectMailboxManagementForScroll
();
}
\ No newline at end of file
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/PublicationServiceImpl.java
View file @
37c25954
...
...
@@ -554,4 +554,29 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
Long
t
=
redisTemplate
.
getExpire
(
key
);
return
ObjectUtil
.
isEmpty
(
t
)
?
valueOperations
.
increment
(
key
)
:
valueOperations
.
increment
(
key
,
t
);
}
@Override
public
List
<
Publication
>
selectContributionManagementForScroll
()
{
RequestContext
context
=
ContextHolder
.
get
();
List
<
Publication
>
list
=
this
.
baseMapper
.
selectContributionManagementForScroll
(
context
.
getSiteId
());
if
(
list
.
size
()
>
0
&&
list
!=
null
)
{
for
(
Publication
info
:
list
)
{
if
(
info
.
getTypeOne
()
!=
null
&&
info
.
getTypeOne
()
==
0
){
info
.
setTypeOneName
(
"其他"
);
}
if
(
info
.
getTypeOne
()
!=
null
&&
info
.
getTypeOne
()
!=
0
)
{
info
.
setTypeOneName
(
findNameById
(
info
.
getTypeOne
()));
}
if
(
info
.
getTypeTwo
()
!=
null
&&
info
.
getTypeTwo
()
!=
0
)
{
info
.
setTypeTwoName
(
findNameById
(
info
.
getTypeTwo
()));
}
if
(
info
.
getTypeThree
()
!=
null
&&
info
.
getTypeThree
()
!=
0
)
{
info
.
setTypeThreeName
(
findNameById
(
info
.
getTypeThree
()));
}
}
}
return
list
;
}
}
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/SystemMailboxServiceImpl.java
View file @
37c25954
...
...
@@ -136,6 +136,13 @@ public class SystemMailboxServiceImpl extends ServiceImpl<SystemMailboxMapper,Sy
if
(
systemMailBox
==
null
){
return
null
;
}
// 更新状态为已查看
if
(
systemMailBox
.
getIsViewed
()
==
null
||
systemMailBox
.
getIsViewed
()
==
0
)
{
systemMailBox
.
setIsViewed
(
1
);
this
.
updateById
(
systemMailBox
);
}
SystemMailboxVo
systemMailBoxVo
=
new
SystemMailboxVo
();
BeanUtils
.
copyProperties
(
systemMailBox
,
systemMailBoxVo
);
return
systemMailBoxVo
;
...
...
@@ -183,4 +190,29 @@ public class SystemMailboxServiceImpl extends ServiceImpl<SystemMailboxMapper,Sy
//
return
roleType
!=
null
;
}
@Override
public
List
<
SystemMailboxParamVo
>
selectMailboxManagementForScroll
()
{
Long
accountId
=
ContextHolder
.
get
().
getAccountId
();
List
<
Long
>
roleIds
=
myItemConfigmapper
.
getJjXxRoleCount
(
accountId
);
Integer
roleType
=
null
;
//信箱类型 1: 纪检 2: 书记,null没权限看 纪检和书记,只能看自己的
if
(
CollectionUtil
.
isNotEmpty
(
roleIds
)){
if
(
roleIds
.
contains
(
1877604582759526400L
)&&!
roleIds
.
contains
(
1877605828904022016L
)){
roleType
=
2
;
}
if
(!
roleIds
.
contains
(
1877604582759526400L
)&&
roleIds
.
contains
(
1877605828904022016L
)){
roleType
=
1
;
}
}
accountId
=
null
;
if
(
CollectionUtil
.
isNotEmpty
(
roleIds
)){
if
(!
ContextHolder
.
get
().
isAdmin
()&&!
roleIds
.
contains
(
1877604582759526400L
)&&!
roleIds
.
contains
(
1877605828904022016L
)){
accountId
=
ContextHolder
.
get
().
getAccountId
();
}
}
// 调用Mapper中的新方法获取4天内创建且未查看的数据
return
this
.
baseMapper
.
selectMailboxManagementForScroll
(
accountId
,
roleType
);
}
}
\ No newline at end of file
cloud-site-service/src/main/resources/mapper/PublicationMapper.xml
View file @
37c25954
...
...
@@ -440,4 +440,12 @@
<select
id=
"getNumberByCode"
resultType=
"java.lang.String"
>
SELECT value FROM cloud_system.dictionary where code=#{code}
</select>
<!-- 滚动提示接口:投稿管理(4天内创建且待审核的数据) -->
<select
id=
"selectContributionManagementForScroll"
resultType=
"com.yizhi.site.application.domain.Publication"
>
select a.* from publication a where 1=1 and a.site_id=#{siteId}
<!-- 4天内创建的数据过滤 -->
and a.state = 2
order by a.submit_time DESC
</select>
</mapper>
\ No newline at end of file
cloud-site-service/src/main/resources/mapper/SystemMailboxMapper.xml
View file @
37c25954
...
...
@@ -85,4 +85,27 @@
</if>
) a
</select>
<!-- 滚动提示接口:信箱管理(4天内创建且未查看的数据) -->
<select
id=
"selectMailboxManagementForScroll"
resultType=
"com.yizhi.site.application.vo.domain.SystemMailboxParamVo"
>
select
id,
file_name,
submit_time,
`type`,contact_name
from
system_mailbox
where
deleted = 0
and is_viewed = 0
<if
test=
"roleType != null"
>
and type=#{roleType}
</if>
<if
test=
"roleType == null and accountId!=null"
>
and create_by_id = #{accountId}
</if>
order by submit_time desc
</select>
</mapper>
\ No newline at end of file
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