code review:统计代码

This commit is contained in:
YunaiV
2023-10-11 12:32:28 +08:00
parent 704087ce86
commit fef808d88c
32 changed files with 73 additions and 181 deletions

View File

@ -132,7 +132,9 @@ public class AreaUtils {
return convertList(areas.values(), func, area -> type.getType().equals(area.getType()));
}
// TODO @疯狂:注释写下;
public static Integer getParentIdByType(Integer id, @NonNull AreaTypeEnum type) {
// TODO @疯狂:这种不要用 while true因为万一脏数据可能会死循环可以转换成 for (int i = 0; i < Byte.MAX; i++) 一般是优先层级;
do {
Area area = AreaUtils.getArea(id);
if (area == null) {