瀏覽代碼

图片说话xml中的字段修改

private_deployment
lrh 1 年之前
父節點
當前提交
1bb459000f
共有 2 個文件被更改,包括 15 次插入5 次删除
  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 查看文件

@@ -144,17 +144,15 @@ public class PhotoSpeakSchedule {
@Scheduled(cron = "0 20/30 * * * *?") // 每半小时检查一次 @Scheduled(cron = "0 20/30 * * * *?") // 每半小时检查一次
public void photoSpeakCreateHySchedule() { public void photoSpeakCreateHySchedule() {
PhotoSpeakVideo videoUpd = new PhotoSpeakVideo(); PhotoSpeakVideo videoUpd = new PhotoSpeakVideo();
videoUpd.setVideoStartDate(DateUtils.getHourDateBefore(2, new Date()));
videoUpd.setVideoStartDate(DateUtils.getHourDateBefore(2,new Date()));
videoUpd.setVideoHyStatus(EnumVideoStatus.fail.getCode()); videoUpd.setVideoHyStatus(EnumVideoStatus.fail.getCode());
List<PhotoSpeakVideo> list = photoSpeakVideoService.findList(videoUpd); List<PhotoSpeakVideo> list = photoSpeakVideoService.findList(videoUpd);
if (list != null && list.size() > 0) { if (list != null && list.size() > 0) {
for (PhotoSpeakVideo video : list) { for (PhotoSpeakVideo video : list) {
try { try {
if (StringUtils.isNotEmpty(video.getSaveDir())) {
photoSpeakVideoService.videoHy(video, false);
}
photoSpeakVideoService.videoHy(video,false);
} catch (Exception e) { } 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 查看文件

@@ -65,6 +65,15 @@
<if test=" null != voiceFrom "> <if test=" null != voiceFrom ">
and `voice_from` = #{voiceFrom} and `voice_from` = #{voiceFrom}
</if> </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 "> <if test=" null != voiceMouldId ">
and `voice_mould_id` = #{voiceMouldId} and `voice_mould_id` = #{voiceMouldId}
@@ -77,6 +86,9 @@
<if test=" null != videoStatus "> <if test=" null != videoStatus ">
and `video_status` = #{videoStatus} and `video_status` = #{videoStatus}
</if> </if>
<if test=" null != videoHyStatus ">
and `video_hy_status` = #{videoHyStatus}
</if>


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


Loading…
取消
儲存