From fdf273f3cb64896148bd5a68191f2b0e6d85bc1d Mon Sep 17 00:00:00 2001 From: Aokiso <1010390029@qq.com> Date: Sun, 13 Jan 2019 16:08:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/demo/Dao/auditMapper.java | 7 ++++ .../orderFrom/controller/compController.java | 26 +++++++++++++++ .../orderFrom/controller/showController.java | 32 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 demo/src/main/java/com/example/demo/orderFrom/controller/compController.java create mode 100644 demo/src/main/java/com/example/demo/orderFrom/controller/showController.java diff --git a/demo/src/main/java/com/example/demo/Dao/auditMapper.java b/demo/src/main/java/com/example/demo/Dao/auditMapper.java index 2cdf2ee..513fb1d 100644 --- a/demo/src/main/java/com/example/demo/Dao/auditMapper.java +++ b/demo/src/main/java/com/example/demo/Dao/auditMapper.java @@ -19,6 +19,13 @@ public interface auditMapper { @Select("select top 1 checkNum from audit order by checkNum DESC") public Long selectBigCheckNum(); + @Select("select * from audit where userNum = #{userNum} order by applyTime") + public List selectAudByNum(long userNum); + + @Select("select * from audit where userNum = #{userNum} and checkState=1" + + "order by applyTime") + public List selectByNum(long userNum); + @Insert("insert into audit(checkNum, userNum, productNum, " + "bankAccount, checkState, contractNum, " + "isSignContract, year, amount, applyTime)" + diff --git a/demo/src/main/java/com/example/demo/orderFrom/controller/compController.java b/demo/src/main/java/com/example/demo/orderFrom/controller/compController.java new file mode 100644 index 0000000..1cee550 --- /dev/null +++ b/demo/src/main/java/com/example/demo/orderFrom/controller/compController.java @@ -0,0 +1,26 @@ +package com.example.demo.orderFrom.controller; + +import com.example.demo.bean.Audit; +import com.example.demo.bean.User; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.util.List; + +@Controller +public class compController { + @Autowired + com.example.demo.Dao.auditMapper auditMapper; + + @RequestMapping("")//已经完成的订单浏览的界面 + public List doPost(HttpServletResponse response, HttpServletRequest request){ + HttpSession session=request.getSession(); + User user=new User(); + user=(User)session.getAttribute("user"); + return auditMapper.selectByNum(user.getUserNum()); + } +} diff --git a/demo/src/main/java/com/example/demo/orderFrom/controller/showController.java b/demo/src/main/java/com/example/demo/orderFrom/controller/showController.java new file mode 100644 index 0000000..2bfba7f --- /dev/null +++ b/demo/src/main/java/com/example/demo/orderFrom/controller/showController.java @@ -0,0 +1,32 @@ +package com.example.demo.orderFrom.controller; + +import com.example.demo.Dao.auditMapper; +import com.example.demo.bean.Audit; +import com.example.demo.bean.User; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.util.List; + +/* +打印出所以的订单 + */ + +@Controller +public class showController extends HttpServlet { + @Autowired + com.example.demo.Dao.auditMapper auditMapper; + + @RequestMapping("")//订单浏览的界面 + public List doPost(HttpServletResponse response, HttpServletRequest request){ + HttpSession session=request.getSession(); + User user=new User(); + user=(User)session.getAttribute("user"); + return auditMapper.selectAudByNum(user.getUserNum()); + } +} From a70de16ee9a2f9b8e5af7da6a75a14e17fbb91fd Mon Sep 17 00:00:00 2001 From: Aokiso <1010390029@qq.com> Date: Tue, 15 Jan 2019 10:46:18 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Maven__com_alibaba_fastjson_1_2_37.xml | 13 +++++++++++++ .../Maven__net_bytebuddy_byte_buddy_1_9_3.xml | 13 +++++++++++++ .../Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml | 13 +++++++++++++ ...apache_tomcat_embed_tomcat_embed_core_9_0_12.xml | 13 +++++++++++++ ...g_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml | 13 +++++++++++++ ...ache_tomcat_embed_tomcat_embed_jasper_9_0_12.xml | 13 +++++++++++++ ...e_tomcat_embed_tomcat_embed_websocket_9_0_12.xml | 13 +++++++++++++ .../Maven__org_mockito_mockito_core_2_23_0.xml | 13 +++++++++++++ ...ringframework_boot_spring_boot_2_1_0_RELEASE.xml | 13 +++++++++++++ ...boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml | 13 +++++++++++++ ...g_boot_configuration_processor_2_1_0_RELEASE.xml | 13 +++++++++++++ ...work_boot_spring_boot_devtools_2_1_0_RELEASE.xml | 13 +++++++++++++ ...ework_boot_spring_boot_starter_2_1_0_RELEASE.xml | 13 +++++++++++++ ...k_boot_spring_boot_starter_aop_2_1_0_RELEASE.xml | 13 +++++++++++++ ...t_spring_boot_starter_data_jpa_2_1_0_RELEASE.xml | 13 +++++++++++++ ..._boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml | 13 +++++++++++++ ..._boot_spring_boot_starter_json_2_1_0_RELEASE.xml | 13 +++++++++++++ ...ot_spring_boot_starter_logging_2_1_0_RELEASE.xml | 13 +++++++++++++ ..._boot_spring_boot_starter_test_2_1_0_RELEASE.xml | 13 +++++++++++++ ...oot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml | 13 +++++++++++++ ...k_boot_spring_boot_starter_web_2_1_2_RELEASE.xml | 13 +++++++++++++ ...ramework_boot_spring_boot_test_2_1_0_RELEASE.xml | 13 +++++++++++++ ...spring_boot_test_autoconfigure_2_1_0_RELEASE.xml | 13 +++++++++++++ ...ework_data_spring_data_commons_2_1_2_RELEASE.xml | 13 +++++++++++++ ...framework_data_spring_data_jpa_2_1_2_RELEASE.xml | 13 +++++++++++++ ...org_springframework_spring_aop_5_1_2_RELEASE.xml | 13 +++++++++++++ ...springframework_spring_aspects_5_1_2_RELEASE.xml | 13 +++++++++++++ ...g_springframework_spring_beans_5_1_2_RELEASE.xml | 13 +++++++++++++ ...springframework_spring_context_5_1_2_RELEASE.xml | 13 +++++++++++++ ...rg_springframework_spring_core_5_1_2_RELEASE.xml | 13 +++++++++++++ ...ingframework_spring_expression_5_1_2_RELEASE.xml | 13 +++++++++++++ ...org_springframework_spring_jcl_5_1_2_RELEASE.xml | 13 +++++++++++++ ...rg_springframework_spring_jdbc_5_1_2_RELEASE.xml | 13 +++++++++++++ ...org_springframework_spring_orm_5_1_2_RELEASE.xml | 13 +++++++++++++ ...rg_springframework_spring_test_5_1_2_RELEASE.xml | 13 +++++++++++++ ..._org_springframework_spring_tx_5_1_2_RELEASE.xml | 13 +++++++++++++ ...org_springframework_spring_web_5_1_2_RELEASE.xml | 13 +++++++++++++ ..._springframework_spring_webmvc_5_1_2_RELEASE.xml | 13 +++++++++++++ 38 files changed, 494 insertions(+) create mode 100644 .idea/libraries/Maven__com_alibaba_fastjson_1_2_37.xml create mode 100644 .idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_3.xml create mode 100644 .idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml create mode 100644 .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_12.xml create mode 100644 .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml create mode 100644 .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_9_0_12.xml create mode 100644 .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_12.xml create mode 100644 .idea/libraries/Maven__org_mockito_mockito_core_2_23_0.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_0_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_data_spring_data_commons_2_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_aop_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_aspects_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_beans_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_context_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_core_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_expression_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_jcl_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_jdbc_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_orm_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_test_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_tx_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_web_5_1_2_RELEASE.xml create mode 100644 .idea/libraries/Maven__org_springframework_spring_webmvc_5_1_2_RELEASE.xml diff --git a/.idea/libraries/Maven__com_alibaba_fastjson_1_2_37.xml b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_37.xml new file mode 100644 index 0000000..ef64f6c --- /dev/null +++ b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_37.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_3.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_3.xml new file mode 100644 index 0000000..183a430 --- /dev/null +++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml new file mode 100644 index 0000000..be4d19f --- /dev/null +++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_12.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_12.xml new file mode 100644 index 0000000..aaf3bd0 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml new file mode 100644 index 0000000..671ab54 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_9_0_12.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_9_0_12.xml new file mode 100644 index 0000000..d863e61 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_9_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_12.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_12.xml new file mode 100644 index 0000000..b389652 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_mockito_mockito_core_2_23_0.xml b/.idea/libraries/Maven__org_mockito_mockito_core_2_23_0.xml new file mode 100644 index 0000000..e905c50 --- /dev/null +++ b/.idea/libraries/Maven__org_mockito_mockito_core_2_23_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_0_RELEASE.xml new file mode 100644 index 0000000..2195c71 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml new file mode 100644 index 0000000..93ebb16 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_1_0_RELEASE.xml new file mode 100644 index 0000000..f5892ab --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_1_0_RELEASE.xml new file mode 100644 index 0000000..fb97bcb --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_0_RELEASE.xml new file mode 100644 index 0000000..1664994 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_1_0_RELEASE.xml new file mode 100644 index 0000000..b3566a1 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_1_0_RELEASE.xml new file mode 100644 index 0000000..1a5e16e --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml new file mode 100644 index 0000000..b5de6ae --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_0_RELEASE.xml new file mode 100644 index 0000000..155a67f --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_0_RELEASE.xml new file mode 100644 index 0000000..8f6248c --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_0_RELEASE.xml new file mode 100644 index 0000000..b6ec7be --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml new file mode 100644 index 0000000..5be0f81 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_2_RELEASE.xml new file mode 100644 index 0000000..f804775 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_0_RELEASE.xml new file mode 100644 index 0000000..d5dcccf --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_0_RELEASE.xml new file mode 100644 index 0000000..f5eb1c3 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_1_2_RELEASE.xml new file mode 100644 index 0000000..79c288a --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_1_2_RELEASE.xml new file mode 100644 index 0000000..62ac445 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_aop_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aop_5_1_2_RELEASE.xml new file mode 100644 index 0000000..ceaddcc --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_aop_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_aspects_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aspects_5_1_2_RELEASE.xml new file mode 100644 index 0000000..f5151b0 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_aspects_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_beans_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_beans_5_1_2_RELEASE.xml new file mode 100644 index 0000000..d502203 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_beans_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_context_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_5_1_2_RELEASE.xml new file mode 100644 index 0000000..a40fb54 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_context_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_core_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_core_5_1_2_RELEASE.xml new file mode 100644 index 0000000..238bf6e --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_core_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_expression_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_expression_5_1_2_RELEASE.xml new file mode 100644 index 0000000..2b13ac3 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_expression_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_2_RELEASE.xml new file mode 100644 index 0000000..bb4b717 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_2_RELEASE.xml new file mode 100644 index 0000000..921e9b1 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_orm_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_orm_5_1_2_RELEASE.xml new file mode 100644 index 0000000..f42278e --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_orm_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_test_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_test_5_1_2_RELEASE.xml new file mode 100644 index 0000000..123eeb3 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_test_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_tx_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_tx_5_1_2_RELEASE.xml new file mode 100644 index 0000000..9da2b7f --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_tx_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_web_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_web_5_1_2_RELEASE.xml new file mode 100644 index 0000000..f0ca3a4 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_web_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_2_RELEASE.xml new file mode 100644 index 0000000..a72e1b7 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file From 77760f0da648e29cc4fc1a6882249a854394cc33 Mon Sep 17 00:00:00 2001 From: Aokiso <1010390029@qq.com> Date: Tue, 15 Jan 2019 10:51:54 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/loanService/controller/startController.java | 10 ++++++---- demo/src/main/resources/static/index.html | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/demo/src/main/java/com/example/demo/loanService/controller/startController.java b/demo/src/main/java/com/example/demo/loanService/controller/startController.java index 952e1e8..b94c196 100644 --- a/demo/src/main/java/com/example/demo/loanService/controller/startController.java +++ b/demo/src/main/java/com/example/demo/loanService/controller/startController.java @@ -7,10 +7,12 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; +import java.io.IOException; @Controller public class startController extends HttpServlet { @@ -18,17 +20,17 @@ public class startController extends HttpServlet { private userMapper userMapper; @RequestMapping("/start")//浏览商品之后点击申请贷款的按钮之后跳到的界面 - public String doPost(HttpServletResponse response, HttpServletRequest request){ + public void doPost(HttpServletResponse response, HttpServletRequest request)throws ServletException, IOException { HttpSession session=request.getSession(); User user=new User(); user=(User)session.getAttribute("user"); short num=userMapper.selectIsId(user.getUserNum()); if(num==1){ - return "";//验证手机号的界面二号 + response.sendRedirect("loanInformation.html");//贷款的界面 }if(num==0){ - return "";//认证的界面 + response.sendRedirect("Register.html");//认证的界面 }else{ - return "";//页面出错的界面 + response.sendRedirect("");//页面出错的界面 } } } diff --git a/demo/src/main/resources/static/index.html b/demo/src/main/resources/static/index.html index b1eb56a..209b039 100644 --- a/demo/src/main/resources/static/index.html +++ b/demo/src/main/resources/static/index.html @@ -32,9 +32,11 @@

50,000.00

3分钟申请,5秒审批

+
- +
+