档案管理树结构修改

This commit is contained in:
liang.chao 2025-09-17 10:01:59 +08:00
parent a7b60a977a
commit 0e12ca2cfc
4 changed files with 12 additions and 11 deletions

View File

@ -42,5 +42,5 @@ public interface FileManageMapper {
Integer getMaxSort(DaKyProFilesContentsDto dto); Integer getMaxSort(DaKyProFilesContentsDto dto);
Integer getSortById(Integer id); Integer getSortById(String id);
} }

View File

@ -27,7 +27,7 @@ public interface FileManageService {
Integer getMaxSort(DaKyProFilesContentsDto dto); Integer getMaxSort(DaKyProFilesContentsDto dto);
Integer getSortById(Integer id); Integer getSortById(String id);
List<DaKyProFilesContentsDto> getFileManageTree(DaKyProFilesContentsDto dto); List<DaKyProFilesContentsDto> getFileManageTree(DaKyProFilesContentsDto dto);
} }

View File

@ -130,7 +130,7 @@ public class FileManageServiceImpl implements FileManageService {
} }
@Override @Override
public Integer getSortById(Integer id) { public Integer getSortById(String id) {
return fileManageMapper.getSortById(id); return fileManageMapper.getSortById(id);
} }

View File

@ -191,14 +191,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE WHERE
dkpfc.del_flag = '1' and dkpfc.parent_id = #{parentId} dkpfc.del_flag = '1' and dkpfc.parent_id = #{parentId}
</select> </select>
<select id="getSortById" resultType="java.lang.Integer">
SELECT
dkpfc.sort
FROM
da_ky_pro_files_contents dkpfc
WHERE
dkpfc.id = #{id}
</select>
<select id="getLevelById" resultType="java.lang.Integer"> <select id="getLevelById" resultType="java.lang.Integer">
SELECT SELECT
dkp.level dkp.level
@ -207,4 +200,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE WHERE
dkp.id = #{id} dkp.id = #{id}
</select> </select>
<select id="getSortById" resultType="java.lang.Integer">
SELECT
dkpfc.sort
FROM
da_ky_pro_files_contents dkpfc
WHERE
dkpfc.id = #{id}
</select>
</mapper> </mapper>