Przeglądaj źródła

人员评分列表优化

anderx 1 rok temu
rodzic
commit
742ebf2371

+ 1 - 1
src/main/java/com/goafanti/common/utils/BeanUtilsExt.java

@@ -32,7 +32,7 @@ public class BeanUtilsExt extends BeanUtils {
         for (Field field :clazz.getDeclaredFields()){
             field.setAccessible(true);
             try {
-                map.put(field.getName(),field.get(in));
+                if(field.get(in)!=null)map.put(field.getName(),field.get(in));
             } catch (IllegalAccessException e) {
                 throw new RuntimeException(e);
             }