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
0073cb7c
Commit
0073cb7c
authored
May 08, 2025
by
梅存智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的信箱问题修复
parent
02eb2a54
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/SystemMailboxMapper.java
+2
-2
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/SystemMailboxServiceImpl.java
+13
-2
cloud-site-service/src/main/resources/mapper/SystemMailboxMapper.xml
+10
-0
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/SystemMailboxMapper.java
View file @
0073cb7c
...
@@ -15,8 +15,8 @@ import java.util.List;
...
@@ -15,8 +15,8 @@ import java.util.List;
*/
*/
public
interface
SystemMailboxMapper
extends
BaseMapper
<
SystemMailbox
>
{
public
interface
SystemMailboxMapper
extends
BaseMapper
<
SystemMailbox
>
{
List
<
SystemMailboxParamVo
>
selectMyPage
(
@Param
(
"accountId"
)
Long
accountId
,
@Param
(
"pageNo"
)
Integer
pageNo
,
@Param
(
"pageSize"
)
Integer
pageSize
);
List
<
SystemMailboxParamVo
>
selectMyPage
(
@Param
(
"accountId"
)
Long
accountId
,
@Param
(
"
type"
)
Integer
type
,
@Param
(
"
pageNo"
)
Integer
pageNo
,
@Param
(
"pageSize"
)
Integer
pageSize
);
int
selectMyCount
(
@Param
(
"accountId"
)
Long
accountId
);
int
selectMyCount
(
@Param
(
"accountId"
)
Long
accountId
,
@Param
(
"type"
)
Integer
type
);
}
}
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/SystemMailboxServiceImpl.java
View file @
0073cb7c
...
@@ -150,9 +150,20 @@ public class SystemMailboxServiceImpl extends ServiceImpl<SystemMailboxMapper,Sy
...
@@ -150,9 +150,20 @@ public class SystemMailboxServiceImpl extends ServiceImpl<SystemMailboxMapper,Sy
public
Page
<
SystemMailboxParamVo
>
selectMyPage
(
Integer
pageNo
,
Integer
pageSize
){
public
Page
<
SystemMailboxParamVo
>
selectMyPage
(
Integer
pageNo
,
Integer
pageSize
){
pageNo
=
pageSize
*
(
pageNo
-
1
);
pageNo
=
pageSize
*
(
pageNo
-
1
);
Long
accountId
=
ContextHolder
.
get
().
getAccountId
();
Long
accountId
=
ContextHolder
.
get
().
getAccountId
();
List
<
Long
>
roleIds
=
myItemConfigmapper
.
getJjXxRoleCount
(
accountId
);
Integer
type
=
null
;
//信箱类型 1: 纪检 2: 书记,null没权限看 纪检和书记,只能看自己的
if
(
CollectionUtil
.
isNotEmpty
(
roleIds
)){
if
(
roleIds
.
contains
(
1877604582759526400L
)&&!
roleIds
.
contains
(
1877605828904022016L
)){
type
=
2
;
}
if
(!
roleIds
.
contains
(
1877604582759526400L
)&&
roleIds
.
contains
(
1877605828904022016L
)){
type
=
1
;
}
}
Page
<
SystemMailboxParamVo
>
page
=
new
Page
<>(
pageNo
,
pageSize
);
Page
<
SystemMailboxParamVo
>
page
=
new
Page
<>(
pageNo
,
pageSize
);
page
.
setTotal
(
this
.
baseMapper
.
selectMyCount
(
accountId
));
page
.
setTotal
(
this
.
baseMapper
.
selectMyCount
(
accountId
,
type
));
page
.
setRecords
(
this
.
baseMapper
.
selectMyPage
(
accountId
,
pageNo
,
pageSize
));
page
.
setRecords
(
this
.
baseMapper
.
selectMyPage
(
accountId
,
type
,
pageNo
,
pageSize
));
return
page
;
return
page
;
}
}
}
}
cloud-site-service/src/main/resources/mapper/SystemMailboxMapper.xml
View file @
0073cb7c
...
@@ -18,7 +18,12 @@
...
@@ -18,7 +18,12 @@
system_mailbox
system_mailbox
where
where
deleted = 0
deleted = 0
<if
test=
"type != null"
>
and type=#{type}
</if>
<if
test=
"type == null"
>
and create_by_id = #{accountId}
and create_by_id = #{accountId}
</if>
union all
union all
select
select
id,
id,
...
@@ -47,7 +52,12 @@
...
@@ -47,7 +52,12 @@
system_mailbox
system_mailbox
where
where
deleted = 0
deleted = 0
<if
test=
"type != null"
>
and type=#{type}
</if>
<if
test=
"type == null"
>
and create_by_id = #{accountId}
and create_by_id = #{accountId}
</if>
union all
union all
select
select
id,
id,
...
...
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