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
d0d8f4dc
Commit
d0d8f4dc
authored
Nov 19, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
6954ba69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
BLessonController.java
...cisoft/business/blesson/controller/BLessonController.java
+2
-3
ExamDto.java
src/main/java/org/rcisoft/business/blesson/dto/ExamDto.java
+19
-0
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+4
-4
No files found.
src/main/java/org/rcisoft/business/blesson/controller/BLessonController.java
View file @
d0d8f4dc
...
@@ -691,7 +691,7 @@ public class BLessonController extends PaginationController<BLesson> {
...
@@ -691,7 +691,7 @@ public class BLessonController extends PaginationController<BLesson> {
* @return
* @return
* @author: zhangqingle
* @author: zhangqingle
*/
*/
@ApiOperation
(
value
=
"640 用户管理 - 课程情况 "
,
notes
=
"用户管理 - 课程情况 "
)
@ApiOperation
(
value
=
"640 用户管理 - 课程情况 "
,
notes
=
"用户管理 - 课程情况 "
)
@GetMapping
(
value
=
"/userManageLessonByPagination"
)
@GetMapping
(
value
=
"/userManageLessonByPagination"
)
public
Result
userManageLessonByPagination
(
CurUser
curUser
,
@Valid
UserLessonDTO
userLessonDTO
,
BindingResult
bindingResult
)
{
public
Result
userManageLessonByPagination
(
CurUser
curUser
,
@Valid
UserLessonDTO
userLessonDTO
,
BindingResult
bindingResult
)
{
bLessonService
.
userManageLessonByPagination
(
getPaginationUtility
(),
userLessonDTO
);
bLessonService
.
userManageLessonByPagination
(
getPaginationUtility
(),
userLessonDTO
);
...
@@ -702,10 +702,9 @@ public class BLessonController extends PaginationController<BLesson> {
...
@@ -702,10 +702,9 @@ public class BLessonController extends PaginationController<BLesson> {
gridModel
);
gridModel
);
}
}
@ApiOperation
(
value
=
"641 用户管理 - 考试情况 "
,
notes
=
"用户管理 - 考试情况 "
)
@ApiOperation
(
value
=
"641 用户管理 - 考试情况 "
,
notes
=
"用户管理 - 考试情况 "
,
response
=
ExamDto
.
class
)
@GetMapping
(
value
=
"/userManageExamByPagination"
)
@GetMapping
(
value
=
"/userManageExamByPagination"
)
public
Result
userManageExamByPagination
(
CurUser
curUser
,
@Valid
ExamQueryDto
dto
,
BindingResult
bindingResult
)
{
public
Result
userManageExamByPagination
(
CurUser
curUser
,
@Valid
ExamQueryDto
dto
,
BindingResult
bindingResult
)
{
//原型不完整---查询条件不明确
bLessonService
.
userManageExamByPagination
(
getPaginationUtility
(),
dto
);
bLessonService
.
userManageExamByPagination
(
getPaginationUtility
(),
dto
);
GridModel
gridModel
=
getGridModelResponse
();
GridModel
gridModel
=
getGridModelResponse
();
return
Result
.
builder
(
new
PersistModel
(
1
),
return
Result
.
builder
(
new
PersistModel
(
1
),
...
...
src/main/java/org/rcisoft/business/blesson/dto/ExamDto.java
View file @
d0d8f4dc
package
org
.
rcisoft
.
business
.
blesson
.
dto
;
package
org
.
rcisoft
.
business
.
blesson
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
@Data
@Data
public
class
ExamDto
{
public
class
ExamDto
{
@ApiModelProperty
(
value
=
"试卷名称"
)
public
String
paperName
;
public
String
paperName
;
@ApiModelProperty
(
value
=
"考试时长"
)
public
String
examTime
;
public
String
examTime
;
@ApiModelProperty
(
value
=
"及格分数/卷面分数"
)
public
String
paperScore
;
public
String
paperScore
;
@ApiModelProperty
(
value
=
"考试状态"
)
public
String
paperStatus
;
public
String
paperStatus
;
@ApiModelProperty
(
value
=
"考试结果"
)
public
String
examResult
;
public
String
examResult
;
@ApiModelProperty
(
value
=
"试卷得分"
)
public
String
score
;
public
String
score
;
@ApiModelProperty
(
value
=
"考试耗时"
)
public
String
timeCost
;
public
String
timeCost
;
@ApiModelProperty
(
value
=
"开考时间"
)
public
Date
examStart
;
public
Date
examStart
;
@ApiModelProperty
(
value
=
"交卷时间"
)
public
Date
examEnd
;
public
Date
examEnd
;
public
Date
PaperEndTime
;
public
Date
PaperEndTime
;
}
}
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
d0d8f4dc
...
@@ -1308,15 +1308,15 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -1308,15 +1308,15 @@ public class BLessonServiceImpl implements BLessonService {
for
(
ExamDto
examDto
:
list
){
for
(
ExamDto
examDto
:
list
){
//考试状态 0待参加 1已完成 2已失效 3进行中
//考试状态 0待参加 1已完成 2已失效 3进行中
if
(
examDto
.
getPaperStatus
()
==
null
&&
examDto
.
getPaperEndTime
().
after
(
new
Date
())){
if
(
examDto
.
getPaperStatus
()
==
null
&&
examDto
.
getPaperEndTime
().
after
(
new
Date
())){
examDto
.
setPaperStatus
(
"
0
"
);
examDto
.
setPaperStatus
(
"
待参加
"
);
examDto
.
setExamResult
(
null
);
examDto
.
setExamResult
(
null
);
}
else
if
(
examDto
.
getPaperStatus
()
==
null
&&
examDto
.
getPaperEndTime
().
before
(
new
Date
()))
{
}
else
if
(
examDto
.
getPaperStatus
()
==
null
&&
examDto
.
getPaperEndTime
().
before
(
new
Date
()))
{
examDto
.
setPaperStatus
(
"
2
"
);
examDto
.
setPaperStatus
(
"
已失效
"
);
examDto
.
setExamResult
(
null
);
examDto
.
setExamResult
(
null
);
}
else
if
(
"1"
.
equals
(
examDto
.
getPaperStatus
())
||
"2"
.
equals
(
examDto
.
getPaperStatus
())){
}
else
if
(
"1"
.
equals
(
examDto
.
getPaperStatus
())
||
"2"
.
equals
(
examDto
.
getPaperStatus
())){
examDto
.
setPaperStatus
(
"
1
"
);
examDto
.
setPaperStatus
(
"
已完成
"
);
}
else
if
(
"0"
.
equals
(
examDto
.
getPaperStatus
())){
}
else
if
(
"0"
.
equals
(
examDto
.
getPaperStatus
())){
examDto
.
setPaperStatus
(
"
3
"
);
examDto
.
setPaperStatus
(
"
进行中
"
);
examDto
.
setScore
(
null
);
examDto
.
setScore
(
null
);
examDto
.
setExamResult
(
null
);
examDto
.
setExamResult
(
null
);
}
}
...
...
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