This commit is contained in:
2023-11-14 13:57:47 +08:00
parent 0d6e637942
commit 31ff2bd299

View File

@@ -33,6 +33,11 @@ public class OrgCommonEntity extends CommonEntity {
@Override
public void preUpdate() {
if (StringUtils.isEmpty(organizationId)) {
this.organizationId =
Ctx.isLoggedIn() ? Ctx.currentUser().getOrganizationId() : organizationId;
}
super.preUpdate();
}
}