fix:sort时有类型转换异常

This commit is contained in:
litianxiang
2025-10-14 17:31:30 +08:00
parent 422d547cfd
commit 309d95ab3c

View File

@@ -100,7 +100,7 @@ public class CollectionSortServiceImpl extends ServiceImpl<CollectionSortMapper,
throw new BusinessException("获取排序号失败");
}
private Long getMaxSortFromDB(Long projectId, Long parentId) {
private Integer getMaxSortFromDB(Long projectId, Long parentId) {
QueryWrapper<CollectionSort> qw = new QueryWrapper<>();
qw.select("COALESCE(MAX(sort), 0) as maxSort")
.eq("project_id", projectId);