瀏覽代碼

sql报错

yumeng 4 年之前
父節點
當前提交
26e4be48b3

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouReportDailyMaterialMapper.xml

@@ -128,7 +128,7 @@
         photo_id as photoId
         from
         ctop_kuaishou_report_daily_material
-        WHERE stat_data = #{statDate}
+        WHERE stat_date = #{statDate}
         and signature is null
         group by photo_id
     </select>

+ 1 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaiShouHistoryReportTaskServiceImpl.java

@@ -333,6 +333,7 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
     @Override
     public void getMd5V2(String statDate) {
         List<KuaiShouReportDailyMaterialVo> photoList = kuaishouReportDailyMaterialMapper.getPhotoListByDate(statDate);
+        XxlJobLogger.log("素材未匹配md5:数据长度:{}", photoList.size());
         if (!Check.isNull(photoList)) {
             for (KuaiShouReportDailyMaterialVo materialVo : photoList) {
                 executorService.submit(new Runnable() {