From 51d6b70ba94e327587d1655798122c6239374400 Mon Sep 17 00:00:00 2001
From: wanggeng <450292408@qq.com>
Date: Wed, 3 Nov 2021 21:38:42 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=9A=E5=8A=A1=E4=B8=8E?=
=?UTF-8?q?=E7=94=A8=E6=88=B7=E5=85=B3=E8=81=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../business-user/business-user-mapper.xml | 211 ++++++++++++
.../mapper/business/business-mapper.xml | 311 ++++++++++++++++++
.../templates/business-user/list.html | 245 ++++++++++++++
.../templates/business-user/save.html | 111 +++++++
.../templates/business-user/update.html | 128 +++++++
.../resources/templates/business/list.html | 263 +++++++++++++++
.../resources/templates/business/save.html | 117 +++++++
.../resources/templates/business/update.html | 134 ++++++++
8 files changed, 1520 insertions(+)
create mode 100644 src/main/resources/mybatis/mapper/business-user/business-user-mapper.xml
create mode 100644 src/main/resources/mybatis/mapper/business/business-mapper.xml
create mode 100644 src/main/resources/templates/business-user/list.html
create mode 100644 src/main/resources/templates/business-user/save.html
create mode 100644 src/main/resources/templates/business-user/update.html
create mode 100644 src/main/resources/templates/business/list.html
create mode 100644 src/main/resources/templates/business/save.html
create mode 100644 src/main/resources/templates/business/update.html
diff --git a/src/main/resources/mybatis/mapper/business-user/business-user-mapper.xml b/src/main/resources/mybatis/mapper/business-user/business-user-mapper.xml
new file mode 100644
index 0000000..89f8650
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/business-user/business-user-mapper.xml
@@ -0,0 +1,211 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CREATE TABLE IF NOT EXISTS `city_business_user` (
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `business_user_id` char(36) DEFAULT NULL COMMENT '主键',
+ `business_id` char(36) DEFAULT NULL COMMENT '业务ID',
+ `user_id` char(36) DEFAULT NULL COMMENT '用户ID',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `business_user_id` (`business_user_id`),
+ KEY `business_id` (`business_id`),
+ KEY `user_id` (`user_id`)
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='业务用户';
+
+
+
+
+ INSERT INTO city_business_user(
+ business_user_id,
+ business_id,
+ user_id
+ ) VALUES(
+ #{businessUserId},
+ #{businessId},
+ #{userId}
+ )
+
+
+
+
+
+ DELETE FROM
+ city_business_user
+ WHERE
+ business_user_id IN
+
+ #{businessUserIds[${index}]}
+
+
+
+
+
+ UPDATE
+ city_business_user
+ SET
+
+ business_id = #{businessId},
+
+
+ user_id = #{userId},
+
+ business_user_id = business_user_id
+ WHERE
+ business_user_id = #{businessUserId}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mybatis/mapper/business/business-mapper.xml b/src/main/resources/mybatis/mapper/business/business-mapper.xml
new file mode 100644
index 0000000..b3ef713
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/business/business-mapper.xml
@@ -0,0 +1,311 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CREATE TABLE IF NOT EXISTS `city_business` (
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `business_id` char(36) DEFAULT NULL COMMENT '主键',
+ `business_name` varchar(255) DEFAULT NULL COMMENT '业务名称',
+ `business_summary` varchar(255) DEFAULT NULL COMMENT '业务描述',
+ `business_code` varchar(255) DEFAULT NULL COMMENT '业务编码',
+ `creator` char(36) DEFAULT NULL COMMENT '创建人',
+ `gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
+ `modifier` char(36) DEFAULT NULL COMMENT '修改人',
+ `gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
+ `is_delete` int(1) DEFAULT '0' COMMENT '是否删除',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `business_id` (`business_id`)
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='业务';
+
+
+
+
+ INSERT INTO city_business(
+ business_id,
+ business_name,
+ business_summary,
+ business_code,
+ creator,
+ gmt_create,
+ modifier,
+ gmt_modified,
+ is_delete
+ ) VALUES(
+ #{businessId},
+ #{businessName},
+ #{businessSummary},
+ #{businessCode},
+ #{creator},
+ #{gmtCreate},
+ #{modifier},
+ #{gmtModified},
+ #{isDelete}
+ )
+
+
+
+
+ UPDATE
+ city_business
+ SET
+ gmt_modified = #{gmtModified},
+ modifier = #{modifier},
+ is_delete = 1
+ WHERE
+ business_id IN
+
+ #{businessIds[${index}]}
+
+
+
+
+
+ DELETE FROM
+ city_business
+ WHERE
+ business_id IN
+
+ #{businessIds[${index}]}
+
+
+
+
+
+ UPDATE
+ city_business
+ SET
+
+ business_name = #{businessName},
+
+
+ business_summary = #{businessSummary},
+
+
+ business_code = #{businessCode},
+
+ gmt_modified = #{gmtModified},
+ modifier = #{modifier},
+ business_id = business_id
+ WHERE
+ business_id = #{businessId}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/business-user/list.html b/src/main/resources/templates/business-user/list.html
new file mode 100644
index 0000000..a57a8f0
--- /dev/null
+++ b/src/main/resources/templates/business-user/list.html
@@ -0,0 +1,245 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/business-user/save.html b/src/main/resources/templates/business-user/save.html
new file mode 100644
index 0000000..88f2e81
--- /dev/null
+++ b/src/main/resources/templates/business-user/save.html
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/business-user/update.html b/src/main/resources/templates/business-user/update.html
new file mode 100644
index 0000000..9387834
--- /dev/null
+++ b/src/main/resources/templates/business-user/update.html
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/business/list.html b/src/main/resources/templates/business/list.html
new file mode 100644
index 0000000..42f08ba
--- /dev/null
+++ b/src/main/resources/templates/business/list.html
@@ -0,0 +1,263 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/business/save.html b/src/main/resources/templates/business/save.html
new file mode 100644
index 0000000..711d308
--- /dev/null
+++ b/src/main/resources/templates/business/save.html
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/business/update.html b/src/main/resources/templates/business/update.html
new file mode 100644
index 0000000..4133ceb
--- /dev/null
+++ b/src/main/resources/templates/business/update.html
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file