mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-20 06:24:12 +00:00
perf[orm]: entity empty judgement
This commit is contained in:
@@ -60,7 +60,7 @@ public interface IEntity<PK extends Comparable<PK>> {
|
||||
if (idValue instanceof Number) {
|
||||
return ((Number) idValue).doubleValue() == 0D;
|
||||
} else {
|
||||
return StringUtils.isEmpty((CharSequence) idValue);
|
||||
return StringUtils.isEmpty(idValue.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user