diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..e7e9d11d4bf243bffe4bb60b4ac1f9392297f4bf
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,2 @@
+# Default ignored files
+/workspace.xml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index 63e900193296f8ed911a1b9f5b051cf908099431..aa00ffab7828f4818589659c804ec2cfd99baed3 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -2,5 +2,6 @@
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 05c04c51da18dc1f0da828546ef2e866cad31a53..d51f3e36d350431aa75b3d568546f9a92f6c7ee3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,8 +15,6 @@
UTF-8
- 1.7
- 1.7
@@ -26,6 +24,18 @@
4.11
test
+
+ mysql
+ mysql-connector-java
+ 8.0.17
+
+
+
+ org.mybatis.generator
+ mybatis-generator-core
+ 1.3.2
+
+
@@ -33,7 +43,24 @@
-
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ 1.3.2
+
+
+ ${basedir}/src/main/resources/generatorConfig.xml
+ true
+ true
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.17
+
+
+
diff --git a/src/main/java/team/zmn/repository/dao/ProductDeliveryMapper.java b/src/main/java/team/zmn/repository/dao/ProductDeliveryMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..0f632c815925258b6ad19d66c98fe28e23847ba6
--- /dev/null
+++ b/src/main/java/team/zmn/repository/dao/ProductDeliveryMapper.java
@@ -0,0 +1,16 @@
+package team.zmn.repository.dao;
+
+import java.util.List;
+import team.zmn.repository.pojo.ProductDelivery;
+
+public interface ProductDeliveryMapper {
+ int deleteByPrimaryKey(String pDeliveryNo);
+
+ int insert(ProductDelivery record);
+
+ ProductDelivery selectByPrimaryKey(String pDeliveryNo);
+
+ List selectAll();
+
+ int updateByPrimaryKey(ProductDelivery record);
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/dao/ProductMessageMapper.java b/src/main/java/team/zmn/repository/dao/ProductMessageMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..0b1a20a6a933dfde09d8f7df0c70af06fb4e5582
--- /dev/null
+++ b/src/main/java/team/zmn/repository/dao/ProductMessageMapper.java
@@ -0,0 +1,16 @@
+package team.zmn.repository.dao;
+
+import java.util.List;
+import team.zmn.repository.pojo.ProductMessage;
+
+public interface ProductMessageMapper {
+ int deleteByPrimaryKey(String pId);
+
+ int insert(ProductMessage record);
+
+ ProductMessage selectByPrimaryKey(String pId);
+
+ List selectAll();
+
+ int updateByPrimaryKey(ProductMessage record);
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/dao/ProductStockMapper.java b/src/main/java/team/zmn/repository/dao/ProductStockMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..3271bb114ea8e4292f329fb03d5780c887aafb13
--- /dev/null
+++ b/src/main/java/team/zmn/repository/dao/ProductStockMapper.java
@@ -0,0 +1,16 @@
+package team.zmn.repository.dao;
+
+import java.util.List;
+import team.zmn.repository.pojo.ProductStock;
+
+public interface ProductStockMapper {
+ int deleteByPrimaryKey(String pStockNo);
+
+ int insert(ProductStock record);
+
+ ProductStock selectByPrimaryKey(String pStockNo);
+
+ List selectAll();
+
+ int updateByPrimaryKey(ProductStock record);
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/dao/RepositoryMapper.java b/src/main/java/team/zmn/repository/dao/RepositoryMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..0fc11ec3d10f8d6e791e512b3efd466121b23e83
--- /dev/null
+++ b/src/main/java/team/zmn/repository/dao/RepositoryMapper.java
@@ -0,0 +1,16 @@
+package team.zmn.repository.dao;
+
+import java.util.List;
+import team.zmn.repository.pojo.Repository;
+
+public interface RepositoryMapper {
+ int deleteByPrimaryKey(String repositoryId);
+
+ int insert(Repository record);
+
+ Repository selectByPrimaryKey(String repositoryId);
+
+ List selectAll();
+
+ int updateByPrimaryKey(Repository record);
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/dao/RepositoryMessageMapper.java b/src/main/java/team/zmn/repository/dao/RepositoryMessageMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..2bde9fdc8e27da743f663b1c687b61b8166c9ba8
--- /dev/null
+++ b/src/main/java/team/zmn/repository/dao/RepositoryMessageMapper.java
@@ -0,0 +1,16 @@
+package team.zmn.repository.dao;
+
+import java.util.List;
+import team.zmn.repository.pojo.RepositoryMessage;
+
+public interface RepositoryMessageMapper {
+ int deleteByPrimaryKey(String id);
+
+ int insert(RepositoryMessage record);
+
+ RepositoryMessage selectByPrimaryKey(String id);
+
+ List selectAll();
+
+ int updateByPrimaryKey(RepositoryMessage record);
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/dao/RoleMapper.java b/src/main/java/team/zmn/repository/dao/RoleMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..8c9a00ba4b9ff3dd56de850e1d829fd7fb07524b
--- /dev/null
+++ b/src/main/java/team/zmn/repository/dao/RoleMapper.java
@@ -0,0 +1,16 @@
+package team.zmn.repository.dao;
+
+import java.util.List;
+import team.zmn.repository.pojo.Role;
+
+public interface RoleMapper {
+ int deleteByPrimaryKey(String roleId);
+
+ int insert(Role record);
+
+ Role selectByPrimaryKey(String roleId);
+
+ List selectAll();
+
+ int updateByPrimaryKey(Role record);
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/dao/UserMapper.java b/src/main/java/team/zmn/repository/dao/UserMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..40028e1ba7b905cee4d91c368ae811b2b0f74af7
--- /dev/null
+++ b/src/main/java/team/zmn/repository/dao/UserMapper.java
@@ -0,0 +1,16 @@
+package team.zmn.repository.dao;
+
+import java.util.List;
+import team.zmn.repository.pojo.User;
+
+public interface UserMapper {
+ int deleteByPrimaryKey(String userId);
+
+ int insert(User record);
+
+ User selectByPrimaryKey(String userId);
+
+ List selectAll();
+
+ int updateByPrimaryKey(User record);
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/mapper/ProductDeliveryMapper.xml b/src/main/java/team/zmn/repository/mapper/ProductDeliveryMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1a3fe53b2a4de142b2e2668ddfb9d65c036a7df2
--- /dev/null
+++ b/src/main/java/team/zmn/repository/mapper/ProductDeliveryMapper.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete from product_delivery
+ where p_delivery_No = #{pDeliveryNo,jdbcType=VARCHAR}
+
+
+ insert into product_delivery (p_delivery_No, p_id, p_name,
+ p_type, p_delivery_price, p_delivery_number,
+ p_delivery_total, user_id, p_delivery_address,
+ p_payment_method, p_delivery_date, p_delivery_remarks
+ )
+ values (#{pDeliveryNo,jdbcType=VARCHAR}, #{pId,jdbcType=VARCHAR}, #{pName,jdbcType=VARCHAR},
+ #{pType,jdbcType=VARCHAR}, #{pDeliveryPrice,jdbcType=REAL}, #{pDeliveryNumber,jdbcType=REAL},
+ #{pDeliveryTotal,jdbcType=REAL}, #{userId,jdbcType=VARCHAR}, #{pDeliveryAddress,jdbcType=VARCHAR},
+ #{pPaymentMethod,jdbcType=VARCHAR}, #{pDeliveryDate,jdbcType=DATE}, #{pDeliveryRemarks,jdbcType=LONGVARCHAR}
+ )
+
+
+ update product_delivery
+ set p_id = #{pId,jdbcType=VARCHAR},
+ p_name = #{pName,jdbcType=VARCHAR},
+ p_type = #{pType,jdbcType=VARCHAR},
+ p_delivery_price = #{pDeliveryPrice,jdbcType=REAL},
+ p_delivery_number = #{pDeliveryNumber,jdbcType=REAL},
+ p_delivery_total = #{pDeliveryTotal,jdbcType=REAL},
+ user_id = #{userId,jdbcType=VARCHAR},
+ p_delivery_address = #{pDeliveryAddress,jdbcType=VARCHAR},
+ p_payment_method = #{pPaymentMethod,jdbcType=VARCHAR},
+ p_delivery_date = #{pDeliveryDate,jdbcType=DATE},
+ p_delivery_remarks = #{pDeliveryRemarks,jdbcType=LONGVARCHAR}
+ where p_delivery_No = #{pDeliveryNo,jdbcType=VARCHAR}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/mapper/ProductMessageMapper.xml b/src/main/java/team/zmn/repository/mapper/ProductMessageMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..63e40af85d39151f69d431e9588568962b48c21f
--- /dev/null
+++ b/src/main/java/team/zmn/repository/mapper/ProductMessageMapper.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete from product_message
+ where p_id = #{pId,jdbcType=VARCHAR}
+
+
+ insert into product_message (p_id, p_name, p_type,
+ p_balance, p_stock_price, p_delivery_price,
+ repository_id, repository_name)
+ values (#{pId,jdbcType=VARCHAR}, #{pName,jdbcType=VARCHAR}, #{pType,jdbcType=VARCHAR},
+ #{pBalance,jdbcType=REAL}, #{pStockPrice,jdbcType=REAL}, #{pDeliveryPrice,jdbcType=REAL},
+ #{repositoryId,jdbcType=VARCHAR}, #{repositoryName,jdbcType=VARCHAR})
+
+
+ update product_message
+ set p_name = #{pName,jdbcType=VARCHAR},
+ p_type = #{pType,jdbcType=VARCHAR},
+ p_balance = #{pBalance,jdbcType=REAL},
+ p_stock_price = #{pStockPrice,jdbcType=REAL},
+ p_delivery_price = #{pDeliveryPrice,jdbcType=REAL},
+ repository_id = #{repositoryId,jdbcType=VARCHAR},
+ repository_name = #{repositoryName,jdbcType=VARCHAR}
+ where p_id = #{pId,jdbcType=VARCHAR}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/mapper/ProductStockMapper.xml b/src/main/java/team/zmn/repository/mapper/ProductStockMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4809fe6686aa1145e0ab854d772a19c79337a8cb
--- /dev/null
+++ b/src/main/java/team/zmn/repository/mapper/ProductStockMapper.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete from product_stock
+ where p_stock_No = #{pStockNo,jdbcType=VARCHAR}
+
+
+ insert into product_stock (p_stock_No, p_id, p_name,
+ p_type, p_stock_price, p_stock_number,
+ p_stock_total, p_supplier, user_id,
+ p_stock_date, p_remarks)
+ values (#{pStockNo,jdbcType=VARCHAR}, #{pId,jdbcType=VARCHAR}, #{pName,jdbcType=VARCHAR},
+ #{pType,jdbcType=VARCHAR}, #{pStockPrice,jdbcType=REAL}, #{pStockNumber,jdbcType=REAL},
+ #{pStockTotal,jdbcType=REAL}, #{pSupplier,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
+ #{pStockDate,jdbcType=DATE}, #{pRemarks,jdbcType=VARCHAR})
+
+
+ update product_stock
+ set p_id = #{pId,jdbcType=VARCHAR},
+ p_name = #{pName,jdbcType=VARCHAR},
+ p_type = #{pType,jdbcType=VARCHAR},
+ p_stock_price = #{pStockPrice,jdbcType=REAL},
+ p_stock_number = #{pStockNumber,jdbcType=REAL},
+ p_stock_total = #{pStockTotal,jdbcType=REAL},
+ p_supplier = #{pSupplier,jdbcType=VARCHAR},
+ user_id = #{userId,jdbcType=VARCHAR},
+ p_stock_date = #{pStockDate,jdbcType=DATE},
+ p_remarks = #{pRemarks,jdbcType=VARCHAR}
+ where p_stock_No = #{pStockNo,jdbcType=VARCHAR}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/mapper/RepositoryMapper.xml b/src/main/java/team/zmn/repository/mapper/RepositoryMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d93872d31f146421142798eb2f3ea9a8a8712755
--- /dev/null
+++ b/src/main/java/team/zmn/repository/mapper/RepositoryMapper.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+ delete from repository
+ where repository_id = #{repositoryId,jdbcType=VARCHAR}
+
+
+ insert into repository (repository_id, repository_name, kinds
+ )
+ values (#{repositoryId,jdbcType=VARCHAR}, #{repositoryName,jdbcType=VARCHAR}, #{kinds,jdbcType=VARCHAR}
+ )
+
+
+ update repository
+ set repository_name = #{repositoryName,jdbcType=VARCHAR},
+ kinds = #{kinds,jdbcType=VARCHAR}
+ where repository_id = #{repositoryId,jdbcType=VARCHAR}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/mapper/RepositoryMessageMapper.xml b/src/main/java/team/zmn/repository/mapper/RepositoryMessageMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d64b3290b7c36072a6f23934378d26cd05747e9b
--- /dev/null
+++ b/src/main/java/team/zmn/repository/mapper/RepositoryMessageMapper.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+ delete from repository_message
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ insert into repository_message (id, repository_id, p_id,
+ p_balance)
+ values (#{id,jdbcType=VARCHAR}, #{repositoryId,jdbcType=VARCHAR}, #{pId,jdbcType=VARCHAR},
+ #{pBalance,jdbcType=REAL})
+
+
+ update repository_message
+ set repository_id = #{repositoryId,jdbcType=VARCHAR},
+ p_id = #{pId,jdbcType=VARCHAR},
+ p_balance = #{pBalance,jdbcType=REAL}
+ where id = #{id,jdbcType=VARCHAR}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/mapper/RoleMapper.xml b/src/main/java/team/zmn/repository/mapper/RoleMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1d1106298f7caa6128b713706d5245423cc1baa9
--- /dev/null
+++ b/src/main/java/team/zmn/repository/mapper/RoleMapper.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+ delete from role
+ where role_id = #{roleId,jdbcType=VARCHAR}
+
+
+ insert into role (role_id, role_type)
+ values (#{roleId,jdbcType=VARCHAR}, #{roleType,jdbcType=VARCHAR})
+
+
+ update role
+ set role_type = #{roleType,jdbcType=VARCHAR}
+ where role_id = #{roleId,jdbcType=VARCHAR}
+
+
+
+
+
+
+
+
+ delete from role
+ where role_id = #{roleId,jdbcType=VARCHAR}
+
+
+ insert into role (role_id, role_type)
+ values (#{roleId,jdbcType=VARCHAR}, #{roleType,jdbcType=VARCHAR})
+
+
+ update role
+ set role_type = #{roleType,jdbcType=VARCHAR}
+ where role_id = #{roleId,jdbcType=VARCHAR}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/mapper/UserMapper.xml b/src/main/java/team/zmn/repository/mapper/UserMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f7cb987f580793a47d2c9caf3a13c9a5d2f4f907
--- /dev/null
+++ b/src/main/java/team/zmn/repository/mapper/UserMapper.xml
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+ delete from user
+ where user_id = #{userId,jdbcType=VARCHAR}
+
+
+ insert into user (user_id, role_id)
+ values (#{userId,jdbcType=VARCHAR}, #{roleId,jdbcType=VARCHAR})
+
+
+ update user
+ set role_id = #{roleId,jdbcType=VARCHAR}
+ where user_id = #{userId,jdbcType=VARCHAR}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete from user
+ where User = #{user,jdbcType=CHAR}
+
+
+ insert into user (User, Host, Select_priv,
+ Insert_priv, Update_priv, Delete_priv,
+ Create_priv, Drop_priv, Reload_priv,
+ Shutdown_priv, Process_priv, File_priv,
+ Grant_priv, References_priv, Index_priv,
+ Alter_priv, Show_db_priv, Super_priv,
+ Create_tmp_table_priv, Lock_tables_priv, Execute_priv,
+ Repl_slave_priv, Repl_client_priv, Create_view_priv,
+ Show_view_priv, Create_routine_priv, Alter_routine_priv,
+ Create_user_priv, Event_priv, Trigger_priv,
+ Create_tablespace_priv, ssl_type, max_questions,
+ max_updates, max_connections, max_user_connections,
+ plugin, password_expired, password_last_changed,
+ password_lifetime, account_locked, Create_role_priv,
+ Drop_role_priv, Password_reuse_history, Password_reuse_time,
+ Password_require_current, ssl_cipher, x509_issuer,
+ x509_subject, authentication_string,
+ User_attributes)
+ values (#{user,jdbcType=CHAR}, #{host,jdbcType=CHAR}, #{selectPriv,jdbcType=CHAR},
+ #{insertPriv,jdbcType=CHAR}, #{updatePriv,jdbcType=CHAR}, #{deletePriv,jdbcType=CHAR},
+ #{createPriv,jdbcType=CHAR}, #{dropPriv,jdbcType=CHAR}, #{reloadPriv,jdbcType=CHAR},
+ #{shutdownPriv,jdbcType=CHAR}, #{processPriv,jdbcType=CHAR}, #{filePriv,jdbcType=CHAR},
+ #{grantPriv,jdbcType=CHAR}, #{referencesPriv,jdbcType=CHAR}, #{indexPriv,jdbcType=CHAR},
+ #{alterPriv,jdbcType=CHAR}, #{showDbPriv,jdbcType=CHAR}, #{superPriv,jdbcType=CHAR},
+ #{createTmpTablePriv,jdbcType=CHAR}, #{lockTablesPriv,jdbcType=CHAR}, #{executePriv,jdbcType=CHAR},
+ #{replSlavePriv,jdbcType=CHAR}, #{replClientPriv,jdbcType=CHAR}, #{createViewPriv,jdbcType=CHAR},
+ #{showViewPriv,jdbcType=CHAR}, #{createRoutinePriv,jdbcType=CHAR}, #{alterRoutinePriv,jdbcType=CHAR},
+ #{createUserPriv,jdbcType=CHAR}, #{eventPriv,jdbcType=CHAR}, #{triggerPriv,jdbcType=CHAR},
+ #{createTablespacePriv,jdbcType=CHAR}, #{sslType,jdbcType=CHAR}, #{maxQuestions,jdbcType=INTEGER},
+ #{maxUpdates,jdbcType=INTEGER}, #{maxConnections,jdbcType=INTEGER}, #{maxUserConnections,jdbcType=INTEGER},
+ #{plugin,jdbcType=CHAR}, #{passwordExpired,jdbcType=CHAR}, #{passwordLastChanged,jdbcType=TIMESTAMP},
+ #{passwordLifetime,jdbcType=SMALLINT}, #{accountLocked,jdbcType=CHAR}, #{createRolePriv,jdbcType=CHAR},
+ #{dropRolePriv,jdbcType=CHAR}, #{passwordReuseHistory,jdbcType=SMALLINT}, #{passwordReuseTime,jdbcType=SMALLINT},
+ #{passwordRequireCurrent,jdbcType=CHAR}, #{sslCipher,jdbcType=LONGVARBINARY}, #{x509Issuer,jdbcType=LONGVARBINARY},
+ #{x509Subject,jdbcType=LONGVARBINARY}, #{authenticationString,jdbcType=LONGVARCHAR},
+ #{userAttributes,jdbcType=LONGVARCHAR})
+
+
+ update user
+ set Host = #{host,jdbcType=CHAR},
+ Select_priv = #{selectPriv,jdbcType=CHAR},
+ Insert_priv = #{insertPriv,jdbcType=CHAR},
+ Update_priv = #{updatePriv,jdbcType=CHAR},
+ Delete_priv = #{deletePriv,jdbcType=CHAR},
+ Create_priv = #{createPriv,jdbcType=CHAR},
+ Drop_priv = #{dropPriv,jdbcType=CHAR},
+ Reload_priv = #{reloadPriv,jdbcType=CHAR},
+ Shutdown_priv = #{shutdownPriv,jdbcType=CHAR},
+ Process_priv = #{processPriv,jdbcType=CHAR},
+ File_priv = #{filePriv,jdbcType=CHAR},
+ Grant_priv = #{grantPriv,jdbcType=CHAR},
+ References_priv = #{referencesPriv,jdbcType=CHAR},
+ Index_priv = #{indexPriv,jdbcType=CHAR},
+ Alter_priv = #{alterPriv,jdbcType=CHAR},
+ Show_db_priv = #{showDbPriv,jdbcType=CHAR},
+ Super_priv = #{superPriv,jdbcType=CHAR},
+ Create_tmp_table_priv = #{createTmpTablePriv,jdbcType=CHAR},
+ Lock_tables_priv = #{lockTablesPriv,jdbcType=CHAR},
+ Execute_priv = #{executePriv,jdbcType=CHAR},
+ Repl_slave_priv = #{replSlavePriv,jdbcType=CHAR},
+ Repl_client_priv = #{replClientPriv,jdbcType=CHAR},
+ Create_view_priv = #{createViewPriv,jdbcType=CHAR},
+ Show_view_priv = #{showViewPriv,jdbcType=CHAR},
+ Create_routine_priv = #{createRoutinePriv,jdbcType=CHAR},
+ Alter_routine_priv = #{alterRoutinePriv,jdbcType=CHAR},
+ Create_user_priv = #{createUserPriv,jdbcType=CHAR},
+ Event_priv = #{eventPriv,jdbcType=CHAR},
+ Trigger_priv = #{triggerPriv,jdbcType=CHAR},
+ Create_tablespace_priv = #{createTablespacePriv,jdbcType=CHAR},
+ ssl_type = #{sslType,jdbcType=CHAR},
+ max_questions = #{maxQuestions,jdbcType=INTEGER},
+ max_updates = #{maxUpdates,jdbcType=INTEGER},
+ max_connections = #{maxConnections,jdbcType=INTEGER},
+ max_user_connections = #{maxUserConnections,jdbcType=INTEGER},
+ plugin = #{plugin,jdbcType=CHAR},
+ password_expired = #{passwordExpired,jdbcType=CHAR},
+ password_last_changed = #{passwordLastChanged,jdbcType=TIMESTAMP},
+ password_lifetime = #{passwordLifetime,jdbcType=SMALLINT},
+ account_locked = #{accountLocked,jdbcType=CHAR},
+ Create_role_priv = #{createRolePriv,jdbcType=CHAR},
+ Drop_role_priv = #{dropRolePriv,jdbcType=CHAR},
+ Password_reuse_history = #{passwordReuseHistory,jdbcType=SMALLINT},
+ Password_reuse_time = #{passwordReuseTime,jdbcType=SMALLINT},
+ Password_require_current = #{passwordRequireCurrent,jdbcType=CHAR},
+ ssl_cipher = #{sslCipher,jdbcType=LONGVARBINARY},
+ x509_issuer = #{x509Issuer,jdbcType=LONGVARBINARY},
+ x509_subject = #{x509Subject,jdbcType=LONGVARBINARY},
+ authentication_string = #{authenticationString,jdbcType=LONGVARCHAR},
+ User_attributes = #{userAttributes,jdbcType=LONGVARCHAR}
+ where User = #{user,jdbcType=CHAR}
+
+
+
+
+
+
+
+
+
+
+ delete from user
+ where user_id = #{userId,jdbcType=VARCHAR}
+
+
+ insert into user (user_id, user_name, user_password,
+ role_id)
+ values (#{userId,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{userPassword,jdbcType=VARCHAR},
+ #{roleId,jdbcType=VARCHAR})
+
+
+ update user
+ set user_name = #{userName,jdbcType=VARCHAR},
+ user_password = #{userPassword,jdbcType=VARCHAR},
+ role_id = #{roleId,jdbcType=VARCHAR}
+ where user_id = #{userId,jdbcType=VARCHAR}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/pojo/ProductDelivery.java b/src/main/java/team/zmn/repository/pojo/ProductDelivery.java
new file mode 100644
index 0000000000000000000000000000000000000000..58ce65f019770b5973273ba5ea0016f982a4feb4
--- /dev/null
+++ b/src/main/java/team/zmn/repository/pojo/ProductDelivery.java
@@ -0,0 +1,128 @@
+package team.zmn.repository.pojo;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class ProductDelivery implements Serializable {
+ private String pDeliveryNo;
+
+ private String pId;
+
+ private String pName;
+
+ private String pType;
+
+ private Float pDeliveryPrice;
+
+ private Float pDeliveryNumber;
+
+ private Float pDeliveryTotal;
+
+ private String userId;
+
+ private String pDeliveryAddress;
+
+ private String pPaymentMethod;
+
+ private Date pDeliveryDate;
+
+ private String pDeliveryRemarks;
+
+ private static final long serialVersionUID = 1L;
+
+ public String getpDeliveryNo() {
+ return pDeliveryNo;
+ }
+
+ public void setpDeliveryNo(String pDeliveryNo) {
+ this.pDeliveryNo = pDeliveryNo == null ? null : pDeliveryNo.trim();
+ }
+
+ public String getpId() {
+ return pId;
+ }
+
+ public void setpId(String pId) {
+ this.pId = pId == null ? null : pId.trim();
+ }
+
+ public String getpName() {
+ return pName;
+ }
+
+ public void setpName(String pName) {
+ this.pName = pName == null ? null : pName.trim();
+ }
+
+ public String getpType() {
+ return pType;
+ }
+
+ public void setpType(String pType) {
+ this.pType = pType == null ? null : pType.trim();
+ }
+
+ public Float getpDeliveryPrice() {
+ return pDeliveryPrice;
+ }
+
+ public void setpDeliveryPrice(Float pDeliveryPrice) {
+ this.pDeliveryPrice = pDeliveryPrice;
+ }
+
+ public Float getpDeliveryNumber() {
+ return pDeliveryNumber;
+ }
+
+ public void setpDeliveryNumber(Float pDeliveryNumber) {
+ this.pDeliveryNumber = pDeliveryNumber;
+ }
+
+ public Float getpDeliveryTotal() {
+ return pDeliveryTotal;
+ }
+
+ public void setpDeliveryTotal(Float pDeliveryTotal) {
+ this.pDeliveryTotal = pDeliveryTotal;
+ }
+
+ public String getUserId() {
+ return userId;
+ }
+
+ public void setUserId(String userId) {
+ this.userId = userId == null ? null : userId.trim();
+ }
+
+ public String getpDeliveryAddress() {
+ return pDeliveryAddress;
+ }
+
+ public void setpDeliveryAddress(String pDeliveryAddress) {
+ this.pDeliveryAddress = pDeliveryAddress == null ? null : pDeliveryAddress.trim();
+ }
+
+ public String getpPaymentMethod() {
+ return pPaymentMethod;
+ }
+
+ public void setpPaymentMethod(String pPaymentMethod) {
+ this.pPaymentMethod = pPaymentMethod == null ? null : pPaymentMethod.trim();
+ }
+
+ public Date getpDeliveryDate() {
+ return pDeliveryDate;
+ }
+
+ public void setpDeliveryDate(Date pDeliveryDate) {
+ this.pDeliveryDate = pDeliveryDate;
+ }
+
+ public String getpDeliveryRemarks() {
+ return pDeliveryRemarks;
+ }
+
+ public void setpDeliveryRemarks(String pDeliveryRemarks) {
+ this.pDeliveryRemarks = pDeliveryRemarks == null ? null : pDeliveryRemarks.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/pojo/ProductMessage.java b/src/main/java/team/zmn/repository/pojo/ProductMessage.java
new file mode 100644
index 0000000000000000000000000000000000000000..10fdb682a0abf49aaa1fd7d2c6f0f24c030c0350
--- /dev/null
+++ b/src/main/java/team/zmn/repository/pojo/ProductMessage.java
@@ -0,0 +1,87 @@
+package team.zmn.repository.pojo;
+
+import java.io.Serializable;
+
+public class ProductMessage implements Serializable {
+ private String pId;
+
+ private String pName;
+
+ private String pType;
+
+ private Float pBalance;
+
+ private Float pStockPrice;
+
+ private Float pDeliveryPrice;
+
+ private String repositoryId;
+
+ private String repositoryName;
+
+ private static final long serialVersionUID = 1L;
+
+ public String getpId() {
+ return pId;
+ }
+
+ public void setpId(String pId) {
+ this.pId = pId == null ? null : pId.trim();
+ }
+
+ public String getpName() {
+ return pName;
+ }
+
+ public void setpName(String pName) {
+ this.pName = pName == null ? null : pName.trim();
+ }
+
+ public String getpType() {
+ return pType;
+ }
+
+ public void setpType(String pType) {
+ this.pType = pType == null ? null : pType.trim();
+ }
+
+ public Float getpBalance() {
+ return pBalance;
+ }
+
+ public void setpBalance(Float pBalance) {
+ this.pBalance = pBalance;
+ }
+
+ public Float getpStockPrice() {
+ return pStockPrice;
+ }
+
+ public void setpStockPrice(Float pStockPrice) {
+ this.pStockPrice = pStockPrice;
+ }
+
+ public Float getpDeliveryPrice() {
+ return pDeliveryPrice;
+ }
+
+ public void setpDeliveryPrice(Float pDeliveryPrice) {
+ this.pDeliveryPrice = pDeliveryPrice;
+ }
+
+ public String getRepositoryId() {
+ return repositoryId;
+ }
+
+ public void setRepositoryId(String repositoryId) {
+ this.repositoryId = repositoryId == null ? null : repositoryId.trim();
+ }
+
+ public String getRepositoryName() {
+ return repositoryName;
+ }
+
+ public void setRepositoryName(String repositoryName) {
+ this.repositoryName = repositoryName == null ? null : repositoryName.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/pojo/ProductStock.java b/src/main/java/team/zmn/repository/pojo/ProductStock.java
new file mode 100644
index 0000000000000000000000000000000000000000..7d23777837121afc4966626117b915a6d5be7a1e
--- /dev/null
+++ b/src/main/java/team/zmn/repository/pojo/ProductStock.java
@@ -0,0 +1,118 @@
+package team.zmn.repository.pojo;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class ProductStock implements Serializable {
+ private String pStockNo;
+
+ private String pId;
+
+ private String pName;
+
+ private String pType;
+
+ private Float pStockPrice;
+
+ private Float pStockNumber;
+
+ private Float pStockTotal;
+
+ private String pSupplier;
+
+ private String userId;
+
+ private Date pStockDate;
+
+ private String pRemarks;
+
+ private static final long serialVersionUID = 1L;
+
+ public String getpStockNo() {
+ return pStockNo;
+ }
+
+ public void setpStockNo(String pStockNo) {
+ this.pStockNo = pStockNo == null ? null : pStockNo.trim();
+ }
+
+ public String getpId() {
+ return pId;
+ }
+
+ public void setpId(String pId) {
+ this.pId = pId == null ? null : pId.trim();
+ }
+
+ public String getpName() {
+ return pName;
+ }
+
+ public void setpName(String pName) {
+ this.pName = pName == null ? null : pName.trim();
+ }
+
+ public String getpType() {
+ return pType;
+ }
+
+ public void setpType(String pType) {
+ this.pType = pType == null ? null : pType.trim();
+ }
+
+ public Float getpStockPrice() {
+ return pStockPrice;
+ }
+
+ public void setpStockPrice(Float pStockPrice) {
+ this.pStockPrice = pStockPrice;
+ }
+
+ public Float getpStockNumber() {
+ return pStockNumber;
+ }
+
+ public void setpStockNumber(Float pStockNumber) {
+ this.pStockNumber = pStockNumber;
+ }
+
+ public Float getpStockTotal() {
+ return pStockTotal;
+ }
+
+ public void setpStockTotal(Float pStockTotal) {
+ this.pStockTotal = pStockTotal;
+ }
+
+ public String getpSupplier() {
+ return pSupplier;
+ }
+
+ public void setpSupplier(String pSupplier) {
+ this.pSupplier = pSupplier == null ? null : pSupplier.trim();
+ }
+
+ public String getUserId() {
+ return userId;
+ }
+
+ public void setUserId(String userId) {
+ this.userId = userId == null ? null : userId.trim();
+ }
+
+ public Date getpStockDate() {
+ return pStockDate;
+ }
+
+ public void setpStockDate(Date pStockDate) {
+ this.pStockDate = pStockDate;
+ }
+
+ public String getpRemarks() {
+ return pRemarks;
+ }
+
+ public void setpRemarks(String pRemarks) {
+ this.pRemarks = pRemarks == null ? null : pRemarks.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/pojo/Repository.java b/src/main/java/team/zmn/repository/pojo/Repository.java
new file mode 100644
index 0000000000000000000000000000000000000000..eea33b9343ca2f60156434cb5f6befe5e3c19d13
--- /dev/null
+++ b/src/main/java/team/zmn/repository/pojo/Repository.java
@@ -0,0 +1,37 @@
+package team.zmn.repository.pojo;
+
+import java.io.Serializable;
+
+public class Repository implements Serializable {
+ private String repositoryId;
+
+ private String repositoryName;
+
+ private String kinds;
+
+ private static final long serialVersionUID = 1L;
+
+ public String getRepositoryId() {
+ return repositoryId;
+ }
+
+ public void setRepositoryId(String repositoryId) {
+ this.repositoryId = repositoryId == null ? null : repositoryId.trim();
+ }
+
+ public String getRepositoryName() {
+ return repositoryName;
+ }
+
+ public void setRepositoryName(String repositoryName) {
+ this.repositoryName = repositoryName == null ? null : repositoryName.trim();
+ }
+
+ public String getKinds() {
+ return kinds;
+ }
+
+ public void setKinds(String kinds) {
+ this.kinds = kinds == null ? null : kinds.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/pojo/RepositoryMessage.java b/src/main/java/team/zmn/repository/pojo/RepositoryMessage.java
new file mode 100644
index 0000000000000000000000000000000000000000..e0474d0d02ce10802f2f98e2c2909a96687d8de4
--- /dev/null
+++ b/src/main/java/team/zmn/repository/pojo/RepositoryMessage.java
@@ -0,0 +1,47 @@
+package team.zmn.repository.pojo;
+
+import java.io.Serializable;
+
+public class RepositoryMessage implements Serializable {
+ private String id;
+
+ private String repositoryId;
+
+ private String pId;
+
+ private Float pBalance;
+
+ private static final long serialVersionUID = 1L;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id == null ? null : id.trim();
+ }
+
+ public String getRepositoryId() {
+ return repositoryId;
+ }
+
+ public void setRepositoryId(String repositoryId) {
+ this.repositoryId = repositoryId == null ? null : repositoryId.trim();
+ }
+
+ public String getpId() {
+ return pId;
+ }
+
+ public void setpId(String pId) {
+ this.pId = pId == null ? null : pId.trim();
+ }
+
+ public Float getpBalance() {
+ return pBalance;
+ }
+
+ public void setpBalance(Float pBalance) {
+ this.pBalance = pBalance;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/pojo/Role.java b/src/main/java/team/zmn/repository/pojo/Role.java
new file mode 100644
index 0000000000000000000000000000000000000000..32e50718d322dc2f945fb83b8011cbc98171f79e
--- /dev/null
+++ b/src/main/java/team/zmn/repository/pojo/Role.java
@@ -0,0 +1,27 @@
+package team.zmn.repository.pojo;
+
+import java.io.Serializable;
+
+public class Role implements Serializable {
+ private String roleId;
+
+ private String roleType;
+
+ private static final long serialVersionUID = 1L;
+
+ public String getRoleId() {
+ return roleId;
+ }
+
+ public void setRoleId(String roleId) {
+ this.roleId = roleId == null ? null : roleId.trim();
+ }
+
+ public String getRoleType() {
+ return roleType;
+ }
+
+ public void setRoleType(String roleType) {
+ this.roleType = roleType == null ? null : roleType.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/team/zmn/repository/pojo/User.java b/src/main/java/team/zmn/repository/pojo/User.java
new file mode 100644
index 0000000000000000000000000000000000000000..5ac309de8efc95a4af1af1666d66e2530ca67a13
--- /dev/null
+++ b/src/main/java/team/zmn/repository/pojo/User.java
@@ -0,0 +1,27 @@
+package team.zmn.repository.pojo;
+
+import java.io.Serializable;
+
+public class User implements Serializable {
+ private String userId;
+
+ private String roleId;
+
+ private static final long serialVersionUID = 1L;
+
+ public String getUserId() {
+ return userId;
+ }
+
+ public void setUserId(String userId) {
+ this.userId = userId == null ? null : userId.trim();
+ }
+
+ public String getRoleId() {
+ return roleId;
+ }
+
+ public void setRoleId(String roleId) {
+ this.roleId = roleId == null ? null : roleId.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/resources/config.properties b/src/main/resources/config.properties
new file mode 100644
index 0000000000000000000000000000000000000000..b8d4a946ea3564f518ebcf08403a65deedaf3ac8
--- /dev/null
+++ b/src/main/resources/config.properties
@@ -0,0 +1,5 @@
+driverClassName=com.mysql.cj.jdbc.Driver
+validationQuery=SELECT 1
+jdbc_url=jdbc:mysql://localhost:3306/repository?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
+jdbc_username=root
+jdbc_password=123456
\ No newline at end of file
diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c346f09bb80d6d67a9ffbe8d36ff4b634b5c15f5
--- /dev/null
+++ b/src/main/resources/generatorConfig.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file