代码拉取完成,页面将自动刷新
同步操作将从 automvc/bee-exam 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50624
Source Host : localhost:3306
Source Database : bee
Target Server Type : MYSQL
Target Server Version : 50624
File Encoding : 65001
Date: 2020-03-02 16:42:40
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `orders`
-- ----------------------------
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`userid` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`total` decimal(10,2) NOT NULL,
`createtime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`sequence` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`abc` varchar(20) DEFAULT NULL,
`updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=100004 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of orders
-- ----------------------------
INSERT INTO `orders` VALUES ('100001', 'bee', 'Bee(ORM Framework)', '95.01', '2020-03-02 11:29:28', 'test', '12345601', 'test1', '2020-03-02 16:34:19');
INSERT INTO `orders` VALUES ('100002', 'bee', 'Bee(ORM Framework)', '96.01', '2020-03-02 11:29:28', 'test', '12345602', 'test2', '2020-03-02 16:34:19');
INSERT INTO `orders` VALUES ('100003', 'bee', 'Bee', '97.01', '2020-03-02 11:29:28', 'test', '12345603', 'test3', '2020-03-02 16:34:19');
-- ----------------------------
-- Table structure for `test_user`
-- ----------------------------
DROP TABLE IF EXISTS `test_user`;
CREATE TABLE `test_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`email` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`last_name` varchar(60) COLLATE utf8_bin DEFAULT NULL,
`name` varchar(60) COLLATE utf8_bin DEFAULT NULL,
`password` varchar(60) COLLATE utf8_bin DEFAULT NULL,
`username` varchar(60) COLLATE utf8_bin NOT NULL,
`createtime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=800003 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Records of test_user
-- ----------------------------
INSERT INTO `test_user` VALUES ('800001', 'beeUser@163.com', null, 'Bee', 'bee', 'bee', null);
INSERT INTO `test_user` VALUES ('800002', 'honey@163.com', null, 'Honey', 'honey', 'honey', '2020-03-02 16:41:33');
-- ----------------------------
-- Table structure for `leaf_alloc`
-- ----------------------------
DROP TABLE IF EXISTS `leaf_alloc`;
CREATE TABLE `leaf_alloc` (
`id` bigint(20) NOT NULL,
`biz_tag` varchar(128) COLLATE utf8_bin NOT NULL DEFAULT '',
`max_id` bigint(20) NOT NULL DEFAULT '1',
`step` int(11) NOT NULL,
`description` varchar(256) COLLATE utf8_bin DEFAULT NULL,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`version` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_index_biz_tag` (`biz_tag`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Records of leaf_alloc
-- id(456537470402562) has global unique featrue.
-- see: org.teasoft.honey.distribution.SerialUniqueId
-- ----------------------------
INSERT INTO `leaf_alloc` VALUES ('456537470402562', 'test', '100', '100', 'test segment', '2020-07-04 22:42:09', '1');
INSERT INTO `leaf_alloc` VALUES ('456537470402563', 'order', '100', '100', 'order segment', '2020-07-04 22:42:10', '1');
DROP TABLE IF EXISTS `orders_202007`;
DROP TABLE IF EXISTS `leaf_alloc2`;
create table orders_202007 like orders;
create table leaf_alloc2 like leaf_alloc;
-- ----------------------------
-- Procedure structure for `selectOrders`
-- ----------------------------
DROP PROCEDURE IF EXISTS `selectOrders`;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `selectOrders`(in in_remark varchar(50))
BEGIN
select * from orders where remark=in_remark ;
END
;;
DELIMITER ;
-- ----------------------------
-- Procedure structure for `updateOrders`
-- ----------------------------
DROP PROCEDURE IF EXISTS `updateOrders`;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `updateOrders`(in in_Id bigint(20))
BEGIN
UPDATE orders SET updatetime=now(),remark='change via CallableSql' where id=in_Id ;
END
;;
DELIMITER ;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。