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