From 1bb459000fd6f1c10ed475db229576feee2ba847 Mon Sep 17 00:00:00 2001 From: lrh <1585126058@qq.com> Date: Thu, 29 Jun 2023 17:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=AF=B4=E8=AF=9Dxml?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/schedule/PhotoSpeakSchedule.java | 8 +++----- .../main/resources/mapper/PhotoSpeakVideoMapper.xml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java b/suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java index 2319e96..a7d01f8 100644 --- a/suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java +++ b/suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java @@ -144,17 +144,15 @@ public class PhotoSpeakSchedule { @Scheduled(cron = "0 20/30 * * * *?") // 每半小时检查一次 public void photoSpeakCreateHySchedule() { PhotoSpeakVideo videoUpd = new PhotoSpeakVideo(); - videoUpd.setVideoStartDate(DateUtils.getHourDateBefore(2, new Date())); + videoUpd.setVideoStartDate(DateUtils.getHourDateBefore(2,new Date())); videoUpd.setVideoHyStatus(EnumVideoStatus.fail.getCode()); List list = photoSpeakVideoService.findList(videoUpd); if (list != null && list.size() > 0) { for (PhotoSpeakVideo video : list) { try { - if (StringUtils.isNotEmpty(video.getSaveDir())) { - photoSpeakVideoService.videoHy(video, false); - } + photoSpeakVideoService.videoHy(video,false); } catch (Exception e) { - logger.error("TtCouponVideoSchedule error.couponVideoSchedule:" + video.getId(), e); + logger.error("TtCouponVideoSchedule error.couponVideoSchedule:"+video.getId(),e); } } } diff --git a/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml b/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml index b286548..08fcdae 100644 --- a/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml +++ b/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml @@ -65,6 +65,15 @@ and `voice_from` = #{voiceFrom} + + and `is_hy` = #{isHy} + + + and `music_id` = #{musicId} + + + and `save_dir` = #{saveDir} + and `voice_mould_id` = #{voiceMouldId} @@ -77,6 +86,9 @@ and `video_status` = #{videoStatus} + + and `video_hy_status` = #{videoHyStatus} + and create_date >= #{startDate}