fix[storage]: 修复误删除cell代码

This commit is contained in:
jaysunxiao committed 2021-10-22 16:05:45 +08:00
1 parent f25d563802
commit 61f61894b4
3 files changed
+8 -1

No files matched your search

@@ -100,7 +100,9 @@ public abstract class CellUtils {
// 普通数字
if (null != format && !format.contains(StringUtils.PERIOD)) {
var longValue = (long) value;
// 对于无小数部分的数字类型,转为Long
if (longValue == value) {
return Long.valueOf(longValue);
}
}
return value;
}
@@ -34,6 +34,7 @@ public class StudentResource {
private String name;
private int age;
private float score;
private String[] courses;
private User[] users;
private User user;
@@ -55,6 +56,10 @@ public class StudentResource {
return age;
}
public float getScore() {
return score;
}
public String[] getCourses() {
return courses;
}