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
485ed745
Commit
485ed745
authored
Nov 06, 2023
by
Cat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://49.232.152.146:6688/qangqi/dd_school
parents
183cb522
c2538ae7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
133 additions
and
16 deletions
+133
-16
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/organization/SchoolOrganizationFcController.java
+9
-9
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/teacherFiles/TeacherFilesController.java
+17
-7
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacherFiles/TeacherFilesMapper.java
+16
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacherFiles/TeacherFilesServiceImpl.java
+20
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacherFiles/ITeacherFilesService.java
+15
-0
smart-campus/src/main/resources/mapper/teacherFiles/TeacherFilesMapper.xml
+56
-0
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/organization/SchoolOrganizationFcController.java
View file @
485ed745
...
@@ -71,15 +71,15 @@ public class SchoolOrganizationFcController extends BaseController
...
@@ -71,15 +71,15 @@ public class SchoolOrganizationFcController extends BaseController
{
{
//先将file的前缀去掉
//先将file的前缀去掉
String
file
=
schoolOrganizationFc
.
getFile
();
String
file
=
schoolOrganizationFc
.
getFile
();
if
(
file
!=
null
){
//
if (file!=null){
String
str
=
""
;
//
String str ="";
String
[]
split
=
file
.
split
(
","
);
//
String[] split = file.split(",");
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
//
for (int i = 0; i < split.length; i++) {
String
substring
=
split
[
i
].
substring
(
8
,
split
[
i
].
length
());
//
String substring = split[i].substring(8, split[i].length());
str
=
str
+
","
+
substring
;
//
str = str+","+substring;
}
//
}
schoolOrganizationFc
.
setFile
(
str
.
substring
(
1
,
str
.
length
()));
//
schoolOrganizationFc.setFile(str.substring(1, str.length()));
}
//
}
return
toAjax
(
schoolOrganizationFcService
.
save
(
schoolOrganizationFc
));
return
toAjax
(
schoolOrganizationFcService
.
save
(
schoolOrganizationFc
));
}
}
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/teacherFiles/TeacherFilesController.java
View file @
485ed745
...
@@ -38,26 +38,36 @@ public class TeacherFilesController extends BaseController
...
@@ -38,26 +38,36 @@ public class TeacherFilesController extends BaseController
public
TableDataInfo
list
(
TeacherFiles
teacherFiles
)
public
TableDataInfo
list
(
TeacherFiles
teacherFiles
)
{
{
startPage
();
startPage
();
List
<
TeacherFiles
>
list
=
teacherFilesService
.
selectTeacherFilesList
(
teacherFiles
);
List
<
TeacherFiles
>
list
=
teacherFilesService
.
selectTeacherFilesList
(
teacherFiles
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
@PreAuthorize
(
"@ss.hasPermi('teacherFiles:files:list')"
)
@PreAuthorize
(
"@ss.hasPermi('teacherFiles:files:list')"
)
@GetMapping
(
"/gradeList"
)
@GetMapping
(
"/gradeList"
)
public
TableDataInfo
gradeList
(
TeacherFiles
teacherFiles
)
public
AjaxResult
gradeList
(
TeacherFiles
teacherFiles
)
{
{
AjaxResult
ajaxResult
=
new
AjaxResult
();
List
<
Long
>
gradeIds
=
teacherFilesService
.
getGradeId
(
teacherFiles
.
getGradeTeacherId
());
List
<
Long
>
gradeIds
=
teacherFilesService
.
getGradeId
(
teacherFiles
.
getGradeTeacherId
());
if
(
gradeIds
==
null
||
gradeIds
.
size
()==
0
){
if
(
gradeIds
==
null
||
gradeIds
.
size
()==
0
){
TableDataInfo
tableDataInfo
=
new
TableDataInfo
();
// TableDataInfo tableDataInfo = new TableDataInfo();
tableDataInfo
.
setCode
(
500
);
// tableDataInfo.setCode(500);
tableDataInfo
.
setMsg
(
"该用户非级部主任"
);
// tableDataInfo.setMsg("该用户非级部主任");
return
tableDataInfo
;
ajaxResult
.
put
(
"code"
,
500
);
ajaxResult
.
put
(
"msg"
,
"该用户非级部主任"
);
return
ajaxResult
;
}
}
teacherFiles
.
setGradeId
(
gradeIds
.
get
(
0
));
teacherFiles
.
setGradeId
(
gradeIds
.
get
(
0
));
startPage
();
startPage
();
List
<
TeacherFiles
>
list
=
teacherFilesService
.
selectTeacherFilesList
(
teacherFiles
);
List
<
TeacherFiles
>
list
=
teacherFilesService
.
selectTeacherFilesList
(
teacherFiles
);
return
getDataTable
(
list
);
int
yfb
=
teacherFilesService
.
countYfb
(
teacherFiles
);
int
yqr
=
teacherFilesService
.
countYqr
(
teacherFiles
);
ajaxResult
.
put
(
"code"
,
200
);
ajaxResult
.
put
(
"msg"
,
"查询成功"
);
ajaxResult
.
put
(
"rows"
,
list
);
ajaxResult
.
put
(
"total"
,
getDataTable
(
list
).
getTotal
());
ajaxResult
.
put
(
"yfb"
,
yfb
);
ajaxResult
.
put
(
"yqr"
,
yqr
);
return
ajaxResult
;
}
}
/**
/**
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacherFiles/TeacherFilesMapper.java
View file @
485ed745
...
@@ -31,6 +31,22 @@ public interface TeacherFilesMapper
...
@@ -31,6 +31,22 @@ public interface TeacherFilesMapper
public
List
<
TeacherFiles
>
selectTeacherFilesList
(
TeacherFiles
teacherFiles
);
public
List
<
TeacherFiles
>
selectTeacherFilesList
(
TeacherFiles
teacherFiles
);
/**
/**
* 统计已发布
*
* @param teacherFiles 教师档案
* @return 教师档案集合
*/
public
int
countYfb
(
TeacherFiles
teacherFiles
);
/**
* 统计已确认
*
* @param teacherFiles 教师档案
* @return 教师档案集合
*/
public
int
countYqr
(
TeacherFiles
teacherFiles
);
/**
* 新增教师档案
* 新增教师档案
*
*
* @param teacherFiles 教师档案
* @param teacherFiles 教师档案
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacherFiles/TeacherFilesServiceImpl.java
View file @
485ed745
...
@@ -93,6 +93,26 @@ public class TeacherFilesServiceImpl implements ITeacherFilesService
...
@@ -93,6 +93,26 @@ public class TeacherFilesServiceImpl implements ITeacherFilesService
return
teacherFilesMapper
.
selectTeacherFilesList
(
teacherFiles
);
return
teacherFilesMapper
.
selectTeacherFilesList
(
teacherFiles
);
}
}
/**
* 统计已发布
* @param teacherFiles 教师档案
* @return
*/
@Override
public
int
countYfb
(
TeacherFiles
teacherFiles
)
{
return
teacherFilesMapper
.
countYfb
(
teacherFiles
);
}
/**
* 统计已确认
* @param teacherFiles 教师档案
* @return
*/
@Override
public
int
countYqr
(
TeacherFiles
teacherFiles
)
{
return
teacherFilesMapper
.
countYqr
(
teacherFiles
);
}
@Override
@Override
public
List
<
TeacherFilesNotice
>
selctTeacherByUserId
(
Long
userId
,
TeacherFilesNotice
teacherFiles
)
{
public
List
<
TeacherFilesNotice
>
selctTeacherByUserId
(
Long
userId
,
TeacherFilesNotice
teacherFiles
)
{
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacherFiles/ITeacherFilesService.java
View file @
485ed745
...
@@ -30,6 +30,21 @@ public interface ITeacherFilesService
...
@@ -30,6 +30,21 @@ public interface ITeacherFilesService
* @return 教师档案集合
* @return 教师档案集合
*/
*/
public
List
<
TeacherFiles
>
selectTeacherFilesList
(
TeacherFiles
teacherFiles
);
public
List
<
TeacherFiles
>
selectTeacherFilesList
(
TeacherFiles
teacherFiles
);
/**
* 统计已发布
*
* @param teacherFiles 教师档案
* @return 教师档案集合
*/
public
int
countYfb
(
TeacherFiles
teacherFiles
);
/**
* 统计已确认
*
* @param teacherFiles 教师档案
* @return 教师档案集合
*/
public
int
countYqr
(
TeacherFiles
teacherFiles
);
public
List
<
TeacherFilesNotice
>
selctTeacherByUserId
(
Long
userId
,
TeacherFilesNotice
teacherFiles
);
public
List
<
TeacherFilesNotice
>
selctTeacherByUserId
(
Long
userId
,
TeacherFilesNotice
teacherFiles
);
public
List
<
TeacherFilesDeletRecord
>
getTeacherRocer
(
String
tId
);
public
List
<
TeacherFilesDeletRecord
>
getTeacherRocer
(
String
tId
);
...
...
smart-campus/src/main/resources/mapper/teacherFiles/TeacherFilesMapper.xml
View file @
485ed745
...
@@ -60,6 +60,62 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -60,6 +60,62 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</where>
</select>
</select>
<select
id=
"countYfb"
parameterType=
"TeacherFiles"
resultType=
"Integer"
>
select count(id) from teacher_files
<where>
state = '2'
<if
test=
"noticeId != null and noticeId != ''"
>
and notice_id = #{noticeId}
</if>
<if
test=
"filesSemester != null and filesSemester != ''"
>
and files_semester = #{filesSemester}
</if>
<if
test=
"teacherId != null "
>
and teacher_id = #{teacherId}
</if>
<if
test=
"teacherName != null and teacherName != ''"
>
and teacher_name like concat('%', #{teacherName}, '%')
</if>
<if
test=
"gradeId != null "
>
and grade_id = #{gradeId}
</if>
<if
test=
"gradeName != null and gradeName != ''"
>
and grade_name like concat('%', #{gradeName}, '%')
</if>
<if
test=
"idCard != null and idCard != ''"
>
and id_card = #{idCard}
</if>
<if
test=
"sex != null and sex != ''"
>
and sex = #{sex}
</if>
<if
test=
"age != null "
>
and age = #{age}
</if>
<if
test=
"title != null and title != ''"
>
and title = #{title}
</if>
<if
test=
"education != null and education != ''"
>
and education = #{education}
</if>
<if
test=
"appearance != null and appearance != ''"
>
and appearance = #{appearance}
</if>
<if
test=
"courseName != null and courseName != ''"
>
and course_name like concat('%', #{courseName}, '%')
</if>
<if
test=
"className != null and className != ''"
>
and class_name like concat('%', #{className}, '%')
</if>
<if
test=
"bzrClassName != null and bzrClassName != ''"
>
and bzr_class_name like concat('%', #{bzrClassName}, '%')
</if>
<if
test=
"fbzrClassName != null and fbzrClassName != ''"
>
and fbzr_class_name like concat('%', #{fbzrClassName}, '%')
</if>
<if
test=
"isTeachingGroupLeader != null and isTeachingGroupLeader != ''"
>
and is_teaching_group_leader = #{isTeachingGroupLeader}
</if>
<if
test=
"isResearchGroupLeader != null and isResearchGroupLeader != ''"
>
and is_research_group_leader = #{isResearchGroupLeader}
</if>
<if
test=
"classHour != null "
>
and class_hour = #{classHour}
</if>
<if
test=
"classTeacherDetails != null and classTeacherDetails != ''"
>
and class_teacher_details = #{classTeacherDetails}
</if>
<if
test=
"state != null and state != ''"
>
and state = #{state}
</if>
</where>
</select>
<select
id=
"countYqr"
parameterType=
"TeacherFiles"
resultType=
"Integer"
>
select count(id) from teacher_files
<where>
state = '5'
<if
test=
"noticeId != null and noticeId != ''"
>
and notice_id = #{noticeId}
</if>
<if
test=
"filesSemester != null and filesSemester != ''"
>
and files_semester = #{filesSemester}
</if>
<if
test=
"teacherId != null "
>
and teacher_id = #{teacherId}
</if>
<if
test=
"teacherName != null and teacherName != ''"
>
and teacher_name like concat('%', #{teacherName}, '%')
</if>
<if
test=
"gradeId != null "
>
and grade_id = #{gradeId}
</if>
<if
test=
"gradeName != null and gradeName != ''"
>
and grade_name like concat('%', #{gradeName}, '%')
</if>
<if
test=
"idCard != null and idCard != ''"
>
and id_card = #{idCard}
</if>
<if
test=
"sex != null and sex != ''"
>
and sex = #{sex}
</if>
<if
test=
"age != null "
>
and age = #{age}
</if>
<if
test=
"title != null and title != ''"
>
and title = #{title}
</if>
<if
test=
"education != null and education != ''"
>
and education = #{education}
</if>
<if
test=
"appearance != null and appearance != ''"
>
and appearance = #{appearance}
</if>
<if
test=
"courseName != null and courseName != ''"
>
and course_name like concat('%', #{courseName}, '%')
</if>
<if
test=
"className != null and className != ''"
>
and class_name like concat('%', #{className}, '%')
</if>
<if
test=
"bzrClassName != null and bzrClassName != ''"
>
and bzr_class_name like concat('%', #{bzrClassName}, '%')
</if>
<if
test=
"fbzrClassName != null and fbzrClassName != ''"
>
and fbzr_class_name like concat('%', #{fbzrClassName}, '%')
</if>
<if
test=
"isTeachingGroupLeader != null and isTeachingGroupLeader != ''"
>
and is_teaching_group_leader = #{isTeachingGroupLeader}
</if>
<if
test=
"isResearchGroupLeader != null and isResearchGroupLeader != ''"
>
and is_research_group_leader = #{isResearchGroupLeader}
</if>
<if
test=
"classHour != null "
>
and class_hour = #{classHour}
</if>
<if
test=
"classTeacherDetails != null and classTeacherDetails != ''"
>
and class_teacher_details = #{classTeacherDetails}
</if>
<if
test=
"state != null and state != ''"
>
and state = #{state}
</if>
</where>
</select>
<select
id=
"selectTeacherFilesById"
parameterType=
"Long"
resultType=
"TeacherFilesVO"
>
<select
id=
"selectTeacherFilesById"
parameterType=
"Long"
resultType=
"TeacherFilesVO"
>
<include
refid=
"selectTeacherFilesVo"
/>
<include
refid=
"selectTeacherFilesVo"
/>
where id = #{id}
where 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