Excel支持导入Boolean型数据

This commit is contained in:
RuoYi
2020-11-28 11:51:41 +08:00
parent c0d66fffcd
commit 9d30a4652c
2 changed files with 8 additions and 5 deletions

View File

@@ -204,8 +204,10 @@ public class ReflectUtils
args[i] = DateUtil.getJavaDate((Double) args[i]);
}
}
else if (cs[i] == boolean.class|| cs[i] == Boolean.class) {
args[i] = Convert.toBool(args[i]);}
else if (cs[i] == boolean.class|| cs[i] == Boolean.class)
{
args[i] = Convert.toBool(args[i]);
}
}
}
return (E) method.invoke(obj, args);