认证-参数项收集-附件模板下载修改

This commit is contained in:
liyawei
2022-06-07 18:50:02 +08:00
parent 5356bfb8ea
commit c5ef179052
@@ -327,12 +327,15 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
*/
private List<ParamsConfigDataVO> getConfigDataVOList(String controlType, ParamsConfigEO paramsConfigEO, ParamsConfigDataEO paramsConfigDataEO, ParamsCollectManifestEO paramsCollectManifestEO) {
List<ParamsConfigDataVO> paramsConfigDataVOList = new ArrayList<>();
List<OSSFile> ossFiles = ossFileService.getFileInfosByConnectId(paramsCollectManifestEO.getFileTemplate());
String templateId = null;
String templateName= null;
if (CollectionUtil.isNotEmpty(ossFiles)) {
templateId = ossFiles.get(0).getId();
templateName = ossFiles.get(0).getFileName();
String templateName = null;
if (StringUtils.isNotEmpty(paramsCollectManifestEO.getFileTemplate())) {
List<OSSFile> ossFiles = ossFileService.getFileInfosByConnectId(paramsCollectManifestEO.getFileTemplate());
if (CollectionUtil.isNotEmpty(ossFiles)) {
templateId = ossFiles.get(0).getId();
templateName = ossFiles.get(0).getFileName();
}
}
if (ControlTypeEnum.TEXT.getValue().equals(controlType)) {