From f21514e7eb499c94ce92982ca55f46669b3f9f66 Mon Sep 17 00:00:00 2001
From: ying10 <17798176331@163.com>
Date: Sat, 7 Jan 2023 19:15:59 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=8C=E5=88=86?=
=?UTF-8?q?=E6=94=AF=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/java/com/ytc/controller/Test.java | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 src/main/java/com/ytc/controller/Test.java
diff --git a/src/main/java/com/ytc/controller/Test.java b/src/main/java/com/ytc/controller/Test.java
new file mode 100644
index 0000000..c21fb26
--- /dev/null
+++ b/src/main/java/com/ytc/controller/Test.java
@@ -0,0 +1,5 @@
+package com.ytc.controller;
+
+public class Test {
+ //这是一个测试
+}
--
Gitee
From 9214333eefd57f7f83ddeb868845476f83640a47 Mon Sep 17 00:00:00 2001
From: ying10 <17798176331@163.com>
Date: Sat, 7 Jan 2023 19:21:29 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=8C=E5=88=86?=
=?UTF-8?q?=E6=94=AF=E6=8F=90=E4=BA=A42?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/java/com/ytc/controller/Test.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/com/ytc/controller/Test.java b/src/main/java/com/ytc/controller/Test.java
index c21fb26..2198ff3 100644
--- a/src/main/java/com/ytc/controller/Test.java
+++ b/src/main/java/com/ytc/controller/Test.java
@@ -2,4 +2,6 @@ package com.ytc.controller;
public class Test {
//这是一个测试
+
+ //提交成功了??!
}
--
Gitee
From 7e81b331f629df89928aaf3ae99f39e59e87412b Mon Sep 17 00:00:00 2001
From: ying10 <17798176331@163.com>
Date: Sun, 8 Jan 2023 14:17:06 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=9F=B4=E6=99=93=E9=A2=96=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4=E5=AE=9E=E4=BD=93=E7=B1=BB=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 5 +
src/main/java/com/ytc/controller/Test.java | 7 -
.../java/com/ytc/mapper/AccountMapper.java | 25 +++
.../java/com/ytc/mapper/AuthorMapper.java | 28 ++++
src/main/java/com/ytc/mapper/BookMapper.java | 25 +++
.../java/com/ytc/mapper/BooklistMapper.java | 25 +++
.../java/com/ytc/mapper/BookshelfMapper.java | 25 +++
.../java/com/ytc/mapper/CommentMapper.java | 25 +++
.../java/com/ytc/mapper/FileInfoMapper.java | 25 +++
.../java/com/ytc/mapper/KeywordMapper.java | 25 +++
.../java/com/ytc/mapper/ReadingMapper.java | 25 +++
src/main/java/com/ytc/mapper/RoleMapper.java | 25 +++
src/main/java/com/ytc/mapper/TreeMapper.java | 25 +++
src/main/java/com/ytc/mapper/TypeMapper.java | 25 +++
src/main/java/com/ytc/mapper/UserMapper.java | 25 +++
src/main/java/com/ytc/model/Account.java | 23 +++
src/main/java/com/ytc/model/Author.java | 23 +++
src/main/java/com/ytc/model/Book.java | 32 ++++
src/main/java/com/ytc/model/Booklist.java | 40 +++++
src/main/java/com/ytc/model/Bookshelf.java | 19 +++
src/main/java/com/ytc/model/Comment.java | 23 +++
src/main/java/com/ytc/model/FileInfo.java | 17 ++
src/main/java/com/ytc/model/Keyword.java | 17 ++
src/main/java/com/ytc/model/Reading.java | 19 +++
src/main/java/com/ytc/model/Role.java | 17 ++
src/main/java/com/ytc/model/Tree.java | 21 +++
src/main/java/com/ytc/model/Type.java | 17 ++
src/main/java/com/ytc/model/User.java | 25 +++
src/main/resources/mapping/AccountMapper.xml | 82 ++++++++++
src/main/resources/mapping/AuthorMapper.xml | 87 +++++++++++
src/main/resources/mapping/BookMapper.xml | 115 ++++++++++++++
src/main/resources/mapping/BooklistMapper.xml | 147 ++++++++++++++++++
.../resources/mapping/BookshelfMapper.xml | 67 ++++++++
src/main/resources/mapping/CommentMapper.xml | 82 ++++++++++
src/main/resources/mapping/FileInfoMapper.xml | 58 +++++++
src/main/resources/mapping/KeywordMapper.xml | 62 ++++++++
src/main/resources/mapping/ReadingMapper.xml | 71 +++++++++
src/main/resources/mapping/RoleMapper.xml | 58 +++++++
src/main/resources/mapping/TreeMapper.xml | 75 +++++++++
src/main/resources/mapping/TypeMapper.xml | 58 +++++++
src/main/resources/mapping/UserMapper.xml | 91 +++++++++++
41 files changed, 1679 insertions(+), 7 deletions(-)
delete mode 100644 src/main/java/com/ytc/controller/Test.java
create mode 100644 src/main/java/com/ytc/mapper/AccountMapper.java
create mode 100644 src/main/java/com/ytc/mapper/AuthorMapper.java
create mode 100644 src/main/java/com/ytc/mapper/BookMapper.java
create mode 100644 src/main/java/com/ytc/mapper/BooklistMapper.java
create mode 100644 src/main/java/com/ytc/mapper/BookshelfMapper.java
create mode 100644 src/main/java/com/ytc/mapper/CommentMapper.java
create mode 100644 src/main/java/com/ytc/mapper/FileInfoMapper.java
create mode 100644 src/main/java/com/ytc/mapper/KeywordMapper.java
create mode 100644 src/main/java/com/ytc/mapper/ReadingMapper.java
create mode 100644 src/main/java/com/ytc/mapper/RoleMapper.java
create mode 100644 src/main/java/com/ytc/mapper/TreeMapper.java
create mode 100644 src/main/java/com/ytc/mapper/TypeMapper.java
create mode 100644 src/main/java/com/ytc/mapper/UserMapper.java
create mode 100644 src/main/java/com/ytc/model/Account.java
create mode 100644 src/main/java/com/ytc/model/Author.java
create mode 100644 src/main/java/com/ytc/model/Book.java
create mode 100644 src/main/java/com/ytc/model/Booklist.java
create mode 100644 src/main/java/com/ytc/model/Bookshelf.java
create mode 100644 src/main/java/com/ytc/model/Comment.java
create mode 100644 src/main/java/com/ytc/model/FileInfo.java
create mode 100644 src/main/java/com/ytc/model/Keyword.java
create mode 100644 src/main/java/com/ytc/model/Reading.java
create mode 100644 src/main/java/com/ytc/model/Role.java
create mode 100644 src/main/java/com/ytc/model/Tree.java
create mode 100644 src/main/java/com/ytc/model/Type.java
create mode 100644 src/main/java/com/ytc/model/User.java
create mode 100644 src/main/resources/mapping/AccountMapper.xml
create mode 100644 src/main/resources/mapping/AuthorMapper.xml
create mode 100644 src/main/resources/mapping/BookMapper.xml
create mode 100644 src/main/resources/mapping/BooklistMapper.xml
create mode 100644 src/main/resources/mapping/BookshelfMapper.xml
create mode 100644 src/main/resources/mapping/CommentMapper.xml
create mode 100644 src/main/resources/mapping/FileInfoMapper.xml
create mode 100644 src/main/resources/mapping/KeywordMapper.xml
create mode 100644 src/main/resources/mapping/ReadingMapper.xml
create mode 100644 src/main/resources/mapping/RoleMapper.xml
create mode 100644 src/main/resources/mapping/TreeMapper.xml
create mode 100644 src/main/resources/mapping/TypeMapper.xml
create mode 100644 src/main/resources/mapping/UserMapper.xml
diff --git a/pom.xml b/pom.xml
index 0d76e0b..0d9c045 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,6 +61,11 @@
commons-codec
1.9
+
+ org.projectlombok
+ lombok
+ 1.18.20
+
diff --git a/src/main/java/com/ytc/controller/Test.java b/src/main/java/com/ytc/controller/Test.java
deleted file mode 100644
index 2198ff3..0000000
--- a/src/main/java/com/ytc/controller/Test.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.ytc.controller;
-
-public class Test {
- //这是一个测试
-
- //提交成功了??!
-}
diff --git a/src/main/java/com/ytc/mapper/AccountMapper.java b/src/main/java/com/ytc/mapper/AccountMapper.java
new file mode 100644
index 0000000..974eddc
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/AccountMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Account;
+
+/**
+* @author 25645
+* @description 针对表【my_account((用户账户充值表))】的数据库操作Mapper
+* @createDate 2023-01-08 11:44:34
+* @Entity com.ytc.model.Account
+*/
+public interface AccountMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Account record);
+
+ int insertSelective(Account record);
+
+ Account selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Account record);
+
+ int updateByPrimaryKey(Account record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/AuthorMapper.java b/src/main/java/com/ytc/mapper/AuthorMapper.java
new file mode 100644
index 0000000..26a2123
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/AuthorMapper.java
@@ -0,0 +1,28 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Author;
+
+import java.util.List;
+
+/**
+* @author 25645
+* @description 针对表【my_author】的数据库操作Mapper
+* @createDate 2023-01-08 11:48:18
+* @Entity com.ytc.model.Author
+*/
+public interface AuthorMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Author record);
+
+ int insertSelective(Author record);
+
+ Author selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Author record);
+
+ int updateByPrimaryKey(Author record);
+
+ List queryList();
+}
diff --git a/src/main/java/com/ytc/mapper/BookMapper.java b/src/main/java/com/ytc/mapper/BookMapper.java
new file mode 100644
index 0000000..5992208
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/BookMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Book;
+
+/**
+* @author 25645
+* @description 针对表【my_book(书籍内容表)】的数据库操作Mapper
+* @createDate 2023-01-08 11:49:05
+* @Entity com.ytc.model.Book
+*/
+public interface BookMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Book record);
+
+ int insertSelective(Book record);
+
+ Book selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Book record);
+
+ int updateByPrimaryKey(Book record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/BooklistMapper.java b/src/main/java/com/ytc/mapper/BooklistMapper.java
new file mode 100644
index 0000000..f59124a
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/BooklistMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Booklist;
+
+/**
+* @author 25645
+* @description 针对表【my_booklist(全部书籍列表)】的数据库操作Mapper
+* @createDate 2023-01-08 11:49:46
+* @Entity com.ytc.model.Booklist
+*/
+public interface BooklistMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Booklist record);
+
+ int insertSelective(Booklist record);
+
+ Booklist selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Booklist record);
+
+ int updateByPrimaryKey(Booklist record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/BookshelfMapper.java b/src/main/java/com/ytc/mapper/BookshelfMapper.java
new file mode 100644
index 0000000..2469548
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/BookshelfMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Bookshelf;
+
+/**
+* @author 25645
+* @description 针对表【my_bookshelf】的数据库操作Mapper
+* @createDate 2023-01-08 11:49:55
+* @Entity com.ytc.model.Bookshelf
+*/
+public interface BookshelfMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Bookshelf record);
+
+ int insertSelective(Bookshelf record);
+
+ Bookshelf selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Bookshelf record);
+
+ int updateByPrimaryKey(Bookshelf record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/CommentMapper.java b/src/main/java/com/ytc/mapper/CommentMapper.java
new file mode 100644
index 0000000..70bb46a
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/CommentMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Comment;
+
+/**
+* @author 25645
+* @description 针对表【my_comment(全部书籍列表)】的数据库操作Mapper
+* @createDate 2023-01-08 11:50:03
+* @Entity com.ytc.model.Comment
+*/
+public interface CommentMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Comment record);
+
+ int insertSelective(Comment record);
+
+ Comment selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Comment record);
+
+ int updateByPrimaryKey(Comment record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/FileInfoMapper.java b/src/main/java/com/ytc/mapper/FileInfoMapper.java
new file mode 100644
index 0000000..123955e
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/FileInfoMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.FileInfo;
+
+/**
+* @author 25645
+* @description 针对表【my_file(文件表)】的数据库操作Mapper
+* @createDate 2023-01-08 11:50:23
+* @Entity com.ytc.model.FileInfo
+*/
+public interface FileInfoMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(FileInfo record);
+
+ int insertSelective(FileInfo record);
+
+ FileInfo selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(FileInfo record);
+
+ int updateByPrimaryKey(FileInfo record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/KeywordMapper.java b/src/main/java/com/ytc/mapper/KeywordMapper.java
new file mode 100644
index 0000000..c38f53a
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/KeywordMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Keyword;
+
+/**
+* @author 25645
+* @description 针对表【my_keyword(书籍关键词)】的数据库操作Mapper
+* @createDate 2023-01-08 11:52:14
+* @Entity com.ytc.model.Keyword
+*/
+public interface KeywordMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Keyword record);
+
+ int insertSelective(Keyword record);
+
+ Keyword selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Keyword record);
+
+ int updateByPrimaryKey(Keyword record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/ReadingMapper.java b/src/main/java/com/ytc/mapper/ReadingMapper.java
new file mode 100644
index 0000000..47ba519
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/ReadingMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Reading;
+
+/**
+* @author 25645
+* @description 针对表【my_reading(阅读记录)】的数据库操作Mapper
+* @createDate 2023-01-08 11:52:19
+* @Entity com.ytc.model.Reading
+*/
+public interface ReadingMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Reading record);
+
+ int insertSelective(Reading record);
+
+ Reading selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Reading record);
+
+ int updateByPrimaryKey(Reading record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/RoleMapper.java b/src/main/java/com/ytc/mapper/RoleMapper.java
new file mode 100644
index 0000000..1c0cd32
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/RoleMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Role;
+
+/**
+* @author 25645
+* @description 针对表【my_role(用户角色表)】的数据库操作Mapper
+* @createDate 2023-01-08 11:52:23
+* @Entity com.ytc.model.Role
+*/
+public interface RoleMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Role record);
+
+ int insertSelective(Role record);
+
+ Role selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Role record);
+
+ int updateByPrimaryKey(Role record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/TreeMapper.java b/src/main/java/com/ytc/mapper/TreeMapper.java
new file mode 100644
index 0000000..c96e398
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/TreeMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Tree;
+
+/**
+* @author 25645
+* @description 针对表【my_tree(书籍关键字关联关系表)】的数据库操作Mapper
+* @createDate 2023-01-08 11:52:37
+* @Entity com.ytc.model.Tree
+*/
+public interface TreeMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Tree record);
+
+ int insertSelective(Tree record);
+
+ Tree selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Tree record);
+
+ int updateByPrimaryKey(Tree record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/TypeMapper.java b/src/main/java/com/ytc/mapper/TypeMapper.java
new file mode 100644
index 0000000..d2cdf62
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/TypeMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.Type;
+
+/**
+* @author 25645
+* @description 针对表【my_type】的数据库操作Mapper
+* @createDate 2023-01-08 11:52:43
+* @Entity com.ytc.model.Type
+*/
+public interface TypeMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Type record);
+
+ int insertSelective(Type record);
+
+ Type selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Type record);
+
+ int updateByPrimaryKey(Type record);
+
+}
diff --git a/src/main/java/com/ytc/mapper/UserMapper.java b/src/main/java/com/ytc/mapper/UserMapper.java
new file mode 100644
index 0000000..0627c02
--- /dev/null
+++ b/src/main/java/com/ytc/mapper/UserMapper.java
@@ -0,0 +1,25 @@
+package com.ytc.mapper;
+
+import com.ytc.model.User;
+
+/**
+* @author 25645
+* @description 针对表【my_user(用户表)】的数据库操作Mapper
+* @createDate 2023-01-08 11:52:47
+* @Entity com.ytc.model.User
+*/
+public interface UserMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(User record);
+
+ int insertSelective(User record);
+
+ User selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(User record);
+
+ int updateByPrimaryKey(User record);
+
+}
diff --git a/src/main/java/com/ytc/model/Account.java b/src/main/java/com/ytc/model/Account.java
new file mode 100644
index 0000000..c73dd57
--- /dev/null
+++ b/src/main/java/com/ytc/model/Account.java
@@ -0,0 +1,23 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_account
+ */
+@Data
+public class Account implements Serializable {
+ private Integer acId;
+
+ private Integer acUid;
+
+ private Double acMoney;
+
+ private Integer acCoin;
+
+ private Integer acAccount;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Author.java b/src/main/java/com/ytc/model/Author.java
new file mode 100644
index 0000000..29f6f5c
--- /dev/null
+++ b/src/main/java/com/ytc/model/Author.java
@@ -0,0 +1,23 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_author
+ */
+@Data
+public class Author implements Serializable {
+ private Integer aId;
+
+ private String aName;
+
+ private String aShow;
+
+ private String aBooklist;
+
+ private Integer aUid;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Book.java b/src/main/java/com/ytc/model/Book.java
new file mode 100644
index 0000000..5690c81
--- /dev/null
+++ b/src/main/java/com/ytc/model/Book.java
@@ -0,0 +1,32 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @TableName my_book
+ */
+@Data
+public class Book implements Serializable {
+ private Integer bChapterid;
+
+ private Integer bId;
+
+ private String bChaptername;
+
+ private String bShow;
+
+ private String bChapter;
+
+ private Integer bSignstatus;
+
+ private Date bDate;
+
+ private Integer bNum;
+
+ private Integer bAid;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Booklist.java b/src/main/java/com/ytc/model/Booklist.java
new file mode 100644
index 0000000..ed076d2
--- /dev/null
+++ b/src/main/java/com/ytc/model/Booklist.java
@@ -0,0 +1,40 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @TableName my_booklist
+ */
+@Data
+public class Booklist implements Serializable {
+ private Integer blId;
+
+ private String blName;
+
+ private Integer blTypeid;
+
+ private Integer blAuthorid;
+
+ private Integer blFid;
+
+ private Double blPrice;
+
+ private Integer blCount;
+
+ private Integer blCommentid;
+
+ private String blInfo;
+
+ private Date blDate;
+
+ private Integer blSpeed;
+
+ private Integer blStatus;
+
+ private Integer blUserid;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Bookshelf.java b/src/main/java/com/ytc/model/Bookshelf.java
new file mode 100644
index 0000000..d514d42
--- /dev/null
+++ b/src/main/java/com/ytc/model/Bookshelf.java
@@ -0,0 +1,19 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_bookshelf
+ */
+@Data
+public class Bookshelf implements Serializable {
+ private Integer bsId;
+
+ private Integer bsUserid;
+
+ private Integer bsBookid;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Comment.java b/src/main/java/com/ytc/model/Comment.java
new file mode 100644
index 0000000..6397e9b
--- /dev/null
+++ b/src/main/java/com/ytc/model/Comment.java
@@ -0,0 +1,23 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_comment
+ */
+@Data
+public class Comment implements Serializable {
+ private Integer cId;
+
+ private Integer cBookid;
+
+ private Integer cUserid;
+
+ private String cCommon;
+
+ private Integer cScore;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/FileInfo.java b/src/main/java/com/ytc/model/FileInfo.java
new file mode 100644
index 0000000..40b883c
--- /dev/null
+++ b/src/main/java/com/ytc/model/FileInfo.java
@@ -0,0 +1,17 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_file
+ */
+@Data
+public class FileInfo implements Serializable {
+ private Integer fId;
+
+ private String fUrl;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Keyword.java b/src/main/java/com/ytc/model/Keyword.java
new file mode 100644
index 0000000..3f705ab
--- /dev/null
+++ b/src/main/java/com/ytc/model/Keyword.java
@@ -0,0 +1,17 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_keyword
+ */
+@Data
+public class Keyword implements Serializable {
+ private Integer kId;
+
+ private String kName;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Reading.java b/src/main/java/com/ytc/model/Reading.java
new file mode 100644
index 0000000..1b6aa4b
--- /dev/null
+++ b/src/main/java/com/ytc/model/Reading.java
@@ -0,0 +1,19 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_reading
+ */
+@Data
+public class Reading implements Serializable {
+ private Integer rUid;
+
+ private Integer rBid;
+
+ private String rChapter;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Role.java b/src/main/java/com/ytc/model/Role.java
new file mode 100644
index 0000000..4bae462
--- /dev/null
+++ b/src/main/java/com/ytc/model/Role.java
@@ -0,0 +1,17 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_role
+ */
+@Data
+public class Role implements Serializable {
+ private Integer rId;
+
+ private String rName;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Tree.java b/src/main/java/com/ytc/model/Tree.java
new file mode 100644
index 0000000..c622f26
--- /dev/null
+++ b/src/main/java/com/ytc/model/Tree.java
@@ -0,0 +1,21 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_tree
+ */
+@Data
+public class Tree implements Serializable {
+ private Integer id;
+
+ private String text;
+
+ private String url;
+
+ private Integer pid;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/Type.java b/src/main/java/com/ytc/model/Type.java
new file mode 100644
index 0000000..e797285
--- /dev/null
+++ b/src/main/java/com/ytc/model/Type.java
@@ -0,0 +1,17 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_type
+ */
+@Data
+public class Type implements Serializable {
+ private Integer tId;
+
+ private String tName;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/ytc/model/User.java b/src/main/java/com/ytc/model/User.java
new file mode 100644
index 0000000..4858054
--- /dev/null
+++ b/src/main/java/com/ytc/model/User.java
@@ -0,0 +1,25 @@
+package com.ytc.model;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @TableName my_user
+ */
+@Data
+public class User implements Serializable {
+ private Integer uId;
+
+ private String uName;
+
+ private String uPwd;
+
+ private String uSalt;
+
+ private Integer uRoleid;
+
+ private Integer uMoney;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/resources/mapping/AccountMapper.xml b/src/main/resources/mapping/AccountMapper.xml
new file mode 100644
index 0000000..782f001
--- /dev/null
+++ b/src/main/resources/mapping/AccountMapper.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ac_id,ac_uid,ac_money,
+ ac_coin,ac_account
+
+
+
+
+
+ delete from my_account
+ where ac_id = #{acId,jdbcType=INTEGER}
+
+
+ insert into my_account
+ ( ac_id,ac_uid,ac_money
+ ,ac_coin,ac_account)
+ values (#{acId,jdbcType=INTEGER},#{acUid,jdbcType=INTEGER},#{acMoney,jdbcType=DOUBLE}
+ ,#{acCoin,jdbcType=INTEGER},#{acAccount,jdbcType=INTEGER})
+
+
+ insert into my_account
+
+ ac_id,
+ ac_uid,
+ ac_money,
+ ac_coin,
+ ac_account,
+
+
+ #{acId,jdbcType=INTEGER},
+ #{acUid,jdbcType=INTEGER},
+ #{acMoney,jdbcType=DOUBLE},
+ #{acCoin,jdbcType=INTEGER},
+ #{acAccount,jdbcType=INTEGER},
+
+
+
+ update my_account
+
+
+ ac_uid = #{acUid,jdbcType=INTEGER},
+
+
+ ac_money = #{acMoney,jdbcType=DOUBLE},
+
+
+ ac_coin = #{acCoin,jdbcType=INTEGER},
+
+
+ ac_account = #{acAccount,jdbcType=INTEGER},
+
+
+ where ac_id = #{acId,jdbcType=INTEGER}
+
+
+ update my_account
+ set
+ ac_uid = #{acUid,jdbcType=INTEGER},
+ ac_money = #{acMoney,jdbcType=DOUBLE},
+ ac_coin = #{acCoin,jdbcType=INTEGER},
+ ac_account = #{acAccount,jdbcType=INTEGER}
+ where ac_id = #{acId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/AuthorMapper.xml b/src/main/resources/mapping/AuthorMapper.xml
new file mode 100644
index 0000000..6ff8b4a
--- /dev/null
+++ b/src/main/resources/mapping/AuthorMapper.xml
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ a_id,a_name,a_show,
+ a_booklist,a_uid
+
+
+
+
+
+
+
+ delete from my_author
+ where a_id = #{aId,jdbcType=INTEGER}
+
+
+ insert into my_author
+ ( a_id,a_name,a_show
+ ,a_booklist,a_uid)
+ values (#{aId,jdbcType=INTEGER},#{aName,jdbcType=VARCHAR},#{aShow,jdbcType=VARCHAR}
+ ,#{aBooklist,jdbcType=VARCHAR},#{aUid,jdbcType=INTEGER})
+
+
+ insert into my_author
+
+ a_id,
+ a_name,
+ a_show,
+ a_booklist,
+ a_uid,
+
+
+ #{aId,jdbcType=INTEGER},
+ #{aName,jdbcType=VARCHAR},
+ #{aShow,jdbcType=VARCHAR},
+ #{aBooklist,jdbcType=VARCHAR},
+ #{aUid,jdbcType=INTEGER},
+
+
+
+ update my_author
+
+
+ a_name = #{aName,jdbcType=VARCHAR},
+
+
+ a_show = #{aShow,jdbcType=VARCHAR},
+
+
+ a_booklist = #{aBooklist,jdbcType=VARCHAR},
+
+
+ a_uid = #{aUid,jdbcType=INTEGER},
+
+
+ where a_id = #{aId,jdbcType=INTEGER}
+
+
+ update my_author
+ set
+ a_name = #{aName,jdbcType=VARCHAR},
+ a_show = #{aShow,jdbcType=VARCHAR},
+ a_booklist = #{aBooklist,jdbcType=VARCHAR},
+ a_uid = #{aUid,jdbcType=INTEGER}
+ where a_id = #{aId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/BookMapper.xml b/src/main/resources/mapping/BookMapper.xml
new file mode 100644
index 0000000..75e6983
--- /dev/null
+++ b/src/main/resources/mapping/BookMapper.xml
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ b_chapterid,b_id,b_chaptername,
+ b_show,b_chapter,b_signstatus,
+ b_date,b_num,b_aid
+
+
+
+
+
+ delete from my_book
+ where b_chapterid = #{bChapterid,jdbcType=INTEGER}
+
+
+ insert into my_book
+ ( b_chapterid,b_id,b_chaptername
+ ,b_show,b_chapter,b_signstatus
+ ,b_date,b_num,b_aid
+ )
+ values (#{bChapterid,jdbcType=INTEGER},#{bId,jdbcType=INTEGER},#{bChaptername,jdbcType=VARCHAR}
+ ,#{bShow,jdbcType=VARCHAR},#{bChapter,jdbcType=VARCHAR},#{bSignstatus,jdbcType=INTEGER}
+ ,#{bDate,jdbcType=TIMESTAMP},#{bNum,jdbcType=INTEGER},#{bAid,jdbcType=INTEGER}
+ )
+
+
+ insert into my_book
+
+ b_chapterid,
+ b_id,
+ b_chaptername,
+ b_show,
+ b_chapter,
+ b_signstatus,
+ b_date,
+ b_num,
+ b_aid,
+
+
+ #{bChapterid,jdbcType=INTEGER},
+ #{bId,jdbcType=INTEGER},
+ #{bChaptername,jdbcType=VARCHAR},
+ #{bShow,jdbcType=VARCHAR},
+ #{bChapter,jdbcType=VARCHAR},
+ #{bSignstatus,jdbcType=INTEGER},
+ #{bDate,jdbcType=TIMESTAMP},
+ #{bNum,jdbcType=INTEGER},
+ #{bAid,jdbcType=INTEGER},
+
+
+
+ update my_book
+
+
+ b_id = #{bId,jdbcType=INTEGER},
+
+
+ b_chaptername = #{bChaptername,jdbcType=VARCHAR},
+
+
+ b_show = #{bShow,jdbcType=VARCHAR},
+
+
+ b_chapter = #{bChapter,jdbcType=VARCHAR},
+
+
+ b_signstatus = #{bSignstatus,jdbcType=INTEGER},
+
+
+ b_date = #{bDate,jdbcType=TIMESTAMP},
+
+
+ b_num = #{bNum,jdbcType=INTEGER},
+
+
+ b_aid = #{bAid,jdbcType=INTEGER},
+
+
+ where b_chapterid = #{bChapterid,jdbcType=INTEGER}
+
+
+ update my_book
+ set
+ b_id = #{bId,jdbcType=INTEGER},
+ b_chaptername = #{bChaptername,jdbcType=VARCHAR},
+ b_show = #{bShow,jdbcType=VARCHAR},
+ b_chapter = #{bChapter,jdbcType=VARCHAR},
+ b_signstatus = #{bSignstatus,jdbcType=INTEGER},
+ b_date = #{bDate,jdbcType=TIMESTAMP},
+ b_num = #{bNum,jdbcType=INTEGER},
+ b_aid = #{bAid,jdbcType=INTEGER}
+ where b_chapterid = #{bChapterid,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/BooklistMapper.xml b/src/main/resources/mapping/BooklistMapper.xml
new file mode 100644
index 0000000..3aa5d65
--- /dev/null
+++ b/src/main/resources/mapping/BooklistMapper.xml
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ bl_id,bl_name,bl_typeid,
+ bl_authorid,bl_fid,bl_price,
+ bl_count,bl_commentid,bl_info,
+ bl_date,bl_speed,bl_status,
+ bl_userid
+
+
+
+
+
+ delete from my_booklist
+ where bl_id = #{blId,jdbcType=INTEGER}
+
+
+ insert into my_booklist
+ ( bl_id,bl_name,bl_typeid
+ ,bl_authorid,bl_fid,bl_price
+ ,bl_count,bl_commentid,bl_info
+ ,bl_date,bl_speed,bl_status
+ ,bl_userid)
+ values (#{blId,jdbcType=INTEGER},#{blName,jdbcType=VARCHAR},#{blTypeid,jdbcType=INTEGER}
+ ,#{blAuthorid,jdbcType=INTEGER},#{blFid,jdbcType=INTEGER},#{blPrice,jdbcType=DOUBLE}
+ ,#{blCount,jdbcType=INTEGER},#{blCommentid,jdbcType=INTEGER},#{blInfo,jdbcType=VARCHAR}
+ ,#{blDate,jdbcType=DATE},#{blSpeed,jdbcType=INTEGER},#{blStatus,jdbcType=INTEGER}
+ ,#{blUserid,jdbcType=INTEGER})
+
+
+ insert into my_booklist
+
+ bl_id,
+ bl_name,
+ bl_typeid,
+ bl_authorid,
+ bl_fid,
+ bl_price,
+ bl_count,
+ bl_commentid,
+ bl_info,
+ bl_date,
+ bl_speed,
+ bl_status,
+ bl_userid,
+
+
+ #{blId,jdbcType=INTEGER},
+ #{blName,jdbcType=VARCHAR},
+ #{blTypeid,jdbcType=INTEGER},
+ #{blAuthorid,jdbcType=INTEGER},
+ #{blFid,jdbcType=INTEGER},
+ #{blPrice,jdbcType=DOUBLE},
+ #{blCount,jdbcType=INTEGER},
+ #{blCommentid,jdbcType=INTEGER},
+ #{blInfo,jdbcType=VARCHAR},
+ #{blDate,jdbcType=DATE},
+ #{blSpeed,jdbcType=INTEGER},
+ #{blStatus,jdbcType=INTEGER},
+ #{blUserid,jdbcType=INTEGER},
+
+
+
+ update my_booklist
+
+
+ bl_name = #{blName,jdbcType=VARCHAR},
+
+
+ bl_typeid = #{blTypeid,jdbcType=INTEGER},
+
+
+ bl_authorid = #{blAuthorid,jdbcType=INTEGER},
+
+
+ bl_fid = #{blFid,jdbcType=INTEGER},
+
+
+ bl_price = #{blPrice,jdbcType=DOUBLE},
+
+
+ bl_count = #{blCount,jdbcType=INTEGER},
+
+
+ bl_commentid = #{blCommentid,jdbcType=INTEGER},
+
+
+ bl_info = #{blInfo,jdbcType=VARCHAR},
+
+
+ bl_date = #{blDate,jdbcType=DATE},
+
+
+ bl_speed = #{blSpeed,jdbcType=INTEGER},
+
+
+ bl_status = #{blStatus,jdbcType=INTEGER},
+
+
+ bl_userid = #{blUserid,jdbcType=INTEGER},
+
+
+ where bl_id = #{blId,jdbcType=INTEGER}
+
+
+ update my_booklist
+ set
+ bl_name = #{blName,jdbcType=VARCHAR},
+ bl_typeid = #{blTypeid,jdbcType=INTEGER},
+ bl_authorid = #{blAuthorid,jdbcType=INTEGER},
+ bl_fid = #{blFid,jdbcType=INTEGER},
+ bl_price = #{blPrice,jdbcType=DOUBLE},
+ bl_count = #{blCount,jdbcType=INTEGER},
+ bl_commentid = #{blCommentid,jdbcType=INTEGER},
+ bl_info = #{blInfo,jdbcType=VARCHAR},
+ bl_date = #{blDate,jdbcType=DATE},
+ bl_speed = #{blSpeed,jdbcType=INTEGER},
+ bl_status = #{blStatus,jdbcType=INTEGER},
+ bl_userid = #{blUserid,jdbcType=INTEGER}
+ where bl_id = #{blId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/BookshelfMapper.xml b/src/main/resources/mapping/BookshelfMapper.xml
new file mode 100644
index 0000000..f7689e1
--- /dev/null
+++ b/src/main/resources/mapping/BookshelfMapper.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+ bs_id,bs_userid,bs_bookid
+
+
+
+
+
+ delete from my_bookshelf
+ where bs_id = #{bsId,jdbcType=INTEGER}
+
+
+ insert into my_bookshelf
+ ( bs_id,bs_userid,bs_bookid
+ )
+ values (#{bsId,jdbcType=INTEGER},#{bsUserid,jdbcType=INTEGER},#{bsBookid,jdbcType=INTEGER}
+ )
+
+
+ insert into my_bookshelf
+
+ bs_id,
+ bs_userid,
+ bs_bookid,
+
+
+ #{bsId,jdbcType=INTEGER},
+ #{bsUserid,jdbcType=INTEGER},
+ #{bsBookid,jdbcType=INTEGER},
+
+
+
+ update my_bookshelf
+
+
+ bs_userid = #{bsUserid,jdbcType=INTEGER},
+
+
+ bs_bookid = #{bsBookid,jdbcType=INTEGER},
+
+
+ where bs_id = #{bsId,jdbcType=INTEGER}
+
+
+ update my_bookshelf
+ set
+ bs_userid = #{bsUserid,jdbcType=INTEGER},
+ bs_bookid = #{bsBookid,jdbcType=INTEGER}
+ where bs_id = #{bsId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/CommentMapper.xml b/src/main/resources/mapping/CommentMapper.xml
new file mode 100644
index 0000000..68af664
--- /dev/null
+++ b/src/main/resources/mapping/CommentMapper.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ c_id,c_bookid,c_userid,
+ c_common,c_score
+
+
+
+
+
+ delete from my_comment
+ where c_id = #{cId,jdbcType=INTEGER}
+
+
+ insert into my_comment
+ ( c_id,c_bookid,c_userid
+ ,c_common,c_score)
+ values (#{cId,jdbcType=INTEGER},#{cBookid,jdbcType=INTEGER},#{cUserid,jdbcType=INTEGER}
+ ,#{cCommon,jdbcType=VARCHAR},#{cScore,jdbcType=INTEGER})
+
+
+ insert into my_comment
+
+ c_id,
+ c_bookid,
+ c_userid,
+ c_common,
+ c_score,
+
+
+ #{cId,jdbcType=INTEGER},
+ #{cBookid,jdbcType=INTEGER},
+ #{cUserid,jdbcType=INTEGER},
+ #{cCommon,jdbcType=VARCHAR},
+ #{cScore,jdbcType=INTEGER},
+
+
+
+ update my_comment
+
+
+ c_bookid = #{cBookid,jdbcType=INTEGER},
+
+
+ c_userid = #{cUserid,jdbcType=INTEGER},
+
+
+ c_common = #{cCommon,jdbcType=VARCHAR},
+
+
+ c_score = #{cScore,jdbcType=INTEGER},
+
+
+ where c_id = #{cId,jdbcType=INTEGER}
+
+
+ update my_comment
+ set
+ c_bookid = #{cBookid,jdbcType=INTEGER},
+ c_userid = #{cUserid,jdbcType=INTEGER},
+ c_common = #{cCommon,jdbcType=VARCHAR},
+ c_score = #{cScore,jdbcType=INTEGER}
+ where c_id = #{cId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/FileInfoMapper.xml b/src/main/resources/mapping/FileInfoMapper.xml
new file mode 100644
index 0000000..ba995bd
--- /dev/null
+++ b/src/main/resources/mapping/FileInfoMapper.xml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+ f_id,f_url
+
+
+
+
+
+ delete from my_file
+ where f_id = #{fId,jdbcType=INTEGER}
+
+
+ insert into my_file
+ ( f_id,f_url)
+ values (#{fId,jdbcType=INTEGER},#{fUrl,jdbcType=VARCHAR})
+
+
+ insert into my_file
+
+ f_id,
+ f_url,
+
+
+ #{fId,jdbcType=INTEGER},
+ #{fUrl,jdbcType=VARCHAR},
+
+
+
+ update my_file
+
+
+ f_url = #{fUrl,jdbcType=VARCHAR},
+
+
+ where f_id = #{fId,jdbcType=INTEGER}
+
+
+ update my_file
+ set
+ f_url = #{fUrl,jdbcType=VARCHAR}
+ where f_id = #{fId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/KeywordMapper.xml b/src/main/resources/mapping/KeywordMapper.xml
new file mode 100644
index 0000000..1df2141
--- /dev/null
+++ b/src/main/resources/mapping/KeywordMapper.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+ k_id,k_name
+
+
+
+
+
+ delete from my_keyword
+ where
+
+
+ insert into my_keyword
+ ( k_id,k_name)
+ values (#{kId,jdbcType=INTEGER},#{kName,jdbcType=VARCHAR})
+
+
+ insert into my_keyword
+
+ k_id,
+ k_name,
+
+
+ #{kId,jdbcType=INTEGER},
+ #{kName,jdbcType=VARCHAR},
+
+
+
+ update my_keyword
+
+
+ k_id = #{kId,jdbcType=INTEGER},
+
+
+ k_name = #{kName,jdbcType=VARCHAR},
+
+
+ where
+
+
+ update my_keyword
+ set
+ k_id = #{kId,jdbcType=INTEGER},
+ k_name = #{kName,jdbcType=VARCHAR}
+ where
+
+
diff --git a/src/main/resources/mapping/ReadingMapper.xml b/src/main/resources/mapping/ReadingMapper.xml
new file mode 100644
index 0000000..e67731e
--- /dev/null
+++ b/src/main/resources/mapping/ReadingMapper.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+ r_uid,r_bid,r_chapter
+
+
+
+
+
+ delete from my_reading
+ where
+
+
+ insert into my_reading
+ ( r_uid,r_bid,r_chapter
+ )
+ values (#{rUid,jdbcType=INTEGER},#{rBid,jdbcType=INTEGER},#{rChapter,jdbcType=VARCHAR}
+ )
+
+
+ insert into my_reading
+
+ r_uid,
+ r_bid,
+ r_chapter,
+
+
+ #{rUid,jdbcType=INTEGER},
+ #{rBid,jdbcType=INTEGER},
+ #{rChapter,jdbcType=VARCHAR},
+
+
+
+ update my_reading
+
+
+ r_uid = #{rUid,jdbcType=INTEGER},
+
+
+ r_bid = #{rBid,jdbcType=INTEGER},
+
+
+ r_chapter = #{rChapter,jdbcType=VARCHAR},
+
+
+ where
+
+
+ update my_reading
+ set
+ r_uid = #{rUid,jdbcType=INTEGER},
+ r_bid = #{rBid,jdbcType=INTEGER},
+ r_chapter = #{rChapter,jdbcType=VARCHAR}
+ where
+
+
diff --git a/src/main/resources/mapping/RoleMapper.xml b/src/main/resources/mapping/RoleMapper.xml
new file mode 100644
index 0000000..70bc6eb
--- /dev/null
+++ b/src/main/resources/mapping/RoleMapper.xml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+ r_id,r_name
+
+
+
+
+
+ delete from my_role
+ where r_id = #{rId,jdbcType=INTEGER}
+
+
+ insert into my_role
+ ( r_id,r_name)
+ values (#{rId,jdbcType=INTEGER},#{rName,jdbcType=VARCHAR})
+
+
+ insert into my_role
+
+ r_id,
+ r_name,
+
+
+ #{rId,jdbcType=INTEGER},
+ #{rName,jdbcType=VARCHAR},
+
+
+
+ update my_role
+
+
+ r_name = #{rName,jdbcType=VARCHAR},
+
+
+ where r_id = #{rId,jdbcType=INTEGER}
+
+
+ update my_role
+ set
+ r_name = #{rName,jdbcType=VARCHAR}
+ where r_id = #{rId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/TreeMapper.xml b/src/main/resources/mapping/TreeMapper.xml
new file mode 100644
index 0000000..cf00c0e
--- /dev/null
+++ b/src/main/resources/mapping/TreeMapper.xml
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ id,text,url,
+ pid
+
+
+
+
+
+ delete from my_tree
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into my_tree
+ ( id,text,url
+ ,pid)
+ values (#{id,jdbcType=INTEGER},#{text,jdbcType=VARCHAR},#{url,jdbcType=VARCHAR}
+ ,#{pid,jdbcType=INTEGER})
+
+
+ insert into my_tree
+
+ id,
+ text,
+ url,
+ pid,
+
+
+ #{id,jdbcType=INTEGER},
+ #{text,jdbcType=VARCHAR},
+ #{url,jdbcType=VARCHAR},
+ #{pid,jdbcType=INTEGER},
+
+
+
+ update my_tree
+
+
+ text = #{text,jdbcType=VARCHAR},
+
+
+ url = #{url,jdbcType=VARCHAR},
+
+
+ pid = #{pid,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update my_tree
+ set
+ text = #{text,jdbcType=VARCHAR},
+ url = #{url,jdbcType=VARCHAR},
+ pid = #{pid,jdbcType=INTEGER}
+ where id = #{id,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/TypeMapper.xml b/src/main/resources/mapping/TypeMapper.xml
new file mode 100644
index 0000000..fc77d0a
--- /dev/null
+++ b/src/main/resources/mapping/TypeMapper.xml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+ t_id,t_name
+
+
+
+
+
+ delete from my_type
+ where t_id = #{tId,jdbcType=INTEGER}
+
+
+ insert into my_type
+ ( t_id,t_name)
+ values (#{tId,jdbcType=INTEGER},#{tName,jdbcType=VARCHAR})
+
+
+ insert into my_type
+
+ t_id,
+ t_name,
+
+
+ #{tId,jdbcType=INTEGER},
+ #{tName,jdbcType=VARCHAR},
+
+
+
+ update my_type
+
+
+ t_name = #{tName,jdbcType=VARCHAR},
+
+
+ where t_id = #{tId,jdbcType=INTEGER}
+
+
+ update my_type
+ set
+ t_name = #{tName,jdbcType=VARCHAR}
+ where t_id = #{tId,jdbcType=INTEGER}
+
+
diff --git a/src/main/resources/mapping/UserMapper.xml b/src/main/resources/mapping/UserMapper.xml
new file mode 100644
index 0000000..4f61f34
--- /dev/null
+++ b/src/main/resources/mapping/UserMapper.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ u_id,u_name,u_pwd,
+ u_salt,u_roleid,u_money
+
+
+
+
+
+ delete from my_user
+ where u_id = #{uId,jdbcType=INTEGER}
+
+
+ insert into my_user
+ ( u_id,u_name,u_pwd
+ ,u_salt,u_roleid,u_money
+ )
+ values (#{uId,jdbcType=INTEGER},#{uName,jdbcType=VARCHAR},#{uPwd,jdbcType=VARCHAR}
+ ,#{uSalt,jdbcType=VARCHAR},#{uRoleid,jdbcType=INTEGER},#{uMoney,jdbcType=INTEGER}
+ )
+
+
+ insert into my_user
+
+ u_id,
+ u_name,
+ u_pwd,
+ u_salt,
+ u_roleid,
+ u_money,
+
+
+ #{uId,jdbcType=INTEGER},
+ #{uName,jdbcType=VARCHAR},
+ #{uPwd,jdbcType=VARCHAR},
+ #{uSalt,jdbcType=VARCHAR},
+ #{uRoleid,jdbcType=INTEGER},
+ #{uMoney,jdbcType=INTEGER},
+
+
+
+ update my_user
+
+
+ u_name = #{uName,jdbcType=VARCHAR},
+
+
+ u_pwd = #{uPwd,jdbcType=VARCHAR},
+
+
+ u_salt = #{uSalt,jdbcType=VARCHAR},
+
+
+ u_roleid = #{uRoleid,jdbcType=INTEGER},
+
+
+ u_money = #{uMoney,jdbcType=INTEGER},
+
+
+ where u_id = #{uId,jdbcType=INTEGER}
+
+
+ update my_user
+ set
+ u_name = #{uName,jdbcType=VARCHAR},
+ u_pwd = #{uPwd,jdbcType=VARCHAR},
+ u_salt = #{uSalt,jdbcType=VARCHAR},
+ u_roleid = #{uRoleid,jdbcType=INTEGER},
+ u_money = #{uMoney,jdbcType=INTEGER}
+ where u_id = #{uId,jdbcType=INTEGER}
+
+
--
Gitee