待办未更改状态
This commit is contained in:
parent
6488551a05
commit
a5120ba560
@ -84,6 +84,21 @@ public class ProcessDesignServiceImpl implements ProcessDesignService {
|
||||
processDesignProgressDO.setRemark(reqVO.getRemark());
|
||||
}
|
||||
processDesignProgressMapper.insert(processDesignProgressDO);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(newProgress.compareTo(OVER_PROGRESS_VALUE) > 0){
|
||||
throw exception(TASK_REPORT_PARAMS_ERRORJD);
|
||||
}else{
|
||||
//反之插入数据库数据
|
||||
ProcessDesignProgressDO processDesignProgressDO = new ProcessDesignProgressDO();
|
||||
processDesignProgressDO.setProcessDesignId(reqVO.getZid());
|
||||
processDesignProgressDO.setProgress(reqVO.getProgress());
|
||||
processDesignProgressDO.setBlueprintLink(reqVO.getImageLink());
|
||||
processDesignProgressMapper.insert(processDesignProgressDO);
|
||||
}
|
||||
|
||||
}
|
||||
if (newProgress.compareTo(OVER_PROGRESS_VALUE) == 0){
|
||||
//如果进度为100%,要删除待办提醒
|
||||
//1.查询父项拿到设计图纸类型
|
||||
@ -101,22 +116,6 @@ public class ProcessDesignServiceImpl implements ProcessDesignService {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(newProgress.compareTo(OVER_PROGRESS_VALUE) > 0){
|
||||
throw exception(TASK_REPORT_PARAMS_ERRORJD);
|
||||
}else{
|
||||
//反之插入数据库数据
|
||||
ProcessDesignProgressDO processDesignProgressDO = new ProcessDesignProgressDO();
|
||||
processDesignProgressDO.setProcessDesignId(reqVO.getZid());
|
||||
processDesignProgressDO.setProgress(reqVO.getProgress());
|
||||
processDesignProgressDO.setBlueprintLink(reqVO.getImageLink());
|
||||
processDesignProgressMapper.insert(processDesignProgressDO);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user