chore: code format

This commit is contained in:
Michael Yang 2025-09-25 19:29:37 +08:00
parent 3618f70055
commit 3c26f72df8

View File

@ -75,7 +75,7 @@ public class ToManyRelation<SelfEntity> extends AbstractRelation<SelfEntity> {
String[] splitValues = ((String) targetValue).split(selfValueSplitBy);
for (String splitValue : splitValues) {
// 排除空值
if (splitValue == null || splitValue.length() == 0) {
if (splitValue == null || splitValue.isEmpty()) {
continue;
}
//优化分割后的数据类型(防止在数据库查询时候出现隐式转换)