档案目录校验

This commit is contained in:
liang.chao 2025-09-17 09:04:32 +08:00
parent f2e3c55fcd
commit 6426cbeca3
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public class FileManageServiceImpl implements FileManageService {
public List<DaKyProFilesContentsDto> list(DaKyProFilesContentsDto daKyProFilesContentsDto) {
List<DaKyProFilesContentsDto> list = fileManageMapper.list(daKyProFilesContentsDto);
if (daKyProFilesContentsDto.getId() != null) {
list.removeIf(dto -> !"2".equals(dto.getDataSource()));
list.removeIf(dto -> "0".equals(dto.getIsUnique()));
Integer level = fileManageMapper.getLevelById(daKyProFilesContentsDto.getId());
for (Iterator<DaKyProFilesContentsDto> it = list.iterator(); it.hasNext(); ) {
DaKyProFilesContentsDto item = it.next();

View File

@ -127,7 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM
da_ky_pro_files_contents dkp
WHERE
dkp.del_flag = '1' and dkp.pro_id = #{proId} and level in (0,1,2,3)
dkp.del_flag = '1' and dkp.pro_id = #{proId} and level in (0,1,2,3,4)
<if test="keyWord != null and keyWord != ''">
and dkp.content_name like concat('%', #{keyWord}, '%')
</if>