mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 01:01:52 +08:00
fix: 重复 file 路径 Bug
This commit is contained in:
parent
9a46860086
commit
639c7820f9
@ -30,7 +30,7 @@ public class FileContentDAOImpl implements DBFileContentFrameworkDAO {
|
|||||||
@Override
|
@Override
|
||||||
public byte[] selectContent(Long configId, String path) {
|
public byte[] selectContent(Long configId, String path) {
|
||||||
List<FileContentDO> fileContentDOs = fileContentMapper.selectList(
|
List<FileContentDO> fileContentDOs = fileContentMapper.selectList(
|
||||||
buildQuery(configId, path).select(FileContentDO::getContent));
|
buildQuery(configId, path).select(FileContentDO::getContent).orderByDesc(FileContentDO::getId));
|
||||||
return CollUtil.isNotEmpty(fileContentDOs) ? CollUtil.getFirst(fileContentDOs).getContent() : null;
|
return CollUtil.isNotEmpty(fileContentDOs) ? CollUtil.getFirst(fileContentDOs).getContent() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user