提交代码

dev_xd
姜玉琦 2025-05-07 22:18:18 +08:00
parent 7778f37f02
commit 5c6158377e
3 changed files with 8 additions and 8 deletions

View File

@ -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);
}

View File

@ -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>

View File

@ -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());