瀏覽代碼

feat:添加内容库

zhaohaipeng 3 周之前
父節點
當前提交
060adcffd9

+ 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);
         }
     }