|
|
@ -699,6 +699,7 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
QueryWrapper<ResiTopicAttachmentEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(FieldConstant.DEL_FLAG,NumConstant.ZERO_STR); |
|
|
|
wrapper.eq(TopicConstant.TOPIC_ID,topicId); |
|
|
|
wrapper.eq(TopicConstant.FIELD_TOPIC_ATTACHMENT_TYPE,"image"); |
|
|
|
wrapper.orderByAsc(TopicConstant.SORT); |
|
|
|
List<ResiTopicAttachmentEntity> attachments = resiTopicAttachmentDao.selectList(wrapper); |
|
|
|
List<String> attachmentUrls = new ArrayList<>(); |
|
|
@ -1249,6 +1250,7 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
QueryWrapper<ResiTopicAttachmentEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(FieldConstant.DEL_FLAG,NumConstant.ZERO_STR); |
|
|
|
wrapper.eq(TopicConstant.TOPIC_ID,formDTO.getTopicId()); |
|
|
|
wrapper.eq(TopicConstant.FIELD_TOPIC_ATTACHMENT_TYPE,"image"); |
|
|
|
wrapper.orderByAsc(TopicConstant.SORT); |
|
|
|
List<ResiTopicAttachmentEntity> attachments = resiTopicAttachmentDao.selectList(wrapper); |
|
|
|
if (attachments.size() != NumConstant.ZERO){ |
|
|
|