🐛 超管默认不限组织范围,并修复司机同步初始密码不合规
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user