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
d94f5736
Commit
d94f5736
authored
Oct 12, 2023
by
zhaopanyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 49.232.152.146:qangqi/dd_school
parents
79911c5f
c27602e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolgrade/ISchoolGradeImpl.java
+1
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacherFiles/TeacherFilesNoticeServiceImpl.java
+11
-5
smart-campus/src/main/java/yangtz/cs/liu/dingding/controller/DdAppLoginController.java
+3
-1
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolgrade/ISchoolGradeImpl.java
View file @
d94f5736
...
...
@@ -80,6 +80,7 @@ public class ISchoolGradeImpl extends ServiceImpl<SchoolGradeMapper, SchoolGrade
//如果是级部成员
List
<
Long
>
ids
=
schoolGradeMapper
.
getMemberGradeId
(
userId
,
schoolYear
);
if
(
StringUtils
.
isNull
(
ids
)
||
ids
.
size
()
==
0
)
{
throw
new
ServiceException
(
"当前学年为"
+
schoolYear
+
"学年,该学年没有您所在的级部信息"
);
}
return
ids
.
get
(
0
);
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacherFiles/TeacherFilesNoticeServiceImpl.java
View file @
d94f5736
...
...
@@ -16,10 +16,8 @@ import yangtz.cs.liu.campus.service.teacherFiles.ITeacherFilesNoticeService;
import
yangtz.cs.liu.campus.vo.teacherFiles.SchoolClassByGradeVo
;
import
yangtz.cs.liu.campus.vo.teacherFiles.SchoolGradeByClassVo
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
/**
...
...
@@ -178,7 +176,15 @@ public class TeacherFilesNoticeServiceImpl implements ITeacherFilesNoticeService
teacherFiles
.
setIdCard
(
schoolTeacher
.
getIdCard
());
teacherFiles
.
setSex
(
schoolTeacher
.
getSex
());
teacherFiles
.
setEducation
(
schoolTeacher
.
getEducation
());
teacherFiles
.
setAge
(
1
);
System
.
out
.
println
(
schoolTeacher
.
getTeacherName
()+
"---------"
+
schoolTeacher
.
getBirthday
());
Date
birthday
=
schoolTeacher
.
getBirthday
();
if
(
birthday
!=
null
){
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy"
);
Integer
birthdayYear
=
Integer
.
valueOf
(
dateFormat
.
format
(
birthday
));
Date
date
=
new
Date
();
Integer
nowYear
=
Integer
.
valueOf
(
dateFormat
.
format
(
date
));
teacherFiles
.
setAge
(
nowYear
-
birthdayYear
);
}
teacherFiles
.
setTitle
(
""
);
teacherFiles
.
setAppearance
(
""
);
return
teacherFiles
;
...
...
smart-campus/src/main/java/yangtz/cs/liu/dingding/controller/DdAppLoginController.java
View file @
d94f5736
...
...
@@ -78,6 +78,7 @@ public class DdAppLoginController {
OapiUserGetuserinfoResponse
response
;
try
{
response
=
client
.
execute
(
request
,
access_token
);
System
.
out
.
println
(
"-------------"
+
request
);
}
catch
(
ApiException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
...
...
@@ -115,8 +116,9 @@ public class DdAppLoginController {
wxLoginBody
.
setOpenId
(
unionId
);
wxLoginBody
.
setParentTelephone
(
sysUser
.
getPhonenumber
());
if
(
null
!=
sysUser
.
getStudentId
()){
SchoolStudent
schoolStudent
=
schoolStudentMapper
.
selectById
Card
(
sysUser
.
getStudentId
().
toString
());
SchoolStudent
schoolStudent
=
schoolStudentMapper
.
selectById
(
sysUser
.
getStudentId
().
toString
());
wxLoginBody
.
setStudentIdCard
(
schoolStudent
.
getIdCard
());
wxLoginBody
.
setStudentName
(
schoolStudent
.
getStudentName
());
}
wxLoginBody
.
setParentName
(
sysUser
.
getUserName
());
wxLoginBody
.
setTeacherName
(
sysUser
.
getUserName
());
...
...
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