提交代码
parent
7778f37f02
commit
5c6158377e
|
@ -70,7 +70,7 @@ public interface ProPlanScheduleMapper
|
|||
/**
|
||||
* 更新总进度
|
||||
* @param proId
|
||||
* @param totalschedule
|
||||
* @param totalSchedule
|
||||
*/
|
||||
public void updateProPlanTotalSchedule(@Param("proId") Long proId, @Param("totalschedule") String totalschedule);
|
||||
public void updateProPlanTotalSchedule(@Param("proId") Long proId, @Param("totalSchedule") String totalSchedule);
|
||||
}
|
||||
|
|
|
@ -157,10 +157,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
join (
|
||||
select max(id) as max_id
|
||||
from pro_plan_schedule
|
||||
where project_id = #{proid}
|
||||
where project_id = #{proId}
|
||||
and is_del = '0'
|
||||
) as b on a.id = b.max_id
|
||||
set a.total_schedule = #{totalschedule}
|
||||
set a.total_schedule = #{totalSchedule}
|
||||
</update>
|
||||
|
||||
</mapper>
|
|
@ -185,7 +185,7 @@ public class ProPlanScheduleServiceImpl implements IProPlanScheduleService
|
|||
private void RecursionEditStartDate(ProPlan plan){
|
||||
if(plan.getStartDate()!=null){
|
||||
int res = proPlanMapper.updateProPlan(plan);
|
||||
if(res>0 && plan.getTaskOutlineLevel()>1){
|
||||
if(res>0){
|
||||
ProPlan entity = proPlanMapper.selectProPlanByParams(plan.getProjectId(),plan.getParentId());
|
||||
if(entity!=null){
|
||||
List<ProPlan> belows = proPlanMapper.selectProPlanBelows(entity.getProjectId(),entity.getTaskId());
|
||||
|
@ -227,7 +227,7 @@ public class ProPlanScheduleServiceImpl implements IProPlanScheduleService
|
|||
}
|
||||
}else{
|
||||
int res = proPlanMapper.updateProPlanStartDate(plan);
|
||||
if(res>0 && plan.getTaskOutlineLevel()>1){
|
||||
if(res>0){
|
||||
ProPlan entity = proPlanMapper.selectProPlanByParams(plan.getProjectId(),plan.getParentId());
|
||||
if(entity!=null){
|
||||
List<ProPlan> belows = proPlanMapper.selectProPlanBelows(entity.getProjectId(),entity.getTaskId());
|
||||
|
@ -277,7 +277,7 @@ public class ProPlanScheduleServiceImpl implements IProPlanScheduleService
|
|||
private void RecursionEditFinishDate(ProPlan plan){
|
||||
if(plan.getFinishDate()!=null){
|
||||
int res = proPlanMapper.updateProPlan(plan);
|
||||
if(res>0 && plan.getTaskOutlineLevel()>1){
|
||||
if(res>0){
|
||||
// 判断当前结构其它部位是否已全部完成
|
||||
List<ProPlan> brothers = proPlanMapper.selectProPlanBrothers(plan.getProjectId(),plan.getParentId());
|
||||
if(brothers.size()==0){
|
||||
|
@ -326,7 +326,7 @@ public class ProPlanScheduleServiceImpl implements IProPlanScheduleService
|
|||
}
|
||||
}else{
|
||||
int res = proPlanMapper.updateProPlanFinishDate(plan);
|
||||
if(res>0 && plan.getTaskOutlineLevel()>1){
|
||||
if(res>0){
|
||||
ProPlan entity = proPlanMapper.selectProPlanByParams(plan.getProjectId(),plan.getParentId());
|
||||
if(entity!=null){
|
||||
List<ProPlan> belows = proPlanMapper.selectProPlanBelows(entity.getProjectId(),entity.getTaskId());
|
||||
|
|
Loading…
Reference in New Issue