Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
be759252
Commit
be759252
authored
Sep 11, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口调整
parent
0793c1bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ScheduleCourseModule.cs
Edu.Module.Course/ScheduleCourseModule.cs
+1
-1
ScheduleCourseController.cs
Edu.WebApi/Controllers/Course/ScheduleCourseController.cs
+11
-1
No files found.
Edu.Module.Course/ScheduleCourseModule.cs
View file @
be759252
...
...
@@ -182,7 +182,7 @@ namespace Edu.Module.Course
name
=
EnumHelper
.
ToName
(
model
.
CourseRate
)
+
"~"
+
EnumHelper
.
ToName
((
CourseRateEnum
)
model
.
MaxLength
);
}
}
return
name
;
return
name
.
Replace
(
"课程"
,
""
)
;
}
/// <summary>
...
...
Edu.WebApi/Controllers/Course/ScheduleCourseController.cs
View file @
be759252
...
...
@@ -99,7 +99,17 @@ namespace Edu.WebApi.Controllers.Course
}
else
{
jobj
.
Add
(
"TotalTimes"
,
item
.
TotalTimes
/
2
);
jobj
.
Add
(
"TotalHours"
,
item
.
TotalTimes
);
int
TotalTimes
=
0
;
if
(
item
.
TotalTimes
%
2
==
1
)
{
TotalTimes
=
item
.
TotalTimes
/
2
+
1
;
}
else
{
TotalTimes
=
item
.
TotalTimes
/
2
;
}
jobj
.
Add
(
"TotalTimes"
,
TotalTimes
);
list
.
Add
(
jobj
);
}
}
...
...
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