From 8d72075194c65cebe3317b2191c141e4824b2c04 Mon Sep 17 00:00:00 2001
From: zjh19990323 <494316527@qq.com>
Date: Sat, 12 Jan 2019 17:21:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E6=89=BE=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
chazhao/chazhao.js | 36 ++---
chazhao/chazhao.wxml | 64 +++++----
shuji/shuji.json | 4 +-
shuji/shuji.wxml | 2 +-
.../src/main/resources/generatorConfig.xml | 99 +++++++------
.../src/main/resources/mybatis.xml | 8 +-
.../src/main/resources/spring-context.xml | 11 ++
.../src/main/resources/spring-mvc.xml | 27 ++++
.../src/main/resources/spring-mybatis.xml | 89 +++++-------
后端的都放着里面/zx.sql | 2 +-
后端的都放着里面/zxlogin/.classpath | 8 +-
后端的都放着里面/zxlogin/.gitignore | 1 +
.../org.eclipse.core.resources.prefs | 1 +
后端的都放着里面/zxlogin/.springBeans | 17 +++
.../main/java/controller/LoginController.java | 60 +-------
.../zxlogin/src/main/java/domain/UserPO.java | 34 +----
.../src/main/java/mapperDAO/UserDAO.java | 15 --
.../src/main/java/service/LoginService.java | 12 +-
.../java/serviceimpl/LoginServiceImpl.java | 24 ----
.../target/classes/domain/UserPO.class | Bin 958 -> 958 bytes
.../serviceimpl/LoginServiceImpl.class | Bin 800 -> 800 bytes
后端的都放着里面/zxnew.sql | 132 ------------------
.../真香图书管理系统.sql | 2 +-
23 files changed, 211 insertions(+), 437 deletions(-)
create mode 100644 后端的都放着里面/booksSearch/booksService/src/main/resources/spring-context.xml
create mode 100644 后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mvc.xml
create mode 100644 后端的都放着里面/zxlogin/.gitignore
create mode 100644 后端的都放着里面/zxlogin/.springBeans
delete mode 100644 后端的都放着里面/zxnew.sql
diff --git a/chazhao/chazhao.js b/chazhao/chazhao.js
index 2ca559c..6efbc98 100644
--- a/chazhao/chazhao.js
+++ b/chazhao/chazhao.js
@@ -1,23 +1,17 @@
-// chazhao/chazhao.js
-Component({
- /**
- * 组件的属性列表
- */
- properties: {
-
- },
-
- /**
- * 组件的初始数据
- */
- data: {
-
- },
-
- /**
- * 组件的方法列表
- */
- methods: {
+Page({
+ shujichzhao: function (e) {
+ wx.request({
+ url: 'http://localhost:9527/zxbook/find1',
+ data: {
+ 'search': e.detail.value.search,
+ },
+ header: {
+ "Content-Type": "application/x-www-form-urlencoded"
+ },
+ methods: {
+ method: "POST",
+ }
+ })
}
-})
+})
\ No newline at end of file
diff --git a/chazhao/chazhao.wxml b/chazhao/chazhao.wxml
index 9fa2e31..ded8916 100644
--- a/chazhao/chazhao.wxml
+++ b/chazhao/chazhao.wxml
@@ -1,31 +1,33 @@
-
-
-
-
-
-
-
-
-
-
-
- 分类
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 猜你喜欢
-
-
-
-
+
+
+
+ 分类
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 猜你喜欢
+
+
+
+
diff --git a/shuji/shuji.json b/shuji/shuji.json
index 8835af0..6f5247b 100644
--- a/shuji/shuji.json
+++ b/shuji/shuji.json
@@ -1,3 +1,3 @@
-{
- "usingComponents": {}
+{
+ "usingComponents": {}
}
\ No newline at end of file
diff --git a/shuji/shuji.wxml b/shuji/shuji.wxml
index 680e223..cf18ca0 100644
--- a/shuji/shuji.wxml
+++ b/shuji/shuji.wxml
@@ -1,4 +1,4 @@
书名:
书号:
-作者
\ No newline at end of file
+作者:
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml
index 3b321a6..6a98719 100644
--- a/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml
@@ -1,52 +1,49 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml
index 60a680b..27b1f5e 100644
--- a/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml
@@ -1,5 +1,5 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-context.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-context.xml
new file mode 100644
index 0000000..b674982
--- /dev/null
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-context.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mvc.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mvc.xml
new file mode 100644
index 0000000..5cc5ecd
--- /dev/null
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mvc.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml
index 35dbc99..c27408c 100644
--- a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml
@@ -1,51 +1,38 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dialect=mysql
- reasonable=true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/后端的都放着里面/zx.sql b/后端的都放着里面/zx.sql
index 51db1c4..5743f61 100644
--- a/后端的都放着里面/zx.sql
+++ b/后端的都放着里面/zx.sql
@@ -127,7 +127,7 @@ DROP TABLE IF EXISTS `borrowrecord`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8 ;
CREATE TABLE `borrowrecord` (
- `s_id` int(20) NOT NULL,
+ `s_id` varchar(20) NOT NULL,
`book_id` int(20) NOT NULL,
`s_name` varchar(20) NOT NULL,
`book_name` varchar(20) NOT NULL,
diff --git a/后端的都放着里面/zxlogin/.classpath b/后端的都放着里面/zxlogin/.classpath
index 1d5af2f..a6aaa3d 100644
--- a/后端的都放着里面/zxlogin/.classpath
+++ b/后端的都放着里面/zxlogin/.classpath
@@ -6,7 +6,7 @@
-
+
@@ -18,5 +18,11 @@
+
+
+
+
+
+
diff --git a/后端的都放着里面/zxlogin/.gitignore b/后端的都放着里面/zxlogin/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/后端的都放着里面/zxlogin/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs b/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs
index a698f2a..5dae1fa 100644
--- a/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs
+++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs
@@ -1,3 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF8
+encoding//src/main/resources=UTF-8
encoding/=UTF-8
diff --git a/后端的都放着里面/zxlogin/.springBeans b/后端的都放着里面/zxlogin/.springBeans
new file mode 100644
index 0000000..533ffe4
--- /dev/null
+++ b/后端的都放着里面/zxlogin/.springBeans
@@ -0,0 +1,17 @@
+
+
+ 1
+
+
+
+
+
+
+ src/main/resources/spring-mvc.xml
+
+
+ src/main/resources/spring-context.xml
+
+
+
+
diff --git a/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java b/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java
index 992b43f..525c48c 100644
--- a/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java
+++ b/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java
@@ -1,61 +1,3 @@
-<<<<<<< HEAD
-package controller;
-
-
-import java.io.IOException;
-import java.io.Writer;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import service.LoginService;
-import domain.UserPO;
-
-@Controller
-public class LoginController {
- @Autowired@Qualifier("LoginServiceImpl")
- private LoginService loginService;
- @RequestMapping("/login")
- public void login(int s_id, int s_password,
- HttpServletRequest request, HttpServletResponse response) throws IOException {
- UserPO userPO=this.loginService.FindByUserid(s_id);
- response.setContentType("text/html;charset=utf-8");
- /* 设置响应头允许ajax跨域访问 */
- response.setHeader("Access-Control-Allow-Origin", "*");
- /* 星号表示所有的异域请求都可以接受, */
- response.setHeader("Access-Control-Allow-Methods", "GET,POST");
- System.out.println(s_id);
- if(userPO!=null)
- if(s_password==userPO.getUserpassword())
- {
- System.out.println("密码正确");
- Writer out = response.getWriter();
- out.write("111");
- out.flush();
- }
-
-
- else{
- System.out.println("密码错误");
- Writer out = response.getWriter();
- out.write("100");
- out.flush();
- }
- else{
- System.out.println("不存在用户名");
- Writer out = response.getWriter();
- out.write("001");
- out.flush();
- }
-
- }
-}
-=======
package controller;
@@ -112,4 +54,4 @@ public class LoginController {
}
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
+
diff --git a/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java b/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java
index 9a4d19d..a59a3b6 100644
--- a/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java
+++ b/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java
@@ -1,34 +1,4 @@
-<<<<<<< HEAD
-package domain;
-
-import java.io.Serializable;
-
-public class UserPO implements Serializable{
- private int s_id;
- private int userpassword;
- private String username;
- public int getUserid() {
- return userid;
- }
- public void setUserid(int userid) {
- this.userid = userid;
- }
- public int getUserpassword() {
- return userpassword;
- }
- public void setUserpassword(int userpassword) {
- this.userpassword = userpassword;
- }
- public String getUsername() {
- return username;
- }
- public void setUsername(String username) {
- this.username = username;
- }
-
-}
-=======
package domain;
import java.io.Serializable;
@@ -55,7 +25,7 @@ public class UserPO implements Serializable{
public void setUsername(String username) {
this.username = username;
}
+}
+
-}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
diff --git a/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java b/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java
index ccc89a9..d47c532 100644
--- a/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java
+++ b/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java
@@ -1,17 +1,3 @@
-<<<<<<< HEAD
-package mapperDAO;
-
-import org.springframework.stereotype.Repository;
-
-import domain.UserPO;
-
-@Repository("UserDAO")
-public interface UserDAO {
- public UserPO FindByUserid(int s_id);
-
-
-}
-=======
package mapperDAO;
import org.springframework.stereotype.Repository;
@@ -24,4 +10,3 @@ public interface UserDAO {
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
diff --git a/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java b/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java
index 5457a6b..33e0d77 100644
--- a/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java
+++ b/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java
@@ -1,13 +1,3 @@
-<<<<<<< HEAD
-package service;
-
-import domain.UserPO;
-
-public interface LoginService{
-
- public UserPO FindByUserid(int s_id);
-}
-=======
package service;
import domain.UserPO;
@@ -16,4 +6,4 @@ public interface LoginService{
public UserPO FindByUserid(int userid);
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
+
diff --git a/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java b/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java
index 4af1431..e1bd0f4 100644
--- a/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java
+++ b/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java
@@ -1,27 +1,4 @@
-<<<<<<< HEAD
-package serviceimpl;
-
-import mapperDAO.UserDAO;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.stereotype.Component;
-
-import domain.UserPO;
-import service.LoginService;
-@Component("LoginServiceImpl")
-public class LoginServiceImpl implements LoginService{
- @Autowired@Qualifier("UserDAO")
- private UserDAO userDAO;
-
-
- public UserPO FindByUserid(int s_id){
- return this.userDAO.FindByUserid(s_id);
- }
-
-}
-=======
package serviceimpl;
import mapperDAO.UserDAO;
@@ -44,4 +21,3 @@ public class LoginServiceImpl implements LoginService{
}
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
diff --git a/后端的都放着里面/zxlogin/target/classes/domain/UserPO.class b/后端的都放着里面/zxlogin/target/classes/domain/UserPO.class
index 67cfd441053664c0b948e2a09cfa4a4477c71bde..1cda40524669c98c84f3c233dc3b0290ed0450ed 100644
GIT binary patch
delta 69
zcmdnTzK?wa8xtejWOgPSM()WjOt!3i46F?Nllhs&C(mWlXB3=#7APhH6cYuCxiN}Q
S4r8`ul>+jm!D`ks^8*0ca}4JI
delta 69
zcmdnTzK?wa8xtezWOgPSMy|;&Ot!4N46F=%llhs&C(mWlXB3!x7APhR6cYi8xiN}O
S4r8`ul?3voz-rbr^8*0b9}L|9
diff --git a/后端的都放着里面/zxlogin/target/classes/serviceimpl/LoginServiceImpl.class b/后端的都放着里面/zxlogin/target/classes/serviceimpl/LoginServiceImpl.class
index f39c6935aaadc63a8100abd94c62091864e41e4b..43d4fd43203906baea930d4382cef36704d193d6 100644
GIT binary patch
delta 19
bcmZ3$wt#KJQYJ>e$;+6W7)2((WHJW;K9dFd
delta 19
bcmZ3$wt#KJQYJ>;$;+6W7=