소스 검색

feat:添加内容库

zhaohaipeng 1 개월 전
부모
커밋
060adcffd9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      supply-demand-engine-core/src/main/java/com/tzld/piaoquan/sde/service/impl/ContentProfileServiceImpl.java

+ 2 - 2
supply-demand-engine-core/src/main/java/com/tzld/piaoquan/sde/service/impl/ContentProfileServiceImpl.java

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