feat:解决newOuId抛NPE的问题

This commit is contained in:
lilong 2024-03-06 11:01:22 +08:00
parent 55358e0185
commit 2a8f4872b2

View File

@ -428,7 +428,7 @@ public class OuIdMigrateService {
if (record.getIsOuIdMigrated() == YesOrNo.YES)
return null;
// 找不到的newOuId不进行更新
if (newOuId == 0 || newOuId == null) {
if (newOuId == null || newOuId == 0 ) {
return null;
}
// 最原始的ouId不要被覆盖了