文件上传 后缀冗余

yun-zuoyi
wei.peng 6 years ago
parent f9d88b6a93
commit f1ed9a004f

@ -119,6 +119,12 @@ public class SysFileServiceImpl implements ISysFileService {
SysDictionary dictionary = sysDictionaryRDao.getByProperty(new String[]{"parentCodeRdd","dictionaryValue"}, SysDictionary dictionary = sysDictionaryRDao.getByProperty(new String[]{"parentCodeRdd","dictionaryValue"},
new Object[]{BaseConstWords.DICTIONARY_FILE_TYPE, fastDFSFile.getExt()}); new Object[]{BaseConstWords.DICTIONARY_FILE_TYPE, fastDFSFile.getExt()});
if(dictionary == null){
dictionary = sysDictionaryRDao.getByProperty(new String[]{"parentCodeRdd","dictionaryValue"},
new Object[]{BaseConstWords.DICTIONARY_FILE_TYPE, "."+fastDFSFile.getExt()});
}
SysFile sysFile = new SysFile(); SysFile sysFile = new SysFile();
sysFile.setDfsGroupName(fileAbsolutePath[0]); sysFile.setDfsGroupName(fileAbsolutePath[0]);
sysFile.setDfsFileName(fileAbsolutePath[1]); sysFile.setDfsFileName(fileAbsolutePath[1]);

Loading…
Cancel
Save