countryCard,对比接口,处理文件的名称。
This commit is contained in:
+4
@@ -99,4 +99,8 @@ public class CountryCardManageReleaseDetailEO implements Serializable {
|
||||
/**Country Card模板维护-字典项实体*/
|
||||
@TableField(exist = false)
|
||||
private List<CountryCardTempItemEO> countryCardTempItemEOList;
|
||||
|
||||
@ApiModelProperty(value = "内容附件名称")
|
||||
@TableField(exist = false)
|
||||
private String contentFileName;
|
||||
}
|
||||
|
||||
+13
@@ -2,6 +2,8 @@ package com.jero.modules.problemKnowledgeBase.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.modules.oss.entity.OSSFile;
|
||||
import com.jero.modules.oss.service.IOSSFileService;
|
||||
import com.jero.modules.problemKnowledgeBase.entity.CountryCardManageReleaseDetailEO;
|
||||
import com.jero.modules.problemKnowledgeBase.entity.CountryCardTempEO;
|
||||
import com.jero.modules.problemKnowledgeBase.entity.CountryCardTempItemEO;
|
||||
@@ -38,6 +40,8 @@ public class CountryCardManageReleaseDetailEOServiceImpl extends ServiceImpl<Cou
|
||||
private ICountryCardTempEOService countryCardTempEOService;
|
||||
@Autowired
|
||||
private ICountryCardTempItemEOService countryCardTempItemEOService;
|
||||
@Autowired
|
||||
private IOSSFileService iOSSFileService;
|
||||
|
||||
/**
|
||||
* 保存
|
||||
@@ -162,6 +166,15 @@ public class CountryCardManageReleaseDetailEOServiceImpl extends ServiceImpl<Cou
|
||||
data.setContentDropDownValue(contentDropDownValue);
|
||||
}
|
||||
}
|
||||
|
||||
//如果该条数据的标签类型是文件
|
||||
if(CollectionUtils.isNotEmpty(countryCardTempItemEOList) && StringUtils.equals(data.getLableType(), LableTypeEnum.FILE.getValue())){
|
||||
//文件的id
|
||||
String fileIds = data.getContent();
|
||||
List<OSSFile> fileInfos = this.iOSSFileService.getFileInfos(fileIds);
|
||||
String contentFileName = fileInfos.stream().map(OSSFile::getFileName).collect(Collectors.joining(","));
|
||||
data.setContentFileName(contentFileName);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user