| | |
| | | } |
| | | |
| | | /** |
| | | * 获取 右like 字符串 |
| | | */ |
| | | public static String getRightLike(String str) { |
| | | return StringHelper.isEmpty(str) ? null : str.trim() + "%"; |
| | | } |
| | | |
| | | /** |
| | | * 获取图形的WKT字符串 |
| | | * |
| | | * @param wkt |
| | |
| | | |
| | | /** |
| | | * 获取GUID |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getGuid() { |
| | |
| | | } |
| | | } |
| | | |
| | | if (sb.length() > 0 && sb.lastIndexOf(join) == sb.length() - 1) { |
| | | sb.deleteCharAt(sb.length() - 1); |
| | | if (sb.length() > 0 && sb.lastIndexOf(join) == sb.length() - join.length()) { |
| | | // 删除从索引 start 开始到 end 之间的字符,即 前包括 后不包括。 |
| | | sb.delete(sb.length() - join.length(), sb.length()); |
| | | } |
| | | |
| | | return sb.toString(); |