Commit a8447a23 authored by yanzg's avatar yanzg

SQL层级处理的支持

parent 9b7f14bf
...@@ -29,7 +29,7 @@ public class ChineseHelper { ...@@ -29,7 +29,7 @@ public class ChineseHelper {
* @param from 来源汉字 * @param from 来源汉字
* @return * @return
*/ */
public static List<HanziVo> get(String from) { public static List<HanziVo> getPinyin(String from) {
if (StringHelper.isEmpty(from)) { if (StringHelper.isEmpty(from)) {
return new ArrayList<>(0); return new ArrayList<>(0);
} }
......
...@@ -11,7 +11,7 @@ public class TestChineseHelper { ...@@ -11,7 +11,7 @@ public class TestChineseHelper {
@Test @Test
public void testConvert() { public void testConvert() {
String text = "颜佐光还喜欢游泳"; String text = "颜佐光还喜欢游泳";
List<HanziVo> items = ChineseHelper.get(text); List<HanziVo> items = ChineseHelper.getPinyin(text);
System.out.println("json:" + JsonHelper.serialize(items, true)); System.out.println("json:" + JsonHelper.serialize(items, true));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment