- public Long[] getParaValuesToLong(String name) {
- String[] values = getParaValues(name);
- if (values == null)
- return null;
- Long[] result = new Long[values.length];
- for (int i=0; i<result.length; i++)
- if (StrKit.notBlank(values[i]))
- result[i] = Long.parseLong(values[i]);
- return result;
- }
其中,
- if (StrKit.notBlank(values[i]))
希望能在下个版本加上,前台如果传入有空的情况会跳异常。