Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
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
wangqi
dd_school
Commits
10837540
Commit
10837540
authored
Aug 22, 2023
by
baochunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#G:通知组修改路径
parent
022470b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/notificationGroup/SchoolNotificationGroupController.java
+12
-5
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/notificationGroup/SchoolNotificationGroupController.java
View file @
10837540
...
...
@@ -59,7 +59,7 @@ public class SchoolNotificationGroupController extends BaseController {
* @param schoolNotificationGroup 查询实体
* @return 所有数据
*/
@GetMapping
(
"list"
)
@GetMapping
(
"
/
list"
)
public
TableDataInfo
selectAll
(
SchoolNotificationGroup
schoolNotificationGroup
)
{
startPage
();
QueryWrapper
<
SchoolNotificationGroup
>
schooWrapper
=
new
QueryWrapper
<>(
...
...
@@ -73,8 +73,9 @@ public class SchoolNotificationGroupController extends BaseController {
* 根据分组id查询人员信息
*/
@GetMapping
(
"getUserList/{notificationId}"
)
public
AjaxResult
selectOne
(
@PathVariable
(
"notificationId"
)
Long
notificationId
)
{
@GetMapping
(
"/getUserList/{notificationId}"
)
public
TableDataInfo
selectOne
(
@PathVariable
(
"notificationId"
)
Long
notificationId
)
{
startPage
();
LambdaQueryWrapper
<
SchoolNotificationUser
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolNotificationUser:
:
getNotificationId
,
notificationId
);
List
<
SchoolNotificationUser
>
list
=
this
.
schoolNotificationUserService
.
list
(
lqw
);
...
...
@@ -83,7 +84,7 @@ public class SchoolNotificationGroupController extends BaseController {
SysUser
sysUser
=
sysUserService
.
selectUserById
(
data
.
getUserId
());
userList
.
add
(
sysUser
);
});
return
AjaxResult
.
success
(
userList
);
return
getDataTable
(
userList
);
}
/**
...
...
@@ -92,7 +93,7 @@ public class SchoolNotificationGroupController extends BaseController {
* @param id 主键
* @return 单条数据
*/
@GetMapping
(
"selectOne/{id}"
)
@GetMapping
(
"
/
selectOne/{id}"
)
public
AjaxResult
selectOne
(
@PathVariable
Serializable
id
)
{
return
AjaxResult
.
success
(
this
.
schoolNotificationGroupService
.
getById
(
id
));
}
...
...
@@ -159,6 +160,12 @@ public class SchoolNotificationGroupController extends BaseController {
*/
@DeleteMapping
(
"/deletes"
)
public
AjaxResult
delete
(
@RequestParam
(
"idList"
)
List
<
Long
>
idList
)
{
for
(
Long
id
:
idList
){
//1.删除相关人员
LambdaQueryWrapper
<
SchoolNotificationUser
>
user
=
new
LambdaQueryWrapper
<>();
user
.
eq
(
SchoolNotificationUser:
:
getNotificationId
,
id
);
schoolNotificationUserService
.
remove
(
user
);
}
return
AjaxResult
.
success
(
this
.
schoolNotificationGroupService
.
removeByIds
(
idList
));
}
}
...
...
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