Kaynağa Gözat

图片说话xml中的字段修改

private_deployment
lrh 1 yıl önce
ebeveyn
işleme
1bb459000f
2 değiştirilmiş dosya ile 15 ekleme ve 5 silme
  1. +3
    -5
      suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java
  2. +12
    -0
      suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml

+ 3
- 5
suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java Dosyayı Görüntüle

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


+ 12
- 0
suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml Dosyayı Görüntüle

@@ -65,6 +65,15 @@
<if test=" null != voiceFrom ">
and `voice_from` = #{voiceFrom}
</if>
<if test=" null != isHy ">
and `is_hy` = #{isHy}
</if>
<if test=" null != musicId ">
and `music_id` = #{musicId}
</if>
<if test=" null != saveDir ">
and `save_dir` = #{saveDir}
</if>

<if test=" null != voiceMouldId ">
and `voice_mould_id` = #{voiceMouldId}
@@ -77,6 +86,9 @@
<if test=" null != videoStatus ">
and `video_status` = #{videoStatus}
</if>
<if test=" null != videoHyStatus ">
and `video_hy_status` = #{videoHyStatus}
</if>

<if test=" null != startDate ">
and create_date &gt;= #{startDate}


Yükleniyor…
İptal
Kaydet