From 3b734f26643d545e5ab434d89b2000f13f126bed Mon Sep 17 00:00:00 2001 From: IT-xiaoXiong <774495953@qq.com> Date: Thu, 2 Dec 2021 11:30:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=A7=A3=E6=9E=90SQL?= =?UTF-8?q?=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- com/api/aiyh_pcn/patentWall/service/PatentWallService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com/api/aiyh_pcn/patentWall/service/PatentWallService.java b/com/api/aiyh_pcn/patentWall/service/PatentWallService.java index 76fe25c..3e3d658 100644 --- a/com/api/aiyh_pcn/patentWall/service/PatentWallService.java +++ b/com/api/aiyh_pcn/patentWall/service/PatentWallService.java @@ -170,7 +170,7 @@ public class PatentWallService { toolUtil.writeDebuggerLog(String.format("执行SQL: {%s} ---> 参数: {%s}", sqlStr, args)); rs.executeQuery(sqlStr, args); rs.next(); - parsing = Util.null2String(rs.getString(1)); + parsing = parsing.replaceFirst(pattern, Util.null2String(rs.getString(1)));; } // 清除参数信息 args.clear(); From f40689145c5ff090560eec30ffbc0b629480cfa8 Mon Sep 17 00:00:00 2001 From: IT-xiaoXiong <774495953@qq.com> Date: Thu, 2 Dec 2021 15:30:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customization/test/NewUtilTest.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/customization/test/NewUtilTest.java b/customization/test/NewUtilTest.java index 0e8580a..1065f46 100644 --- a/customization/test/NewUtilTest.java +++ b/customization/test/NewUtilTest.java @@ -333,4 +333,21 @@ public class NewUtilTest { System.out.println(matcher.group("field")); } } + + + @Test + public void testSplic(){ + List list = new ArrayList<>(); + list.add(0); + list.add(1); + list.add(2); + list.add(3); + list.add(4); + list.add(5); + list.add(6); + System.out.println(list); + System.out.println(list.subList(0,2)); + list.removeAll(list.subList(0,2)); + System.out.println(list); + } }