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