修改数据库/添加获取参数
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
Target Server Version : 80031 (8.0.31)
|
Target Server Version : 80031 (8.0.31)
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 02/07/2023 11:09:44
|
Date: 02/07/2023 22:50:04
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
@@ -68,7 +68,7 @@ CREATE TABLE `category` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of category
|
-- Records of category
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `category` VALUES (0, '<i class=\"el-icon-discover\" style=\"margin-right: 10px\"></i> 综合', '综合', NULL);
|
INSERT INTO `category` VALUES (0, '<i class=\"el-icon-discover\" style=\"margin-right: 10px\"></i> 综合', '综合', 1);
|
||||||
INSERT INTO `category` VALUES (1, '<i class=\"el-ico-alicyuyan\" style=\"margin-right: 10px\"></i> C', 'C', 1);
|
INSERT INTO `category` VALUES (1, '<i class=\"el-ico-alicyuyan\" style=\"margin-right: 10px\"></i> C', 'C', 1);
|
||||||
INSERT INTO `category` VALUES (2, '<i class=\"el-ico-aliCyuyan\" style=\"margin-right: 10px\"></i> C#', 'C#', 1);
|
INSERT INTO `category` VALUES (2, '<i class=\"el-ico-aliCyuyan\" style=\"margin-right: 10px\"></i> C#', 'C#', 1);
|
||||||
INSERT INTO `category` VALUES (3, '<i class=\"el-ico-alicyuyan\" style=\"margin-right: 10px\"></i> C++', 'C++', 1);
|
INSERT INTO `category` VALUES (3, '<i class=\"el-ico-alicyuyan\" style=\"margin-right: 10px\"></i> C++', 'C++', 1);
|
||||||
@@ -178,12 +178,13 @@ CREATE TABLE `user` (
|
|||||||
`isValid` int NULL DEFAULT NULL COMMENT '是否有效(0/1)',
|
`isValid` int NULL DEFAULT NULL COMMENT '是否有效(0/1)',
|
||||||
`projectNum` int NULL DEFAULT NULL COMMENT '提交的项目总数',
|
`projectNum` int NULL DEFAULT NULL COMMENT '提交的项目总数',
|
||||||
`searchHistory` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '搜索历史',
|
`searchHistory` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '搜索历史',
|
||||||
|
`contributionValue` int NULL DEFAULT NULL COMMENT '贡献值',
|
||||||
PRIMARY KEY (`userId`) USING BTREE
|
PRIMARY KEY (`userId`) USING BTREE
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC;
|
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of user
|
-- Records of user
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `user` VALUES (1, '666', '666', '2023-06-29 22:43:22', 1, 1, NULL);
|
INSERT INTO `user` VALUES (1, '666', '666', '2023-06-29 22:43:22', 1, 1, '666;777;33;测试;hhh;rrr;12e;', NULL);
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
@@ -38,7 +38,7 @@ public class deletelabelServlet extends HttpServlet {
|
|||||||
HttpSession session = req.getSession();
|
HttpSession session = req.getSession();
|
||||||
userEntity user = (userEntity)session.getAttribute("user");
|
userEntity user = (userEntity)session.getAttribute("user");
|
||||||
String name = user.getUserName();
|
String name = user.getUserName();
|
||||||
String str = req.getParameter("xxxxx");
|
String str = req.getParameter("tag");
|
||||||
|
|
||||||
int num = userService.dedletePieceLabel(name,str);
|
int num = userService.dedletePieceLabel(name,str);
|
||||||
//返回处理行数,如果为零则代表处理零条结果
|
//返回处理行数,如果为零则代表处理零条结果
|
||||||
|
@@ -38,7 +38,7 @@ public class selectUserLabelServlet extends HttpServlet {
|
|||||||
String name = userEntity.getUserName();
|
String name = userEntity.getUserName();
|
||||||
String jsonString = JSONObject.toJSONString(userService.selectLabel(name));
|
String jsonString = JSONObject.toJSONString(userService.selectLabel(name));
|
||||||
writer.println(jsonString);
|
writer.println(jsonString);
|
||||||
setResultOK("success",writer);
|
// setResultOK("success",writer);
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user