|
@@ -137,6 +137,7 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
|
|
|
public void delete(String id) {
|
|
|
ProjectInfo projectInfo = getById(id);
|
|
|
projectInfo.setDelFlag(CommonConstant.DEL_FLAG_1);
|
|
|
+ projectInfo.setStatus(ProjectStatuseEnum.ABANDONED.getType());
|
|
|
projectInfo.setDeleteTime(new Date());
|
|
|
updateById(projectInfo);
|
|
|
if (projectInfo.getVersion() > 1) {
|
|
@@ -159,6 +160,7 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
|
|
|
Date curDate = new Date();
|
|
|
projectInfos.forEach(v -> {
|
|
|
v.setDelFlag(CommonConstant.DEL_FLAG_1);
|
|
|
+ v.setStatus(ProjectStatuseEnum.ABANDONED.getType());
|
|
|
v.setDeleteTime(curDate);
|
|
|
});
|
|
|
updateBatchById(projectInfos);
|