|
@@ -47,11 +47,11 @@ public class ContentProfileServiceImpl implements ContentProfileService {
|
|
|
}
|
|
}
|
|
|
ContentProfile profile = this.findContentProfileByIdAndStage(contentProfile.getContentId(), ContentProfileStageEnum.getByValue(contentProfile.getStage()));
|
|
ContentProfile profile = this.findContentProfileByIdAndStage(contentProfile.getContentId(), ContentProfileStageEnum.getByValue(contentProfile.getStage()));
|
|
|
if (Objects.isNull(profile)) {
|
|
if (Objects.isNull(profile)) {
|
|
|
- profile.setIsDeleted(IsDeleteEnum.NORMAL.getValue());
|
|
|
|
|
|
|
+ contentProfile.setIsDeleted(IsDeleteEnum.NORMAL.getValue());
|
|
|
contentProfileMapper.insert(contentProfile);
|
|
contentProfileMapper.insert(contentProfile);
|
|
|
} else {
|
|
} else {
|
|
|
contentProfile.setId(profile.getId());
|
|
contentProfile.setId(profile.getId());
|
|
|
- profile.setIsDeleted(IsDeleteEnum.NORMAL.getValue());
|
|
|
|
|
|
|
+ contentProfile.setIsDeleted(IsDeleteEnum.NORMAL.getValue());
|
|
|
contentProfileMapper.updateById(contentProfile);
|
|
contentProfileMapper.updateById(contentProfile);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|