|
@@ -43,7 +43,11 @@ public class ContentProfileServiceImpl implements ContentProfileService {
|
|
|
if (StringUtils.isEmpty(contentProfile.getContentId()) || Objects.isNull(contentProfile.getStage())) {
|
|
if (StringUtils.isEmpty(contentProfile.getContentId()) || Objects.isNull(contentProfile.getStage())) {
|
|
|
throw new RuntimeException("contentId and stageEnum must not null");
|
|
throw new RuntimeException("contentId and stageEnum must not null");
|
|
|
}
|
|
}
|
|
|
- ContentProfile profile = this.findContentProfileByIdAndStage(contentProfile.getContentId(), TaskStageEnum.getByValue(contentProfile.getStage()));
|
|
|
|
|
|
|
+
|
|
|
|
|
+ LambdaQueryWrapper<ContentProfile> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ wrapper.eq(ContentProfile::getContentId, contentProfile.getContentId());
|
|
|
|
|
+ wrapper.eq(ContentProfile::getStage, contentProfile.getStage());
|
|
|
|
|
+ ContentProfile profile = contentProfileMapper.selectOne(wrapper);
|
|
|
if (Objects.isNull(profile)) {
|
|
if (Objects.isNull(profile)) {
|
|
|
contentProfile.setIsDeleted(IsDeleteEnum.NORMAL.getValue());
|
|
contentProfile.setIsDeleted(IsDeleteEnum.NORMAL.getValue());
|
|
|
contentProfileMapper.insert(contentProfile);
|
|
contentProfileMapper.insert(contentProfile);
|