Ver Fonte

feat:修复选题任务

zhaohaipeng há 3 semanas atrás
pai
commit
5a8672648d

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

@@ -43,7 +43,11 @@ public class ContentProfileServiceImpl implements ContentProfileService {
         if (StringUtils.isEmpty(contentProfile.getContentId()) || Objects.isNull(contentProfile.getStage())) {
             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)) {
             contentProfile.setIsDeleted(IsDeleteEnum.NORMAL.getValue());
             contentProfileMapper.insert(contentProfile);