Browse Source

为话题附件表添加语音或视频附件的时长,单位是秒

master
sunyuchao 5 years ago
parent
commit
1973866e3d
  1. 10
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/ResiTopicAttachmentDTO.java
  2. 5
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/TopicDraftAttachmentDTO.java
  3. 5
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/entity/ResiTopicAttachmentEntity.java
  4. 5
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/entity/TopicDraftAttachmentEntity.java
  5. 3
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/excel/TopicDraftAttachmentExcel.java
  6. 3
      epmet-module/resi-group/resi-group-server/src/main/resources/db/migration/V0.0.9__alter_resi_topic_attachment.sql

10
epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/ResiTopicAttachmentDTO.java

@ -63,6 +63,16 @@ public class ResiTopicAttachmentDTO implements Serializable {
*/
private String attachmentUrl;
/**
* 排序字段解决多张图片的createdTime相同时的排序问题
* */
private Integer sort;
/**
* 语音或视频时长
* */
private Integer duration;
/**
* 删除标记 0未删除1已删除
*/

5
epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/TopicDraftAttachmentDTO.java

@ -84,6 +84,11 @@ public class TopicDraftAttachmentDTO implements Serializable {
*/
private String status;
/**
* 语音或视频时长
* */
private Integer duration;
/**
* 删除标记 0未删除1已删除
*/

5
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/entity/ResiTopicAttachmentEntity.java

@ -68,4 +68,9 @@ public class ResiTopicAttachmentEntity extends BaseEpmetEntity {
* */
private Integer sort;
/**
* 语音或视频时长
* */
private Integer duration;
}

5
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/entity/TopicDraftAttachmentEntity.java

@ -84,4 +84,9 @@ public class TopicDraftAttachmentEntity extends BaseEpmetEntity {
*/
private String status;
/**
* 语音或视频时长
* */
private Integer duration;
}

3
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/excel/TopicDraftAttachmentExcel.java

@ -59,6 +59,9 @@ public class TopicDraftAttachmentExcel {
"block: 结果违规;rejected:人工审核驳回;approved:人工审核通过)现在图片是同步审核的,所以图片只有auto_passed一种状态")
private String status;
@Excel(name = "语音或视频时长,秒")
private Integer duration;
@Excel(name = "删除标记 0:未删除,1:已删除")
private String delFlag;

3
epmet-module/resi-group/resi-group-server/src/main/resources/db/migration/V0.0.9__alter_resi_topic_attachment.sql

@ -0,0 +1,3 @@
ALTER TABLE `resi_topic_attachment`
MODIFY COLUMN `SORT` int(1) NOT NULL COMMENT '排序字段' AFTER `ATTACHMENT_URL`,
ADD COLUMN `DURATION` int(11) UNSIGNED ZEROFILL NULL DEFAULT 0 COMMENT '语音或视频时长,秒' AFTER `SORT`;
Loading…
Cancel
Save