Bladeren bron

fix countByContentId

supeng 6 dagen geleden
bovenliggende
commit
4ca88d1cd0

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

@@ -308,9 +308,7 @@ public class ExecutionTaskServiceImpl implements ExecutionTaskService {
             }
             //TODO 待优化,只针对本策略去重
             String videoId = record.getString("videoid");
-            log.info("yesterdayTopReturnVideoExecutionTaskCreateHandler videoId={}", videoId);
             int count = sdExecutionTaskContentMapper.countByContentId(ContentTypeEnum.VIDEO.getValue(), videoId);
-            log.info("yesterdayTopReturnVideoExecutionTaskCreateHandler videoId={}", videoId);
             if (count > 0) {
                 continue;
             }

+ 2 - 2
supply-demand-engine-core/src/main/resources/mapper/SdExecutionTaskContentMapper.xml

@@ -24,7 +24,7 @@
         from sd_execution_task_content t1
                  inner join sd_execution_task t2
                             on t1.execution_task_id = t2.id and t1.is_deleted = 0 and t2.is_deleted = 0 and
-                               t1.content_type = #{contentType}
-                                and t2.content_id = #{contentId};
+                               t2.content_type = #{contentType}
+                                and t1.content_id = #{contentId};
     </select>
 </mapper>