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
f956ca86
Commit
f956ca86
authored
Dec 06, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
dfd8fd8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
BLessonController.java
...cisoft/business/blesson/controller/BLessonController.java
+1
-0
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+3
-7
MTNotificationApiRequestClient.java
...common/util/outClient/MTNotificationApiRequestClient.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/blesson/controller/BLessonController.java
View file @
f956ca86
...
...
@@ -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 @
f956ca86
...
...
@@ -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
);
...
...
src/main/java/org/rcisoft/common/util/outClient/MTNotificationApiRequestClient.java
View file @
f956ca86
...
...
@@ -184,7 +184,7 @@ public class MTNotificationApiRequestClient {
return
false
;
}
bNoticeServiceImpl
.
save
(
bNoticeList
);
//
bNoticeServiceImpl.save(bNoticeList);
}
}
}
...
...
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