From da89147b34cb1d6beb5e70eee50e37ff1c000328 Mon Sep 17 00:00:00 2001 From: Administrator <17719157901> Date: Wed, 26 Aug 2020 10:57:57 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BA=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E4=B8=AD=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 8 ++++++++ src/main/java/dao/impl/jyq_select.xml | 10 +++++++++- src/main/java/dao/jyq.java | 7 ++++++- src/main/java/test/jyqTest.java | 14 ++++++++++++++ 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 1a629ab..21ef4c3 100644 --- a/pom.xml +++ b/pom.xml @@ -51,6 +51,14 @@ + + + src/main/java + + **/*.xml + + + jungle diff --git a/src/main/java/dao/impl/jyq_select.xml b/src/main/java/dao/impl/jyq_select.xml index bcef7b5..0e6f95d 100644 --- a/src/main/java/dao/impl/jyq_select.xml +++ b/src/main/java/dao/impl/jyq_select.xml @@ -2,6 +2,14 @@ + - + + + + \ No newline at end of file diff --git a/src/main/java/dao/jyq.java b/src/main/java/dao/jyq.java index d77777c..197705b 100644 --- a/src/main/java/dao/jyq.java +++ b/src/main/java/dao/jyq.java @@ -1,6 +1,11 @@ package dao; +import pojo.jungle; + +import java.util.List; + public interface jyq { public void add(); - + public int count(); + public List getAll(jungle jungle); } diff --git a/src/main/java/test/jyqTest.java b/src/main/java/test/jyqTest.java index 8c031e7..eb2e6b0 100644 --- a/src/main/java/test/jyqTest.java +++ b/src/main/java/test/jyqTest.java @@ -1,10 +1,24 @@ package test; import org.apache.ibatis.session.SqlSession; +import org.apache.ibatis.session.SqlSessionFactory; +import pojo.jungle; import util.MybatisUtil; +import java.util.List; + public class jyqTest { public static void main(String[] args) { + //SqlSessionFactory sqlSessionFactory=MybatisUtil.getSqlSession(); + SqlSession sqlSession = MybatisUtil.getSqlSession(); + /* int count=sqlSession.selectOne("dao.jyq.count"); + System.out.println("总记录数: "+count);*/ + + List list=sqlSession.selectList("dao.jyq.getAll"); + System.out.println("list.size() "+list.size()); + for (int i=0;i Date: Wed, 26 Aug 2020 11:07:02 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BA=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E4=B8=AD=E7=9A=84=E5=AD=97=E6=AE=B5=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- target/classes/dao/impl/jyq_select.xml | 15 +++++++++++++++ target/classes/test/jyqTest.class | Bin 0 -> 1389 bytes 2 files changed, 15 insertions(+) create mode 100644 target/classes/dao/impl/jyq_select.xml create mode 100644 target/classes/test/jyqTest.class diff --git a/target/classes/dao/impl/jyq_select.xml b/target/classes/dao/impl/jyq_select.xml new file mode 100644 index 0000000..0e6f95d --- /dev/null +++ b/target/classes/dao/impl/jyq_select.xml @@ -0,0 +1,15 @@ + + + + + + + + + \ No newline at end of file diff --git a/target/classes/test/jyqTest.class b/target/classes/test/jyqTest.class new file mode 100644 index 0000000000000000000000000000000000000000..1f5d8b49d68b433fa7c777609d3c30dcb278f38c GIT binary patch literal 1389 zcma)6NmCO+6#hC185oAe$l?Nmikh%w+&2&f6a@zagQ(?c2wkD$kcpXzRe1K7c=4=< zC|YHC_7`~ccX&X*PLNHkGF9o<{k`}4eQ)Xcw(;o;fD3qHB7p%DgBYqux)C zoV@$ewLQ0xvom2y6>`HmictJd(atU9=znk@GXXPr;bmkHD4$oIcKlM#c8hLyMcQh~ z4OL(VHKm=|veThG6@&tP#3}lD-_Dl{IZqCc(zPiQ zy4mM5Zn2uTfiVN)B$)BbrL3G(x<1xs_Gz84g@b4_Fk#^~?yx?~uAinpos;31=h5H7 zB<>oxXJHD{0-bxSG+tKTvMljholZJXuVgaSYvDc|hPE(+S$%k5VGi>K9$Ls?!NMc3 zxQ#p5TX>9l-mbX@_URB-CtW`Vmh}CAXnB{g$1d_?r z|2EGIq(?fsVWgDYXL$CsioMy9OlBMwrVw)LT3n|FaW=D%I=%~!youVTB|2^dAq)#Jps z@5heqjk3I2yDNOHjpS%jJ6$f^lO-R=aeyBS{fmI{(8jf$C!11G*7bjYcvn?-aE(_% z6P?^!H3J;NVV)Xr1V@Qz=kJIjMmhfx5oaI~T}Lc}nfIvsjQGdjA{~15P{#N)dYL)LkZ#gi{Lu literal 0 HcmV?d00001 -- Gitee From 7269c54f97b54a0e6fad5d8ba9bad6299dd5783c Mon Sep 17 00:00:00 2001 From: Administrator <17719157901> Date: Wed, 26 Aug 2020 11:33:31 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BA=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E5=AD=97=E6=AE=B5=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/test/jyqTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/test/jyqTest.java b/src/main/java/test/jyqTest.java index eb2e6b0..5eea972 100644 --- a/src/main/java/test/jyqTest.java +++ b/src/main/java/test/jyqTest.java @@ -15,6 +15,8 @@ public class jyqTest { /* int count=sqlSession.selectOne("dao.jyq.count"); System.out.println("总记录数: "+count);*/ + + List list=sqlSession.selectList("dao.jyq.getAll"); System.out.println("list.size() "+list.size()); for (int i=0;i Date: Wed, 26 Aug 2020 11:48:11 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=9B=9E=E4=BA=86=E4=B8=AA=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/dao/jyq.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/dao/jyq.java b/src/main/java/dao/jyq.java index 197705b..000c574 100644 --- a/src/main/java/dao/jyq.java +++ b/src/main/java/dao/jyq.java @@ -8,4 +8,5 @@ public interface jyq { public void add(); public int count(); public List getAll(jungle jungle); + } -- Gitee From 525433ce1c72ffa9c1231f3b0e1e1ac63b903ba0 Mon Sep 17 00:00:00 2001 From: Administrator <17719157901> Date: Wed, 26 Aug 2020 19:20:53 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=8F=88=E5=9B=9E=E4=BA=86=E4=B8=AA?= =?UTF-8?q?=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/test/jyqTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/test/jyqTest.java b/src/main/java/test/jyqTest.java index 5eea972..eb2e6b0 100644 --- a/src/main/java/test/jyqTest.java +++ b/src/main/java/test/jyqTest.java @@ -15,8 +15,6 @@ public class jyqTest { /* int count=sqlSession.selectOne("dao.jyq.count"); System.out.println("总记录数: "+count);*/ - - List list=sqlSession.selectList("dao.jyq.getAll"); System.out.println("list.size() "+list.size()); for (int i=0;i