Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
engine-class-work
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
liuchengjiu
engine-class-work
Commits
d3f39338
Commit
d3f39338
authored
Aug 03, 2023
by
Ryan Loong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 分数统计增加最大和最小分的限制
parent
9448718c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
PointController.java
...va/cn/exploring/engine/server/wx/web/PointController.java
+7
-6
No files found.
server-wx-api/src/main/java/cn/exploring/engine/server/wx/web/PointController.java
View file @
d3f39338
...
...
@@ -11,6 +11,7 @@ import org.springframework.util.StringUtils;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Nullable
;
import
javax.annotation.Resource
;
import
java.io.File
;
import
java.io.FileInputStream
;
...
...
@@ -34,10 +35,10 @@ public class PointController {
StorageService
storageService
;
@GetMapping
(
"selectPoint"
)
public
Object
selectPoint
(
@RequestParam
String
studentName
,
@RequestParam
String
studentUniqueId
,
@RequestParam
Integer
classId
,
@RequestParam
String
startTime
,
@RequestParam
String
endTime
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
required
=
false
,
defaultValue
=
"10"
)
Integer
limit
,
@RequestParam
(
required
=
false
,
defaultValue
=
"addTime"
)
String
sort
,
@RequestParam
(
required
=
false
,
defaultValue
=
"desc"
)
String
order
,
@RequestParam
Integer
min
,
@RequestParam
Integer
max
)
{
public
Object
selectPoint
(
@RequestParam
@Nullable
String
studentName
,
@RequestParam
@Nullable
String
studentUniqueId
,
@RequestParam
@Nullable
Integer
classId
,
@RequestParam
@Nullable
String
startTime
,
@RequestParam
@Nullable
String
endTime
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
limit
,
@RequestParam
(
defaultValue
=
"addTime"
)
String
sort
,
@RequestParam
(
defaultValue
=
"desc"
)
String
order
,
@RequestParam
@Nullable
Integer
min
,
@RequestParam
@Nullable
Integer
max
)
{
studentUniqueId
=
StringUtils
.
isEmpty
(
studentUniqueId
)
?
null
:
studentUniqueId
;
studentName
=
StringUtils
.
isEmpty
(
studentName
)
?
null
:
studentName
;
startTime
=
StringUtils
.
isEmpty
(
startTime
)
?
null
:
startTime
;
...
...
@@ -47,8 +48,8 @@ public class PointController {
@GetMapping
(
"export"
)
public
Object
export
(
@RequestParam
String
studentName
,
@RequestParam
String
studentUniqueId
,
@RequestParam
Integer
classId
,
@RequestParam
String
startTime
,
@RequestParam
String
endTime
,
@RequestParam
(
required
=
false
,
defaultValue
=
"addTime"
)
String
sort
,
@RequestParam
(
required
=
false
,
defaultValue
=
"desc"
)
String
order
,
@RequestParam
Integer
min
,
@RequestParam
Integer
max
)
{
@RequestParam
(
defaultValue
=
"addTime"
)
String
sort
,
@RequestParam
(
defaultValue
=
"desc"
)
String
order
,
@RequestParam
@Nullable
Integer
min
,
@RequestParam
@Nullable
Integer
max
)
{
studentUniqueId
=
StringUtils
.
isEmpty
(
studentUniqueId
)
?
null
:
studentUniqueId
;
studentName
=
StringUtils
.
isEmpty
(
studentName
)
?
null
:
studentName
;
startTime
=
StringUtils
.
isEmpty
(
startTime
)
?
null
:
startTime
;
...
...
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