Browse Source

Merge branches 'dev' and 'dev_voice_share_point' of http://git.elinkit.com.cn:7070/r/epmet-cloud into dev_voice_share_point

dev_shibei_match
sunyuchao 5 years ago
parent
commit
8e90ed360a
  1. 2
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/ResiTopicAttachmentDTO.java
  2. 2
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/entity/ResiTopicAttachmentEntity.java
  3. 1
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java
  4. 4
      epmet-module/resi-group/resi-group-server/src/main/resources/db/migration/V0.0.8__alter_resi_topic_attachment.sql

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

@ -54,7 +54,7 @@ public class ResiTopicAttachmentDTO implements Serializable {
private String attachmentFormat;
/**
* 附件类型图片 - figure 视频 - video 语音 - voice 文档 - doc
* 附件类型图片 - image 视频 - video 语音 - voice 文档 - doc
*/
private String attachmentType;

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

@ -54,7 +54,7 @@ public class ResiTopicAttachmentEntity extends BaseEpmetEntity {
private String attachmentFormat;
/**
* 附件类型图片 - figure 视频 - video 语音 - voice 文档 - doc
* 附件类型图片 - image 视频 - video 语音 - voice 文档 - doc
*/
private String attachmentType;

1
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

@ -315,6 +315,7 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi
attachment.setCreatedBy(tokenDto.getUserId());
attachment.setAttachmentFormat(url.substring(url.lastIndexOf(".") + NumConstant.ONE).toLowerCase());
attachment.setSort(sort++);
attachment.setAttachmentType("image");
resiTopicAttachmentDao.insertOne(attachment);
}
}

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

@ -0,0 +1,4 @@
ALTER TABLE `resi_topic_attachment`
MODIFY COLUMN `ATTACHMENT_TYPE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc))' AFTER `ATTACHMENT_FORMAT`;
UPDATE resi_topic_attachment SET ATTACHMENT_TYPE = 'image';
Loading…
Cancel
Save