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
80d13862
Commit
80d13862
authored
Nov 02, 2023
by
liuliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增社团风采的时候 先将file的前缀去掉
parent
a4efb984
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/organization/SchoolOrganizationFcController.java
+12
-0
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/organization/SchoolOrganizationFcController.java
View file @
80d13862
...
...
@@ -69,6 +69,18 @@ public class SchoolOrganizationFcController extends BaseController
@PostMapping
public
AjaxResult
add
(
@RequestBody
SchoolOrganizationFc
schoolOrganizationFc
)
{
//先将file的前缀去掉
String
file
=
schoolOrganizationFc
.
getFile
();
if
(
file
!=
null
){
String
str
=
""
;
String
[]
split
=
file
.
split
(
","
);
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
String
substring
=
split
[
i
].
substring
(
8
,
split
[
i
].
length
());
str
=
str
+
","
+
substring
;
}
schoolOrganizationFc
.
setFile
(
str
.
substring
(
1
,
str
.
length
()));
}
return
toAjax
(
schoolOrganizationFcService
.
save
(
schoolOrganizationFc
));
}
...
...
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