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
7135968b
Commit
7135968b
authored
Nov 26, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
2843775e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
7 deletions
+35
-7
BLessonPersonRepository.java
...rcisoft/business/blesson/dao/BLessonPersonRepository.java
+2
-2
BLessonPerson.java
...va/org/rcisoft/business/blesson/entity/BLessonPerson.java
+16
-0
BLessonPersonService.java
...cisoft/business/blesson/service/BLessonPersonService.java
+2
-1
BLessonPersonServiceImpl.java
...siness/blesson/service/impl/BLessonPersonServiceImpl.java
+14
-3
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/blesson/dao/BLessonPersonRepository.java
View file @
7135968b
...
...
@@ -18,7 +18,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
@Select
(
"<script> select blp.*,bl.lesson_name lessonName,bl.default_url defaultUrl,bl.person_number personNumber, "
+
" bl.class_hour classHour,bl.discuss_number discussNumber ,bl.lecturer_id lecturerId, bl.lesson_type "
+
" lessonType,bl.course_time courseTime,bl.release_state releaseState "
+
",su.name lecturerName "
+
",su.name lecturerName
,bl.train_sign_time trainSignTime,bl.train_start_date trainStartDate,bl.train_over_date trainOverDate,bl.lesson_type lessonType
"
+
" from b_lesson_person blp "
+
" left join b_lesson bl on blp.lesson_id = bl.business_id "
+
" left join s_user su on su.business_id = bl.lecturer_id "
+
...
...
@@ -40,7 +40,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
""
+
"</script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
BLesson
>
queryLearnBLessons
(
@Param
(
"param"
)
ILearnLessonDTO
param
);
List
<
BLesson
Person
>
queryLearnBLessons
(
@Param
(
"param"
)
ILearnLessonDTO
param
);
...
...
src/main/java/org/rcisoft/business/blesson/entity/BLessonPerson.java
View file @
7135968b
...
...
@@ -149,6 +149,22 @@ public class BLessonPerson extends IdEntity<BLessonPerson> {
@Transient
private
String
finishDateSetNull
;
@ApiModelProperty
(
value
=
"0 未开始 1签到中(进行中) 2已结束"
)
@Transient
private
String
trainType
;
@ApiModelProperty
(
value
=
"开始前多少分钟开始签到"
)
@Transient
private
String
trainSignTime
;
@ApiModelProperty
(
value
=
"培训开始时间"
)
@Transient
private
Date
trainStartDate
;
@ApiModelProperty
(
value
=
"培训结束时间"
)
@Transient
private
Date
trainOverDate
;
//初始化
public
void
initModel
(){
UserUtil
.
setCurrentPersistOperation
(
this
);
...
...
src/main/java/org/rcisoft/business/blesson/service/BLessonPersonService.java
View file @
7135968b
...
...
@@ -2,6 +2,7 @@ package org.rcisoft.business.blesson.service;
import
org.rcisoft.business.blesson.dto.*
;
import
org.rcisoft.business.blesson.entity.BLesson
;
import
org.rcisoft.business.blesson.entity.BLessonPerson
;
import
org.rcisoft.core.aop.PageUtil
;
import
org.rcisoft.core.model.PersistModel
;
import
org.rcisoft.sys.user.bean.CurUser
;
...
...
@@ -25,7 +26,7 @@ public interface BLessonPersonService {
* @param model
* @return
*/
List
<
BLesson
>
queryLearnBLessonsByPagination
(
PageUtil
pageUtil
,
ILearnLessonDTO
model
);
List
<
BLesson
Person
>
queryLearnBLessonsByPagination
(
PageUtil
pageUtil
,
ILearnLessonDTO
model
);
/**
* 查询线上课程学员追踪图表
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonPersonServiceImpl.java
View file @
7135968b
...
...
@@ -101,10 +101,21 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
readOnly
=
false
)
@Override
public
List
<
BLesson
>
queryLearnBLessonsByPagination
(
PageUtil
pageUtil
,
ILearnLessonDTO
model
)
{
List
<
BLesson
>
bLessonList
=
bLessonPersonRepository
.
queryLearnBLessons
(
model
);
public
List
<
BLesson
Person
>
queryLearnBLessonsByPagination
(
PageUtil
pageUtil
,
ILearnLessonDTO
model
)
{
List
<
BLesson
Person
>
bLessonList
=
bLessonPersonRepository
.
queryLearnBLessons
(
model
);
if
(
"1"
.
equals
(
model
.
getLessonType
())){
return
bLessonServiceImpl
.
setTrainTypeByList
(
bLessonList
);
Date
now
=
new
Date
();
bLessonList
.
forEach
(
bLesson
->
{
Long
time
=
Long
.
parseLong
(
bLesson
.
getTrainSignTime
())
*
60
*
1000
;
Date
signStart
=
new
Date
(
bLesson
.
getTrainStartDate
().
getTime
()
-
time
);
if
(
now
.
before
(
signStart
)){
bLesson
.
setTrainType
(
"0"
);
}
else
if
(
bLesson
.
getTrainOverDate
().
before
(
now
)){
bLesson
.
setTrainType
(
"2"
);
}
else
{
bLesson
.
setTrainType
(
"1"
);
}
});
}
return
bLessonList
;
}
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
7135968b
...
...
@@ -1552,7 +1552,7 @@ public class BLessonServiceImpl implements BLessonService {
Date
signStart
=
new
Date
(
bLesson
.
getTrainStartDate
().
getTime
()
-
time
);
if
(
now
.
before
(
signStart
)){
bLesson
.
setTrainType
(
"0"
);
}
else
if
(
bLesson
.
getTrainOverDate
().
before
(
now
)
){
}
else
if
(
bLesson
.
getTrainOverDate
().
before
(
now
)){
bLesson
.
setTrainType
(
"2"
);
}
else
{
bLesson
.
setTrainType
(
"1"
);
...
...
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