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
6ae6b6d2
Commit
6ae6b6d2
authored
Dec 14, 2023
by
xty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/12/14
parent
99a74f29
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
24 deletions
+20
-24
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoStudentController.java
+3
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoTeacherController.java
+1
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoStudentMapper.java
+1
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoTeacherMapper.java
+1
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoStudentService.java
+1
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoTeacherService.java
+1
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoStudentImpl.java
+3
-3
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoTeacherImpl.java
+3
-3
smart-campus/src/main/resources/mapper/fudao/FudaoStudentMapper.xml
+3
-6
smart-campus/src/main/resources/mapper/fudao/FudaoTeacherMapper.xml
+3
-6
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoStudentController.java
View file @
6ae6b6d2
...
...
@@ -49,7 +49,7 @@ public class FudaoStudentController extends BaseController {
//删除
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
){
return
toAjax
(
fudaoStudentService
.
delete
(
ids
));
return
toAjax
(
fudaoStudentService
.
delete
ids
(
ids
));
}
//修改
...
...
@@ -58,6 +58,7 @@ public class FudaoStudentController extends BaseController {
return
toAjax
(
fudaoStudentService
.
updatefudao
(
fudaoStudent
));
}
//导出
@PostMapping
(
"/export/{ids}"
)
public
void
export
(
HttpServletResponse
response
,
@PathVariable
(
"ids"
)
List
<
Integer
>
ids
)
{
...
...
@@ -66,6 +67,7 @@ public class FudaoStudentController extends BaseController {
util
.
exportExcel
(
response
,
list
,
"辅导学生获奖"
);
}
//审核
@PutMapping
(
"/submit"
)
public
AjaxResult
submit
(
@RequestBody
FudaoStudent
fudaoStudent
)
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoTeacherController.java
View file @
6ae6b6d2
...
...
@@ -47,7 +47,7 @@ public class FudaoTeacherController extends BaseController {
//删除
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
){
return
toAjax
(
fudaoTeacherService
.
delete
(
ids
));
return
toAjax
(
fudaoTeacherService
.
delete
ids
(
ids
));
}
//修改
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoStudentMapper.java
View file @
6ae6b6d2
...
...
@@ -13,7 +13,7 @@ public interface FudaoStudentMapper extends BaseMapper<FudaoStudent> {
public
int
add
(
FudaoStudent
fudaoStudent
);
public
int
deleteid
(
Long
[]
ids
);
public
int
deleteid
s
(
Long
[]
ids
);
public
int
updatefudao
(
FudaoStudent
fudaoStudent
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoTeacherMapper.java
View file @
6ae6b6d2
...
...
@@ -13,7 +13,7 @@ public interface FudaoTeacherMapper extends BaseMapper<FudaoTeacher> {
public
int
add
(
FudaoTeacher
fudaoTeacher
);
public
int
deleteid
(
Long
[]
ids
);
public
int
deleteid
s
(
Long
[]
ids
);
public
int
updatefudao
(
FudaoTeacher
fudaoTeacher
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoStudentService.java
View file @
6ae6b6d2
...
...
@@ -16,7 +16,7 @@ public interface FudaoStudentService extends IService<FudaoStudent> {
public
int
insert
(
FudaoStudent
fudaoStudent
);
public
int
delete
(
Long
[]
ids
);
public
int
delete
ids
(
Long
[]
ids
);
public
int
updatefudao
(
FudaoStudent
fudaoStudent
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoTeacherService.java
View file @
6ae6b6d2
...
...
@@ -14,7 +14,7 @@ public interface FudaoTeacherService extends IService<FudaoTeacher> {
public
int
insert
(
FudaoTeacher
fudaoTeacher
);
//删除
public
int
delete
(
Long
[]
ids
);
public
int
delete
ids
(
Long
[]
ids
);
//修改
public
int
updatefudao
(
FudaoTeacher
fudaoTeacher
);
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoStudentImpl.java
View file @
6ae6b6d2
...
...
@@ -41,11 +41,11 @@ public class FudaoStudentImpl extends ServiceImpl<FudaoStudentMapper,FudaoStuden
}
@Override
public
int
delete
(
Long
[]
ids
)
{
fudaoStudentMapper
.
deleteid
(
ids
);
return
delete
(
ids
);
public
int
deleteids
(
Long
[]
ids
)
{
return
fudaoStudentMapper
.
deleteids
(
ids
);
}
@Override
public
int
updatefudao
(
FudaoStudent
fudaoStudent
)
{
fudaoStudent
.
setUpdateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getUserName
());
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoTeacherImpl.java
View file @
6ae6b6d2
...
...
@@ -41,11 +41,11 @@ public class FudaoTeacherImpl extends ServiceImpl<FudaoTeacherMapper, FudaoTeach
}
@Override
public
int
delete
(
Long
[]
ids
)
{
fudaoTeacherMapper
.
deleteid
(
ids
);
return
delete
(
ids
);
public
int
deleteids
(
Long
[]
ids
)
{
return
fudaoTeacherMapper
.
deleteids
(
ids
);
}
@Override
public
int
updatefudao
(
FudaoTeacher
fudaoTeacher
)
{
fudaoTeacher
.
setUpdateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getUserName
());
...
...
smart-campus/src/main/resources/mapper/fudao/FudaoStudentMapper.xml
View file @
6ae6b6d2
...
...
@@ -94,16 +94,13 @@
</trim>
</insert>
<delete
id=
"delete"
parameterType=
"Long"
>
delete from school_xtutor_student_award where id = #{id}
</delete>
<
delete
id=
"delete
"
parameterType=
"String"
>
delete from school_xtutor_student_award
where id in
<
update
id=
"deleteids
"
parameterType=
"String"
>
update school_xtutor_student_award set del_flag = '1'
where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</
dele
te>
</
upda
te>
<update
id=
"updatefudao"
parameterType=
"FudaoTeacher"
>
...
...
smart-campus/src/main/resources/mapper/fudao/FudaoTeacherMapper.xml
View file @
6ae6b6d2
...
...
@@ -93,16 +93,13 @@
</trim>
</insert>
<delete
id=
"delete"
parameterType=
"Long"
>
delete from school_xtutor_award where id = #{id}
</delete>
<
delete
id=
"delete
"
parameterType=
"String"
>
delete from school_xtutor_award
where id in
<
update
id=
"deleteids
"
parameterType=
"String"
>
update school_xtutor_award set del_flag = '1'
where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</
dele
te>
</
upda
te>
<update
id=
"updatefudao"
parameterType=
"FudaoTeacher"
>
update school_xtutor_award
...
...
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