| | |
| | | if (String.class == fieldType) |
| | | { |
| | | String s = Convert.toStr(val); |
| | | if (StringUtils.endWith(s, ".0")) |
| | | if (StringUtils.endsWith(s, ".0")) |
| | | { |
| | | val = StringUtils.subBefore(s, ".0",false); |
| | | val = StringUtils.substringBefore(s, ".0"); |
| | | } |
| | | else |
| | | { |
| | |
| | | for (String item : convertSource) |
| | | { |
| | | String[] itemArray = item.split("="); |
| | | if (StringUtils.containsAny(propertyValue, separator)) |
| | | if (StringUtils.containsAny(separator, propertyValue)) |
| | | { |
| | | for (String value : propertyValue.split(separator)) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | return StringUtils.strip(propertyString.toString(), null,separator); |
| | | return StringUtils.stripEnd(propertyString.toString(), separator); |
| | | } |
| | | |
| | | /** |
| | |
| | | for (String item : convertSource) |
| | | { |
| | | String[] itemArray = item.split("="); |
| | | if (StringUtils.containsAny(propertyValue, separator)) |
| | | if (StringUtils.containsAny(separator, propertyValue)) |
| | | { |
| | | for (String value : propertyValue.split(separator)) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | return StringUtils.strip(propertyString.toString(), null,separator); |
| | | return StringUtils.stripEnd(propertyString.toString(), separator); |
| | | } |
| | | |
| | | /** |