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
b2da2b36
Commit
b2da2b36
authored
Oct 28, 2020
by
竹天卫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.203.232.171:8888/zhutianwei/tianjin-cement
parents
456b9f43
1353e7af
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
11 deletions
+27
-11
PlanPeopleMapper.xml
...n/wise/sc/cement/business/mapper/xml/PlanPeopleMapper.xml
+1
-1
PlanPeopleVo.java
...ava/cn/wise/sc/cement/business/model/vo/PlanPeopleVo.java
+6
-0
PlanPeopleServiceImpl.java
...c/cement/business/service/impl/PlanPeopleServiceImpl.java
+20
-10
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/mapper/xml/PlanPeopleMapper.xml
View file @
b2da2b36
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</sql>
</sql>
<select
id=
"getPage"
resultType=
"cn.wise.sc.cement.business.model.vo.PlanPeopleVo"
>
<select
id=
"getPage"
resultType=
"cn.wise.sc.cement.business.model.vo.PlanPeopleVo"
>
select pp.
id,pp.name,pp.account,pp.status,pp.alias
select pp.
*
from plan_people pp
from plan_people pp
<include
refid=
"where"
/>
<include
refid=
"where"
/>
order by pp.id asc
order by pp.id asc
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/model/vo/PlanPeopleVo.java
View file @
b2da2b36
...
@@ -24,4 +24,10 @@ public class PlanPeopleVo implements Serializable {
...
@@ -24,4 +24,10 @@ public class PlanPeopleVo implements Serializable {
@ApiModelProperty
(
"文件名"
)
@ApiModelProperty
(
"文件名"
)
private
String
alias
;
private
String
alias
;
@ApiModelProperty
(
"扩展名"
)
private
String
extName
;
@ApiModelProperty
(
"附件地址"
)
private
String
enclosureUrl
;
}
}
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/PlanPeopleServiceImpl.java
View file @
b2da2b36
...
@@ -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