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
688f7856
Commit
688f7856
authored
Nov 22, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学员跟踪列表 增加trainType返回值
parent
e8a89a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
BLessonPersonServiceImpl.java
...siness/blesson/service/impl/BLessonPersonServiceImpl.java
+19
-0
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonPersonServiceImpl.java
View file @
688f7856
...
...
@@ -115,6 +115,24 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
@Override
public
List
<
StudentTrackingRspDTO
>
studentTrackingByPagination
(
PageUtil
pageUtil
,
StudentTrackingDTO
studentTrackingDTO
)
{
// List<Long> deptIds = new ArrayList<>();
BLesson
bLesson
=
bLessonRepository
.
selectByPrimaryKey
(
studentTrackingDTO
.
getLessonId
());
if
(
bLesson
==
null
){
throw
new
ServiceException
(
ResultServiceEnums
.
LESSON_NOT_EXISTA
);
}
String
trainType
=
""
;
if
(
"1"
.
equals
(
bLesson
.
getLessonType
())){
Date
now
=
new
Date
();
Long
time
=
Long
.
parseLong
(
bLesson
.
getTrainSignTime
())
*
60
*
1000
;
Date
signStart
=
new
Date
(
bLesson
.
getTrainStartDate
().
getTime
()
-
time
);
if
(
now
.
before
(
signStart
)){
trainType
=
"0"
;
}
else
if
(
bLesson
.
getTrainOverDate
().
before
(
now
)
){
trainType
=
"2"
;
}
else
{
trainType
=
"1"
;
}
}
if
(
StringUtils
.
isNotEmpty
(
studentTrackingDTO
.
getDepartId
())){
Set
<
String
>
deptIds
=
new
HashSet
<>();
...
...
@@ -152,6 +170,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
studentTrackingRspDTO
.
setDepartName
(
depart
.
getDepts
().
get
(
0
).
getName
());
}
}
studentTrackingRspDTO
.
setTrainType
(
trainType
);
}
}
return
studentTrackingRspDTOs
;
...
...
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