🐛 超管默认不限组织范围,并修复司机同步初始密码不合规

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-29 21:41:52 +08:00
parent 087f361a8b
commit 0e75780908
12 changed files with 62 additions and 52 deletions
@@ -110,6 +110,9 @@ public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> impleme
validateUniqueCode(region);
// 设置祖区划编号
Region parent = getByCode(region.getParentCode());
if (level != null && level > COUNTRY_LEVEL && (Func.isEmpty(parent) || Func.isEmpty(parent.getCode()))) {
throw new ServiceException("父区划不存在,请重新选择父区划");
}
if (Func.isNotEmpty(parent) && Func.isNotEmpty(parent.getCode())) {
String ancestors = parent.getRegionLevel() != null && parent.getRegionLevel() == COUNTRY_LEVEL
? parent.getCode()