Merge branch 'temp' of http://1.14.125.6:3000/mianbin/ops-pro into temp
This commit is contained in:
commit
00a172715f
@ -139,9 +139,9 @@ public class PipelineServiceImpl extends ServiceImpl<PipelineDao, PipPipeline> i
|
||||
pipStage.setCreateTime(LocalDateTime.now());
|
||||
pipStage.setCreator(String.valueOf(WebFrameworkUtils.getLoginUserId()));
|
||||
if (o.isCode()){
|
||||
pipStage.setCode(false);
|
||||
}else {
|
||||
pipStage.setCode(true);
|
||||
}else {
|
||||
pipStage.setCode(false);
|
||||
}
|
||||
pipStageList.add(pipStage);
|
||||
|
||||
@ -158,9 +158,9 @@ public class PipelineServiceImpl extends ServiceImpl<PipelineDao, PipPipeline> i
|
||||
childStage.setCreateTime(LocalDateTime.now());
|
||||
childStage.setCreator(String.valueOf(WebFrameworkUtils.getLoginUserId()));
|
||||
if (j.isCode()){
|
||||
childStage.setCode(false);
|
||||
}else {
|
||||
childStage.setCode(true);
|
||||
}else {
|
||||
childStage.setCode(false);
|
||||
}
|
||||
|
||||
pipStageList.add(childStage);
|
||||
|
@ -403,7 +403,10 @@ public class StageServiceImpl extends ServiceImpl<PipStageDao, PipStage> impleme
|
||||
updateList.add(stage);
|
||||
}
|
||||
}
|
||||
//如果删除的为最后一个新增阶段,则无需更新前面阶段的sort值
|
||||
if (!CollectionUtils.isEmpty(updateList)){
|
||||
stageDao.updateBatch(updateList);
|
||||
}
|
||||
stageDao.deleteById(stageId);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user