Commit b2da2b36 authored by 竹天卫's avatar 竹天卫
parents 456b9f43 1353e7af
......@@ -11,7 +11,7 @@
</sql>
<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
<include refid="where"/>
order by pp.id asc
......
......@@ -24,4 +24,10 @@ public class PlanPeopleVo implements Serializable {
@ApiModelProperty("文件名")
private String alias;
@ApiModelProperty("扩展名")
private String extName;
@ApiModelProperty("附件地址")
private String enclosureUrl;
}
......@@ -124,8 +124,10 @@ public class PlanPeopleServiceImpl extends ServiceImpl<PlanPeopleMapper, PlanPeo
@Override
public BaseResponse synchronization(Integer id) {
PlanPeople planPeople = planPeopleMapper.selectById(id);
if (planPeople!=null) {
Integer planId = planPeople.getPlanId();
PlanTraining planTraining = planTrainingMapper.selectById(planId);
if (planTraining!=null){
HistoryArchives historyArchives = new HistoryArchives();
historyArchives.setCreateTime(LocalDateTime.now())
.setTime(planTraining.getStartTime())
......@@ -137,4 +139,12 @@ public class PlanPeopleServiceImpl extends ServiceImpl<PlanPeopleMapper, PlanPeo
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