调试快速登录
This commit is contained in:
parent
76ad164d4e
commit
614e04ed1b
6
TODOs.md
6
TODOs.md
@ -1,4 +1,8 @@
|
||||
frontend项目重写
|
||||
还要做的部分
|
||||
|
||||
社区、系统管理员后台管理 frontend项目
|
||||
小程序扫门禁码之后门禁开门
|
||||
小程序修改密码
|
||||
|
||||
# 门禁端网页
|
||||
|
||||
|
@ -56,6 +56,12 @@
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>5.3.26</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
@ -14,6 +14,25 @@ spring:
|
||||
locator:
|
||||
enabled: true
|
||||
lower-case-service-id: true
|
||||
globalcors:
|
||||
add-to-simple-url-handler-mapping: true # 解决 options 请求被拦截问题
|
||||
corsConfigurations:
|
||||
'[/**]':
|
||||
# allowedOrigins: # 允许哪些网站的跨域请求 allowedOrigins: “*” 允许所有网站
|
||||
# - "https://localhost:8001"
|
||||
# - "https://localhost:8002"
|
||||
# - "https://localhost:8003"
|
||||
allowedOriginPatterns:
|
||||
- "*"
|
||||
allowedMethods: # 允许的跨域ajax的请求方式 “*” 允许所有
|
||||
- "GET"
|
||||
- "POST"
|
||||
- "DELETE"
|
||||
- "PUT"
|
||||
- "OPTIONS"
|
||||
allowedHeaders: "*" # 允许在请求中携带的头信息
|
||||
allowCredentials: true # 是否允许携带cookie
|
||||
maxAge: 360000 # 这次跨域检测的有效期
|
||||
routes:
|
||||
- id: user
|
||||
uri: lb://microservice-provider-user
|
||||
|
@ -11,7 +11,7 @@
|
||||
Target Server Version : 80012
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 21/03/2023 16:33:57
|
||||
Date: 22/03/2023 16:41:32
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
@ -32,7 +32,7 @@ CREATE TABLE `apply1` (
|
||||
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)',
|
||||
`reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of apply1
|
||||
@ -48,6 +48,21 @@ INSERT INTO `apply1` VALUES (10, 12, '1', '飞机', '1', '2022-06-15 10:53:00',
|
||||
INSERT INTO `apply1` VALUES (11, 2, '1', '飞机', '1', '2022-10-23 16:17:00', '2022-10-23 18:17:00', 1, '');
|
||||
INSERT INTO `apply1` VALUES (12, 13, '1', '飞机', '1', '2022-10-26 19:25:00', '2022-10-26 21:25:00', 1, '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for community_gate
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `community_gate`;
|
||||
CREATE TABLE `community_gate` (
|
||||
`id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '雪花id',
|
||||
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '大门显示名称',
|
||||
`open` tinyint(1) NOT NULL DEFAULT 1 COMMENT '大门是否开放 1为开放 2为关闭',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '社区大门' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of community_gate
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for count1
|
||||
-- ----------------------------
|
||||
@ -76,7 +91,7 @@ CREATE TABLE `feedback1` (
|
||||
`user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id',
|
||||
`reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of feedback1
|
||||
@ -111,7 +126,7 @@ CREATE TABLE `goods` (
|
||||
INDEX `category_id`(`category_id`) USING BTREE,
|
||||
INDEX `brand_id`(`brand`) USING BTREE,
|
||||
INDEX `sort_order`(`sort_order`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 88 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商品基本信息表' ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 88 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商品基本信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of goods
|
||||
@ -213,7 +228,7 @@ CREATE TABLE `goods_category` (
|
||||
`category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品分类名',
|
||||
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of goods_category
|
||||
@ -236,7 +251,7 @@ CREATE TABLE `notice1` (
|
||||
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
|
||||
`time` date NULL DEFAULT NULL COMMENT '时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of notice1
|
||||
@ -261,7 +276,7 @@ CREATE TABLE `order` (
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `id`(`id`) USING BTREE,
|
||||
INDEX `user_id`(`user_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of order
|
||||
@ -286,7 +301,7 @@ CREATE TABLE `order_detail` (
|
||||
INDEX `good_id`(`good_id`) USING BTREE,
|
||||
CONSTRAINT `order_detail_ibfk_1` FOREIGN KEY (`good_id`) REFERENCES `goods` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
||||
CONSTRAINT `order_detail_ibfk_2` FOREIGN KEY (`order_id`) REFERENCES `order` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 43 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of order_detail
|
||||
@ -314,7 +329,7 @@ CREATE TABLE `report` (
|
||||
`temperature` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '体温是否正常',
|
||||
`address` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 60 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 61 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of report
|
||||
@ -335,7 +350,7 @@ CREATE TABLE `setting` (
|
||||
`value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间或失效时间(具体根据key来判断)',
|
||||
UNIQUE INDEX `key`(`key`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of setting
|
||||
@ -364,27 +379,8 @@ CREATE TABLE `user` (
|
||||
-- ----------------------------
|
||||
-- Records of user
|
||||
-- ----------------------------
|
||||
INSERT INTO `user` VALUES (1, 'root', '99adc231b045331e514a516b4b7680f588e3823213abe901738bc3ad67b2f6fcb3c64efb93d18002588d3ccc1a49efbae1ce20cb43df36b38651f11fa75678e8', '管理员 密码root', '420111111111111111', NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (2, 'lhz', 'lhz', '廖鸿志', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (3, '21180000', '21180000', '李', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (4, '211', '211', '11', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (5, '2111', '2111', '111', NULL, NULL, 1, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (6, '222', '222', '33', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (7, '33', '33', '44', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (8, 'test', '1', 'test', NULL, NULL, 3, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (9, '123456', '123456', '123456', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (10, '211806336', '211806336', '211806336', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (11, '001', '001', '老师', NULL, NULL, 1, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (12, '002', '002', '刘鸿宇', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (13, 'z', 'zz', 'z', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (14, '111', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (15, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (16, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (17, '111111111111', '111111111111', '111111111111', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (18, '12', '12', '12', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (19, '210602212109', '210602212109', '曾子华', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (20, 'undefined', 'undefined', '信息2121', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (21, '2', '2', '曾', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (1, 'root', '99adc231b045331e514a516b4b7680f588e3823213abe901738bc3ad67b2f6fcb3c64efb93d18002588d3ccc1a49efbae1ce20cb43df36b38651f11fa75678e8', '管理员 密码root', '420111111111111111', NULL, 1, NULL, NULL, 0, NULL);
|
||||
INSERT INTO `user` VALUES (2, 'user', 'b14361404c078ffd549c03db443c3fede2f3e534d73f78f77301ed97d4a436a9fd9db05ee8b325c0ad36438b43fec8510c204fc1c1edb21d0941c00e9e2c1ce2', '用户 密码user', '420111111111111111', NULL, 2, NULL, NULL, 0, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for visitor1
|
||||
@ -399,7 +395,7 @@ CREATE TABLE `visitor1` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:成功,2:驳回)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of visitor1
|
||||
|
@ -15,7 +15,7 @@
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "http://localhost:8001/user/login?username=root&password=63a9f0ea7bb98050796b649e85481845",
|
||||
"raw": "http://localhost:8001/user/login?username=root&password=root",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"localhost"
|
||||
@ -32,12 +32,104 @@
|
||||
},
|
||||
{
|
||||
"key": "password",
|
||||
"value": "63a9f0ea7bb98050796b649e85481845"
|
||||
"value": "root"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[线上] 用户登录",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "http://epp.only4.work/user/login?username=root&password=root",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"epp",
|
||||
"only4",
|
||||
"work"
|
||||
],
|
||||
"path": [
|
||||
"user",
|
||||
"login"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "username",
|
||||
"value": "root"
|
||||
},
|
||||
{
|
||||
"key": "password",
|
||||
"value": "root"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[微服务] 用户登录 OPTIONS",
|
||||
"request": {
|
||||
"method": "OPTIONS",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "http://localhost:8001/user/login",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"localhost"
|
||||
],
|
||||
"port": "8001",
|
||||
"path": [
|
||||
"user",
|
||||
"login"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[Gateway] 用户登录 OPTIONS",
|
||||
"request": {
|
||||
"method": "OPTIONS",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "http://localhost:80/user/login",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"localhost"
|
||||
],
|
||||
"port": "80",
|
||||
"path": [
|
||||
"user",
|
||||
"login"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[线上] 用户登录 OPTIONS",
|
||||
"request": {
|
||||
"method": "OPTIONS",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://epp.only4.work/user/login",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"epp",
|
||||
"only4",
|
||||
"work"
|
||||
],
|
||||
"path": [
|
||||
"user",
|
||||
"login"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -15,7 +15,11 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
if (app.globalData.debugMode) {
|
||||
this.setData({
|
||||
debugMode: true,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -75,6 +79,14 @@ Page({
|
||||
this.setData(newData)
|
||||
},
|
||||
|
||||
fastLogin() {
|
||||
this.setData({
|
||||
username: "user",
|
||||
password: "user",
|
||||
})
|
||||
this.login()
|
||||
},
|
||||
|
||||
login() {
|
||||
console.log("login userInput", this.data.username, this.data.password)
|
||||
if (!this.data.username || !this.data.password) {
|
||||
@ -102,6 +114,21 @@ Page({
|
||||
let result = d.data;
|
||||
if (result.success) {
|
||||
// 登录成功
|
||||
if (result.data.userInfo.role != 2) {
|
||||
wx.showModal({
|
||||
title: '你不是社区居民',
|
||||
content: '请前往网页版登录',
|
||||
complete: (res) => {
|
||||
if (res.cancel) {
|
||||
|
||||
}
|
||||
|
||||
if (res.confirm) {
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
wx.setStorageSync("userInfo", result.data.userInfo);
|
||||
console.log("userInfo", wx.getStorageSync("userInfo"))
|
||||
wx.switchTab({
|
||||
|
@ -12,6 +12,7 @@
|
||||
</view>
|
||||
<view class="loginBtnView">
|
||||
<!--按钮-->
|
||||
<button wx:if="{{debugMode}}" class="loginBtn" type="warn" bindtap="fastLogin">DEBUG快速登录user</button>
|
||||
<button class="loginBtn" type="primary" bindtap="login">登录</button>
|
||||
<button class="loginBtn" type="secondary" bindtap="visitor">访客申请</button>
|
||||
</view>
|
||||
|
26
z 论文TODO.txt
Normal file
26
z 论文TODO.txt
Normal file
@ -0,0 +1,26 @@
|
||||
TODO
|
||||
格式:
|
||||
小项目编号:1. 2. 3. ….
|
||||
图表引用 如图x所示更新编号以及文中引用
|
||||
图、表不夸页
|
||||
参考文献更新,添加参考文献引用
|
||||
文档中的TODO处理
|
||||
|
||||
|
||||
|
||||
论文可以参考一下:https://blog.csdn.net/WeiXin_DZbishe/article/details/127091024
|
||||
|
||||
|
||||
【中英论文下载】
|
||||
强烈推荐使用谷歌浏览器
|
||||
卡号:356983353,密码:270045
|
||||
打开链接
|
||||
www.mv616.xyz,点击页面顶端【会员登录】
|
||||
输入发给你的卡号卡密,点击【资源列表】然后点击【中文/英文数据库】
|
||||
_________________________________________________________________
|
||||
|
||||
1,每个数据库里面很多入口,选择一个点击进去,搜不到或者不能下载的,换其他入口使用即可!
|
||||
2,三小时内5星带10字以上好评告知客服,免费送第三方查重工具哦!
|
||||
|
||||
|
||||
*不限制下载数量,遇到使用问题请咨询客服或者留言,不满意支持退款的哦!
|
239
论文中数据字典.md
Normal file
239
论文中数据字典.md
Normal file
@ -0,0 +1,239 @@
|
||||
> 使用 phpMyAdmin 导出,如果有修改,可以同步修改到论文正文
|
||||
|
||||
## apply1
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---------- | :---------- | :--- | :----- | :--------------------------- |
|
||||
| id *(主键)* | int | 否 | | |
|
||||
| stu_id | int | 是 | *NULL* | 用户id |
|
||||
| issue | varchar(50) | 是 | *NULL* | 申请事由 |
|
||||
| transport | varchar(20) | 是 | *NULL* | 出行方式 |
|
||||
| place | varchar(50) | 是 | *NULL* | 目的地 |
|
||||
| start_time | datetime | 是 | *NULL* | 开始时间 |
|
||||
| end_time | datetime | 是 | *NULL* | 结束时间 |
|
||||
| state | int | 是 | 0 | 状态(0:审批中,1:通过,2:驳回) |
|
||||
| reason | varchar(20) | 是 | *NULL* | 驳回原因 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 10 | A | 否 | |
|
||||
|
||||
## community_gate
|
||||
|
||||
表注释: *社区大门*
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---------- | :---------- | :--- | :--- | :--------------------------- |
|
||||
| id *(主键)* | bigint | 否 | | 雪花id |
|
||||
| name | varchar(50) | 否 | | 大门显示名称 |
|
||||
| open | tinyint(1) | 否 | 1 | 大门是否开放 1为开放 2为关闭 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 0 | A | 否 | |
|
||||
|
||||
## count1
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :------------ | :------- | :--- | :----- | :------- |
|
||||
| date *(主键)* | date | 否 | | 日期 |
|
||||
| time | datetime | 是 | *NULL* | 时间 |
|
||||
| in_num | int | 是 | *NULL* | 入校人数 |
|
||||
| out_num | int | 是 | *NULL* | 出校人数 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | date | 0 | A | 否 | |
|
||||
|
||||
## feedback1
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---------- | :----------- | :--- | :----- | :--------- |
|
||||
| id *(主键)* | int | 否 | | |
|
||||
| title | varchar(255) | 是 | *NULL* | 反馈标题 |
|
||||
| content | longtext | 是 | *NULL* | 反馈内容 |
|
||||
| time | datetime | 是 | *NULL* | 反馈时间 |
|
||||
| user_id | int | 是 | *NULL* | 反馈用户id |
|
||||
| reply | varchar(255) | 是 | *NULL* | 回复 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 5 | A | 否 | |
|
||||
|
||||
## goods
|
||||
|
||||
表注释: *商品基本信息表*
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :------------ | :------------ | :--- | :-------- | :--------------------------------- |
|
||||
| id *(主键)* | bigint | 否 | | |
|
||||
| goods_name | varchar(127) | 否 | | 商品名称 |
|
||||
| category_id | int | 是 | 0 | 商品所属类目ID |
|
||||
| brand | varchar(255) | 是 | 0 | 商品品牌 |
|
||||
| gallery | varchar(1023) | 是 | [] | 商品宣传图片列表,采用JSON数组格式 |
|
||||
| brief | varchar(255) | 是 | *NULL* | 商品简介 |
|
||||
| is_on_sale | tinyint(1) | 是 | 1 | 是否上架 0为下架 1为上架 |
|
||||
| sort_order | smallint | 是 | 100 | 排序 |
|
||||
| pic_url | varchar(255) | 是 | *NULL* | 商品页面商品图片 |
|
||||
| type | tinyint(1) | 是 | 0 | 商品类型 |
|
||||
| unit | varchar(31) | 是 | 件 | 商品单位,例如件、盒 |
|
||||
| counter_price | decimal(10,2) | 是 | 0.00 | 专柜价格(原价 / 划线价) |
|
||||
| retail_price | decimal(10,2) | 是 | 100000.00 | 零售价格(售价 / 未划线价) |
|
||||
| detail | text | 是 | *NULL* | 商品详细介绍,是富文本格式 |
|
||||
| deleted | tinyint(1) | 是 | 0 | 逻辑删除 0为正常 1为删除 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :---------- | :---- | :--- | :--- | :---------- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 87 | A | 否 | |
|
||||
| category_id | BTREE | 否 | 否 | category_id | 8 | A | 是 | |
|
||||
| brand_id | BTREE | 否 | 否 | brand | 67 | A | 是 | |
|
||||
| sort_order | BTREE | 否 | 否 | sort_order | 25 | A | 是 | |
|
||||
|
||||
## goods_category
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :------------ | :----------- | :--- | :----- | :--------- |
|
||||
| id *(主键)* | bigint | 否 | | |
|
||||
| category_name | varchar(255) | 是 | *NULL* | 商品分类名 |
|
||||
| order | int | 是 | *NULL* | 排序 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 7 | A | 否 | |
|
||||
|
||||
## notice1
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---------- | :----------- | :--- | :----- | :--- |
|
||||
| id *(主键)* | int | 否 | | |
|
||||
| title | varchar(255) | 是 | *NULL* | 标题 |
|
||||
| content | longtext | 是 | *NULL* | 内容 |
|
||||
| time | date | 是 | *NULL* | 时间 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 5 | A | 否 | |
|
||||
|
||||
## order
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :----------- | :----------------------------------------------------------- | :--- | :----- | :----------- |
|
||||
| id *(主键)* | bigint | 否 | | 订单ID |
|
||||
| user_id | int | 否 | | 用户ID |
|
||||
| order_date | datetime | 否 | | 订单日期 |
|
||||
| order_status | enum('Pending', 'Processing', 'Shipped', 'Delivered', 'Cancelled') | 否 | | 订单状态 |
|
||||
| order_price | decimal(10,2) | 否 | | 订单总金额 |
|
||||
| pay_date | datetime | 是 | *NULL* | 订单支付时间 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :------ | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 4 | A | 否 | |
|
||||
| id | BTREE | 是 | 否 | id | 4 | A | 否 | |
|
||||
| user_id | BTREE | 否 | 否 | user_id | 1 | A | 否 | |
|
||||
|
||||
## order_detail
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---------- | :------------ | :--- | :--- | :------------- |
|
||||
| id *(主键)* | bigint | 否 | | 订单详情ID |
|
||||
| order_id | bigint | 否 | | 订单ID |
|
||||
| good_id | bigint | 否 | | 商品ID |
|
||||
| good_count | int | 否 | | 商品数量 |
|
||||
| unit_price | decimal(10,2) | 否 | | 下单时商品单价 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------- | :---- | :--- | :--- | :------- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 10 | A | 否 | |
|
||||
| order_id | BTREE | 否 | 否 | order_id | 4 | A | 否 | |
|
||||
| good_id | BTREE | 否 | 否 | good_id | 2 | A | 否 | |
|
||||
|
||||
## report
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---------- | :------------ | :--- | :----- | :----------- |
|
||||
| id *(主键)* | int | 否 | | |
|
||||
| user_id | int | 是 | *NULL* | 用户id |
|
||||
| name | varchar(20) | 是 | *NULL* | 姓名 |
|
||||
| time | datetime | 是 | *NULL* | 填报时间 |
|
||||
| temperature | varchar(10) | 是 | *NULL* | 体温是否正常 |
|
||||
| address | varchar(1000) | 是 | *NULL* | 地址 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 1 | A | 否 | |
|
||||
|
||||
## setting
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---- | :----------- | :--- | :--- | :-------------------------------------- |
|
||||
| key | varchar(255) | 否 | | |
|
||||
| value | varchar(255) | 否 | | |
|
||||
| time | datetime | 否 | | 更新时间或失效时间(具体根据key来判断) |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :--- | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| key | BTREE | 是 | 否 | key | 1 | A | 否 | |
|
||||
|
||||
## user
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :-------------- | :----------- | :--- | :----- | :----------------------------------------------------------- |
|
||||
| id *(主键)* | int | 否 | | |
|
||||
| username | varchar(20) | 否 | | 用户名 |
|
||||
| password | varchar(255) | 否 | | 密码 |
|
||||
| realname | varchar(20) | 是 | *NULL* | 真实姓名 |
|
||||
| id_number | varchar(18) | 是 | *NULL* | 身份证号 |
|
||||
| phone_number | varchar(11) | 是 | *NULL* | 手机号 |
|
||||
| role | int | 否 | | 角色 (0-超级管理员 1-工作人员 2-社区居民_房主 3-社区居民_家庭成员 4-社区居民_租客 5-访客) |
|
||||
| building_id | varchar(255) | 是 | *NULL* | 门栋号+单元号 |
|
||||
| doorplate | varchar(255) | 是 | *NULL* | 门牌号 |
|
||||
| permission | int | 否 | 0 | 进出权限 (0-无 1-继承(普通居民) 2-永久 3-限时) |
|
||||
| permission_time | datetime | 是 | *NULL* | 进出权限失效时间 |
|
||||
|
||||
### 索引
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 1 | A | 否 | |
|
||||
|
||||
## visitor1
|
||||
|
||||
| 字段 | 类型 | 空 | 默认 | 注释 |
|
||||
| :---------- | :----------- | :--- | :----- | :---------------------------------- |
|
||||
| id *(主键)* | int | 否 | | |
|
||||
| time | datetime | 是 | *NULL* | 预约时间 |
|
||||
| phone | varchar(20) | 是 | *NULL* | 预约用户id |
|
||||
| issue | varchar(255) | 是 | *NULL* | 预约事由 |
|
||||
| meet_name | varchar(20) | 是 | *NULL* | 会见人姓名 |
|
||||
| create_time | datetime | 是 | *NULL* | 创建时间 |
|
||||
| state | int | 是 | 0 | 状态(0:审批中,1:成功,2:驳回) |
|
||||
|
||||
### 索引
|
||||
|
||||
|
||||
|
||||
| 键名 | 类型 | 唯一 | 紧凑 | 字段 | 基数 | 排序规则 | 空 | 注释 |
|
||||
| :------ | :---- | :--- | :--- | :--- | :--- | :------- | :--- | :--- |
|
||||
| PRIMARY | BTREE | 是 | 否 | id | 1 | A | 否 | |
|
Loading…
Reference in New Issue
Block a user