Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
Project
Project
Details
Activity
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
竹天卫
tianjin-cement
Commits
201a0902
Commit
201a0902
authored
Oct 28, 2020
by
mengbali153
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善培训审批
parent
983dfefe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
PlanPeopleServiceImpl.java
...c/cement/business/service/impl/PlanPeopleServiceImpl.java
+20
-10
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/PlanPeopleServiceImpl.java
View file @
201a0902
...
@@ -124,8 +124,10 @@ public class PlanPeopleServiceImpl extends ServiceImpl<PlanPeopleMapper, PlanPeo
...
@@ -124,8 +124,10 @@ public class PlanPeopleServiceImpl extends ServiceImpl<PlanPeopleMapper, PlanPeo
@Override
@Override
public
BaseResponse
synchronization
(
Integer
id
)
{
public
BaseResponse
synchronization
(
Integer
id
)
{
PlanPeople
planPeople
=
planPeopleMapper
.
selectById
(
id
);
PlanPeople
planPeople
=
planPeopleMapper
.
selectById
(
id
);
if
(
planPeople
!=
null
)
{
Integer
planId
=
planPeople
.
getPlanId
();
Integer
planId
=
planPeople
.
getPlanId
();
PlanTraining
planTraining
=
planTrainingMapper
.
selectById
(
planId
);
PlanTraining
planTraining
=
planTrainingMapper
.
selectById
(
planId
);
if
(
planTraining
!=
null
){
HistoryArchives
historyArchives
=
new
HistoryArchives
();
HistoryArchives
historyArchives
=
new
HistoryArchives
();
historyArchives
.
setCreateTime
(
LocalDateTime
.
now
())
historyArchives
.
setCreateTime
(
LocalDateTime
.
now
())
.
setTime
(
planTraining
.
getStartTime
())
.
setTime
(
planTraining
.
getStartTime
())
...
@@ -137,4 +139,12 @@ public class PlanPeopleServiceImpl extends ServiceImpl<PlanPeopleMapper, PlanPeo
...
@@ -137,4 +139,12 @@ public class PlanPeopleServiceImpl extends ServiceImpl<PlanPeopleMapper, PlanPeo
return
BaseResponse
.
okData
(
"同步成功"
);
return
BaseResponse
.
okData
(
"同步成功"
);
}
}
else
{
return
BaseResponse
.
errorMsg
(
"该数据不存在,请重新输入正确的数据"
);
}
}
else
{
return
BaseResponse
.
errorMsg
(
"该数据不存在,请输入正确的数据"
);
}
}
}
}
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