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
8b5658d6
Commit
8b5658d6
authored
Oct 30, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/meiteng' into meiteng
parents
7b690764
b70627fa
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
12 deletions
+19
-12
BChapterRepository.java
...org/rcisoft/business/bchapter/dao/BChapterRepository.java
+1
-1
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+1
-2
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+1
-1
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+1
-1
BRStudentChapterServiceImpl.java
...dentchapter/service/impl/BRStudentChapterServiceImpl.java
+0
-1
SysUserController.java
...va/org/rcisoft/sys/user/controller/SysUserController.java
+2
-3
SysUserServiceImpl.java
...org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
+13
-3
No files found.
src/main/java/org/rcisoft/business/bchapter/dao/BChapterRepository.java
View file @
8b5658d6
...
...
@@ -346,7 +346,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
"WHERE "
+
" bp.chapter_id IS NOT NULL "
+
" AND bp.chapter_id != '' "
+
" AND b
.business
_id = #{lessonId} "
+
" AND b
p.lesson
_id = #{lessonId} "
+
" AND bp.person_id = #{userId} "
+
"and bc.corp_id = #{corpId} "
+
...
...
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
8b5658d6
...
...
@@ -323,14 +323,13 @@ public class BChapterServiceImpl implements BChapterService {
String
firstId
=
bChapterRepository
.
getFirstChapter
(
lessonId
);
int
line
=
bChapterRepository
.
removeByPrimaryKey
(
id
);
bChapterRepository
.
updateClassHourInLesson
(
lessonId
);
if
(
firstId
.
equals
(
i
d
)){
if
(
StringUtils
.
isNotEmpty
(
id
)
&&
id
.
equals
(
firstI
d
)){
//当前节为第一节 获取下一节的课程时长
String
secondId
=
bChapterRepository
.
getFirstChapter
(
lessonId
);
String
time
=
bChapterRepository
.
getTimeByChapterId
(
secondId
);
//更新到b_lesson 表
bChapterRepository
.
updateCourseTimeForLesson
(
time
,
lessonId
);
}
return
new
PersistModel
(
line
);
}
...
...
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
8b5658d6
...
...
@@ -221,7 +221,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
* @param
* @return
*/
@Select
(
" <script> select bl.* "
+
@Select
(
" <script> select
distinct
bl.* "
+
" ,su.name lecturerName "
+
" ,suc.name createByName "
+
" from b_lesson bl "
+
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
8b5658d6
...
...
@@ -910,7 +910,7 @@ public class BLessonServiceImpl implements BLessonService {
//step2 判断该用户是否被指派该培训或已经报名
person
=
bLessonPersonRepository
.
getAppointInTraining
(
lessonId
,
curUser
.
getUserId
());
if
(
person
!=
null
)
{
if
(
person
.
getIsApply
().
equals
(
"1"
))
{
if
(
"1"
.
equals
(
person
.
getIsApply
()
))
{
log
.
info
(
"-----------该培训已报名-------------"
);
throw
new
ServiceException
(
ResultServiceEnums
.
TRAIN_APPLYED
);
}
...
...
src/main/java/org/rcisoft/business/brstudentchapter/service/impl/BRStudentChapterServiceImpl.java
View file @
8b5658d6
...
...
@@ -55,7 +55,6 @@ public class BRStudentChapterServiceImpl implements BRStudentChapterService {
@Override
public
PersistModel
save
(
BRStudentChapterDto
brStudentChapterDto
){
int
line
=
0
;
// 查詢是否已經開始觀看此章節的課程
AddMyLearnLessonDTO
addMy
=
new
AddMyLearnLessonDTO
();
addMy
.
setUserId
(
brStudentChapterDto
.
getStudentId
());
addMy
.
setLessonId
(
brStudentChapterDto
.
getLessonId
());
...
...
src/main/java/org/rcisoft/sys/user/controller/SysUserController.java
View file @
8b5658d6
...
...
@@ -63,11 +63,10 @@ public class SysUserController extends PaginationController<SysUser> {
@GetMapping
(
"/gets"
)
@ApiOperation
(
value
=
"|personnels|同步人员"
,
notes
=
"同步人员信息"
)
public
Result
synchronizedUsers
(
@RequestParam
String
corpId
)
throws
ParseException
{
int
line
=
userServiceImpl
.
synchronizedUsers
(
corpId
);
return
Result
.
builder
(
new
PersistModel
(
line
),
return
Result
.
builder
(
new
PersistModel
(
1
),
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_ERROR
,
corpId
);
userServiceImpl
.
synchronizedUsers
(
corpId
)
);
}
...
...
src/main/java/org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
View file @
8b5658d6
...
...
@@ -33,6 +33,9 @@ import org.springframework.transaction.annotation.Transactional;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.time.Instant
;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.util.*
;
import
static
java
.
util
.
Arrays
.
asList
;
...
...
@@ -333,13 +336,13 @@ public class SysUserServiceImpl implements SysUserService {
}
String
updateTime
=
df
.
format
(
synchronizationTime
.
getSynchronizationTime
());
List
<
GetAllRspDTO
>
userGetRspDTOList
=
mtCotactApiRequestClient
.
accountGetMyInfoList
(
corpId
,
updateTime
);
log
.
info
(
"同步人员......"
+
userGetRspDTOList
.
size
()
+
"记录"
);
// if (null == userGetRspDTOList) {
// throw new ServiceException(ResultServiceEnums.ZX_FAILED);
// }
List
<
SysUser
>
personnelsList
=
new
ArrayList
<>();
int
line
=
0
;
if
(
null
!=
userGetRspDTOList
)
{
if
(
null
!=
userGetRspDTOList
&&
userGetRspDTOList
.
size
()
>
0
)
{
log
.
info
(
"同步人员......"
+
userGetRspDTOList
.
size
()
+
"记录"
);
for
(
GetAllRspDTO
userInfo
:
userGetRspDTOList
)
{
SysUser
personnels
=
new
SysUser
();
UserUtil
.
setCurrentPersistOperation
(
personnels
);
...
...
@@ -348,9 +351,14 @@ public class SysUserServiceImpl implements SysUserService {
personnels
.
setName
(
userInfo
.
getName
());
//姓名
personnels
.
setHeadPic
(
userInfo
.
getAvatar
());
//头像
personnels
.
setPhone
(
userInfo
.
getMobile
());
// 手机号
personnels
.
setDelFlag
(
userInfo
.
getIsDel
());
//
智信
状态
personnels
.
setDelFlag
(
userInfo
.
getIsDel
());
//
在职离职
状态
// personnels.setAge(0);
// personnels.setGender(0);
if
(
null
!=
userInfo
.
getCreateAt
()){
Instant
instant
=
userInfo
.
getCreateAt
().
toInstant
();
ZoneId
zone
=
ZoneId
.
systemDefault
();
// personnels.setCreateDate(LocalDateTime.ofInstant(instant, zone));
}
personnels
.
setAccountId
(
userInfo
.
getAccountId
());
personnelsList
.
add
(
personnels
);
}
...
...
@@ -360,6 +368,8 @@ public class SysUserServiceImpl implements SysUserService {
// 同步成功后,更新同步时间
synchronizationTime
.
setSynchronizationTime
(
new
Date
());
synchronizationTimeServiceImpl
.
upadteById
(
synchronizationTime
);
}
else
{
log
.
info
(
"同步人员......0.......记录"
);
}
return
line
;
}
...
...
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