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
ceef3804
Commit
ceef3804
authored
Nov 29, 2023
by
baochunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#G:修改服务器文件上传大小
parent
43aaf790
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
ruoyi-admin/src/main/resources/application.yml
+19
-19
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacherFiles/TeacherFilesNoticeServiceImpl.java
+2
-2
No files found.
ruoyi-admin/src/main/resources/application.yml
View file @
ceef3804
...
...
@@ -82,9 +82,9 @@ spring:
servlet
:
multipart
:
# 单个文件大小
max-file-size
:
1
0MB
max-file-size
:
5
0MB
# 设置总上传的文件大小
max-request-size
:
2
0MB
max-request-size
:
10
0MB
# 服务模块
devtools
:
restart
:
...
...
@@ -212,15 +212,15 @@ wx:
# redirect-uri: y32025c600.goho.co:10087
dd
:
# 本地配置
appKey
:
dingclpf8qoxvinhksyh
appSecret
:
CrlRmzkaFMH00cbipSf3g0nc_xpFGCitTAPA_cphUXg1e-DSX1hFcyVpqgos29r9
# 钉钉接口 获取钉钉access_token 的uri
access-token-uri
:
https://oapi.dingtalk.com/gettoken?appkey=${dd.appKey}&appsecret=${dd.appSecret}
#企业id
corpId
:
dingaa3937ff8b7dd267f2c783f7214b6d69
#应用id
agentId
:
2730043705
#
# 本地配置
#
appKey: dingclpf8qoxvinhksyh
#
appSecret: CrlRmzkaFMH00cbipSf3g0nc_xpFGCitTAPA_cphUXg1e-DSX1hFcyVpqgos29r9
#
# 钉钉接口 获取钉钉access_token 的uri
#
access-token-uri: https://oapi.dingtalk.com/gettoken?appkey=${dd.appKey}&appsecret=${dd.appSecret}
#
#企业id
#
corpId: dingaa3937ff8b7dd267f2c783f7214b6d69
#
#应用id
#
agentId: 2730043705
# 测试服务器配置
# appKey: ding5cbf7qhd55zun5jg
...
...
@@ -233,14 +233,14 @@ dd:
# agentId: 2760774127
# 正式配置
#
appKey: dingggqchzyvxm9e6e7v
#
appSecret: ts5hRNjO_o3QNMfEu4pM2dn71YJzw7yalnuh5LztHuCGWqUNjM2lMB1eNCSOlxNN
#
# 钉钉接口 获取钉钉access_token 的uri
#
access-token-uri: https://oapi.dingtalk.com/gettoken?appkey=${dd.appKey}&appsecret=${dd.appSecret}
#
#企业id
#
corpId: dingccea40788226c988f2c783f7214b6d69
#
#应用id
#
agentId: 2765311628
appKey
:
dingggqchzyvxm9e6e7v
appSecret
:
ts5hRNjO_o3QNMfEu4pM2dn71YJzw7yalnuh5LztHuCGWqUNjM2lMB1eNCSOlxNN
# 钉钉接口 获取钉钉access_token 的uri
access-token-uri
:
https://oapi.dingtalk.com/gettoken?appkey=${dd.appKey}&appsecret=${dd.appSecret}
#企业id
corpId
:
dingccea40788226c988f2c783f7214b6d69
#应用id
agentId
:
2765311628
#重定向地址
redirect-uri
:
www.dyzmxx.com
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacherFiles/TeacherFilesNoticeServiceImpl.java
View file @
ceef3804
...
...
@@ -154,8 +154,7 @@ public class TeacherFilesNoticeServiceImpl extends ServiceImpl<TeacherFilesNoti
SchoolGrade
schoolGrade
=
(
SchoolGrade
)
params
.
get
(
"grade"
);
//获取级部
//查看当前老师是否在班级中当班主任
List
<
SchoolClass
>
yxyjList
=
schoolClasses
.
stream
().
filter
(
p
->
p
.
getTeacherId
().
equals
(
user
.
getUserId
())
).
collect
(
Collectors
.
toList
());
List
<
SchoolClass
>
yxyjList
=
schoolClasses
.
stream
().
filter
(
p
->
p
.
getTeacherId
()
!=
null
&&
p
.
getTeacherId
().
equals
(
user
.
getUserId
())).
collect
(
Collectors
.
toList
());
String
teahClassName
=
null
;
String
className
=
null
;
//只取第一个
...
...
@@ -188,6 +187,7 @@ public class TeacherFilesNoticeServiceImpl extends ServiceImpl<TeacherFilesNoti
}
TeacherFiles
teacherFilesAddXx
(
TeacherFiles
teacherFiles
,
List
<
SchoolTeacher
>
schoolTeachers
){
System
.
err
.
println
(
teacherFiles
.
toString
());
List
<
SchoolTeacher
>
collect
=
schoolTeachers
.
stream
().
filter
(
t
->
t
.
getId
().
equals
(
teacherFiles
.
getTeacherId
())).
collect
(
Collectors
.
toList
());
SchoolTeacher
schoolTeacher
=
collect
.
get
(
0
);
teacherFiles
.
setTeacherName
(
schoolTeacher
.
getTeacherName
());
...
...
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