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
3f5d93ea
Commit
3f5d93ea
authored
Dec 06, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/meiteng' into zql
parents
7afb690d
e04b4344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
BLessonController.java
...cisoft/business/blesson/controller/BLessonController.java
+1
-0
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+3
-7
No files found.
src/main/java/org/rcisoft/business/blesson/controller/BLessonController.java
View file @
3f5d93ea
...
...
@@ -445,6 +445,7 @@ public class BLessonController extends PaginationController<BLesson> {
@ApiOperation
(
value
=
"624 指派课程"
,
notes
=
"根据ID指派课程"
)
@PostMapping
(
value
=
"/appointLessonToPerson"
)
public
Result
appointLessonToPerson
(
CurUser
curUser
,
@Valid
AppointLessonDTO
appointLessonDTO
,
BindingResult
bindingResult
)
{
PersistModel
data
=
bLessonService
.
appointLessonToPerson
(
appointLessonDTO
);
return
Result
.
builder
(
data
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
3f5d93ea
...
...
@@ -746,7 +746,7 @@ public class BLessonServiceImpl implements BLessonService {
if
(
userIdList
!=
null
&&
userIdList
.
size
()>
0
){
userIdSet
.
addAll
(
userIdList
);
}
if
(
inDepartPerson
!=
null
&&
inDepartPerson
.
size
()
>
0
){
if
(
inDepartPerson
!=
null
&&
inDepartPerson
.
size
()
>
0
){
userIdSet
.
addAll
(
inDepartPerson
);
}
//去重后放入List
...
...
@@ -874,13 +874,13 @@ public class BLessonServiceImpl implements BLessonService {
bLessonPerson
.
setAppointId
(
bAppoint
.
getBusinessId
());
bLessonPerson
.
setIsAppoint
(
"1"
);
// bLessonPerson.setApplyDate(new Date());//指派时间同步到lesson_person的报名时间
bLessonPerson
.
setLessonId
(
appointLessonDTO
.
getLessonId
());
bLessonPerson
.
setPersonId
(
userId
);
// bLessonPerson.setApplyDate(new Date());//指派时间同步到lesson_person的报名时间
bLessonPersonOthers
.
add
(
bLessonPerson
);
}
int
line
;
int
line
=
1
;
if
(
bLessonPersonOthers
!=
null
&&
bLessonPersonOthers
.
size
()
>
0
){
if
(
"1"
.
equals
(
bLesson
.
getLessonType
())){
//指派培训
...
...
@@ -890,10 +890,6 @@ public class BLessonServiceImpl implements BLessonService {
}
//指派课程
line
=
bLessonPersonRepository
.
insertList
(
bLessonPersonOthers
);
// bLessonRepository.personNumberReCount(bLesson.getBusinessId(),"0");
}
else
{
bLessonRepository
.
personNumberReCount
(
bLesson
.
getBusinessId
(),
bLesson
.
getLessonType
());
line
=
1
;
}
bLessonRepository
.
personNumberReCount
(
bLesson
.
getBusinessId
(),
bLesson
.
getLessonType
());
return
new
PersistModel
(
line
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
);
...
...
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