Procházet zdrojové kódy

//vodeo

private_deployment
xhxu před 2 roky
rodič
revize
3785bffc8e
3 změnil soubory, kde provedl 18 přidání a 3 odebrání
  1. +1
    -1
      suimangAdmin/src/main/java/com/iformall/schedule/VideoSchedule.java
  2. +10
    -2
      suimangService/src/main/java/com/iformall/domain/po/sm/UserMouldVideo.java
  3. +7
    -0
      suimangService/src/main/resources/mapper/UserMouldVideoMapper.xml

+ 1
- 1
suimangAdmin/src/main/java/com/iformall/schedule/VideoSchedule.java Zobrazit soubor

@@ -42,7 +42,7 @@ public class VideoSchedule {
@Scheduled(cron = "0 20/30 * * * *?") // 每小时检查一次
public void userVideoCreateSchedule() {
UserMouldVideo userVideo = new UserMouldVideo();
userVideo.setStartDate(DateUtils.getHourDateBefore(2,new Date()));
userVideo.setVideoStartDate(DateUtils.getHourDateBefore(2,new Date()));
userVideo.setVideoStatus(EnumVideoStatus.fail.getCode());
List<UserMouldVideo> list = userMouldVideoService.findList(userVideo);
if (list != null && list.size() > 0) {


+ 10
- 2
suimangService/src/main/java/com/iformall/domain/po/sm/UserMouldVideo.java Zobrazit soubor

@@ -26,13 +26,21 @@ public class UserMouldVideo extends TenantEntity {
protected Long id;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value="查询-起始时间",name="startDate")
@io.swagger.annotations.ApiModelProperty(value="查询-创建起始时间",name="startDate")
private Date startDate;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value="查询-结束时间",name="endDate")
@io.swagger.annotations.ApiModelProperty(value="查询-创建结束时间",name="endDate")
private Date endDate;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value="查询-生成视频起始时间",name="videoStartDate")
private Date videoStartDate;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value="查询-生成视频结束时间",name="videoEndDate")
private Date videoEndDate;

@io.swagger.annotations.ApiModelProperty(value="用户Id",name="userId")
private Long userId;



+ 7
- 0
suimangService/src/main/resources/mapper/UserMouldVideoMapper.xml Zobrazit soubor

@@ -84,6 +84,13 @@
and create_date &lt; #{endDate}
</if>

<if test=" null != videoStartDate ">
and create_video_date &gt;= #{videoStartDate}
</if>
<if test=" null != videoEndDate">
and create_video_date &lt; #{videoEndDate}
</if>

<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


Načítá se…
Zrušit
Uložit