Commit b2da2b36 authored by 竹天卫's avatar 竹天卫
parents 456b9f43 1353e7af
...@@ -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
......
...@@ -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;
} }
...@@ -124,17 +124,27 @@ public class PlanPeopleServiceImpl extends ServiceImpl<PlanPeopleMapper, PlanPeo ...@@ -124,17 +124,27 @@ 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);
Integer planId = planPeople.getPlanId(); if (planPeople!=null) {
PlanTraining planTraining = planTrainingMapper.selectById(planId); Integer planId = planPeople.getPlanId();
HistoryArchives historyArchives = new HistoryArchives(); PlanTraining planTraining = planTrainingMapper.selectById(planId);
historyArchives.setCreateTime(LocalDateTime.now()) if (planTraining!=null){
.setTime(planTraining.getStartTime()) HistoryArchives historyArchives = new HistoryArchives();
.setType(planTraining.getContent()) historyArchives.setCreateTime(LocalDateTime.now())
.setContent(planTraining.getObjective()) .setTime(planTraining.getStartTime())
.setUserId(planPeople.getUserId()); .setType(planTraining.getContent())
.setContent(planTraining.getObjective())
.setUserId(planPeople.getUserId());
historyArchivesMapper.insert(historyArchives); historyArchivesMapper.insert(historyArchives);
return BaseResponse.okData("同步成功"); return BaseResponse.okData("同步成功");
}
else {
return BaseResponse.errorMsg("该数据不存在,请重新输入正确的数据");
}
}
else {
return BaseResponse.errorMsg("该数据不存在,请输入正确的数据");
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment