ssm花店系统商城


开发工具:idea (eclipse) 环境:jdk1.8  mysql5.7
数据库库连接工具 navcat

 

 

 

 

/*
Navicat MySQL Data Transfer

Source Server         : cookie123
Source Server Version : 50718
Source Host           : cdb-83oczlep.gz.tencentcdb.com:10107
Source Database       : florist

Target Server Type    : MYSQL
Target Server Version : 50718
File Encoding         : 65001

Date: 2019-07-05 10:51:17
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for adminuser
-- ----------------------------
DROP TABLE IF EXISTS `adminuser`;
CREATE TABLE `adminuser` (
  `auid` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `uid` int(11) NOT NULL,
  PRIMARY KEY (`auid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of adminuser
-- ----------------------------
INSERT INTO `adminuser` VALUES ('1', 'admin', '123456', '1');
INSERT INTO `adminuser` VALUES ('2', 'cookie', '123456', '1');

-- ----------------------------
-- Table structure for billitem
-- ----------------------------
DROP TABLE IF EXISTS `billitem`;
CREATE TABLE `billitem` (
  `billid` int(11) NOT NULL AUTO_INCREMENT,
  `count` int(11) DEFAULT NULL,
  `ptotal` double DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  PRIMARY KEY (`billid`),
  UNIQUE KEY `pid` (`pid`) USING BTREE,
  KEY `FK3510439A73B4E627` (`pid`) USING BTREE,
  CONSTRAINT `billitem_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `product` (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of billitem
-- ----------------------------

-- ----------------------------
-- Table structure for category
-- ----------------------------
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `cname` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of category
-- ----------------------------
INSERT INTO `category` VALUES ('11', '鲜花花材');
INSERT INTO `category` VALUES ('12', '鲜花颜色');
INSERT INTO `category` VALUES ('13', '节日送礼');
INSERT INTO `category` VALUES ('14', '对象送花');
INSERT INTO `category` VALUES ('15', '鲜花支数');

-- ----------------------------
-- Table structure for categorysecond
-- ----------------------------
DROP TABLE IF EXISTS `categorysecond`;
CREATE TABLE `categorysecond` (
  `csid` int(11) NOT NULL AUTO_INCREMENT,
  `csname` varchar(255) DEFAULT NULL,
  `cid` int(11) DEFAULT NULL,
  PRIMARY KEY (`csid`),
  KEY `FK936FCAF2418BCBAF` (`cid`) USING BTREE,
  CONSTRAINT `categorysecond_ibfk_1` FOREIGN KEY (`cid`) REFERENCES `category` (`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of categorysecond
-- ----------------------------
INSERT INTO `categorysecond` VALUES ('34', '满天星', '11');
INSERT INTO `categorysecond` VALUES ('35', '郁金香', '11');
INSERT INTO `categorysecond` VALUES ('36', '玫瑰', '11');
INSERT INTO `categorysecond` VALUES ('37', '康乃馨', '11');
INSERT INTO `categorysecond` VALUES ('38', '菊花', '11');
INSERT INTO `categorysecond` VALUES ('39', '百合', '11');
INSERT INTO `categorysecond` VALUES ('40', '费列罗', '11');
INSERT INTO `categorysecond` VALUES ('41', '黄莺', '11');
INSERT INTO `categorysecond` VALUES ('42', '黄色', '12');
INSERT INTO `categorysecond` VALUES ('43', '紫红色', '12');
INSERT INTO `categorysecond` VALUES ('45', '粉色', '12');
INSERT INTO `categorysecond` VALUES ('46', '绿色', '12');
INSERT INTO `categorysecond` VALUES ('47', '红色', '12');
INSERT INTO `categorysecond` VALUES ('48', '橘红色', '12');
INSERT INTO `categorysecond` VALUES ('49', '橙色', '12');
INSERT INTO `categorysecond` VALUES ('50', '香槟色', '12');
INSERT INTO `categorysecond` VALUES ('51', '光棍节', '13');
INSERT INTO `categorysecond` VALUES ('52', '七夕节', '13');
INSERT INTO `categorysecond` VALUES ('53', '妇女节', '13');
INSERT INTO `categorysecond` VALUES ('54', '感恩节', '13');
INSERT INTO `categorysecond` VALUES ('55', '母亲节', '13');
INSERT INTO `categorysecond` VALUES ('56', '圣诞节', '13');
INSERT INTO `categorysecond` VALUES ('57', '教师节', '13');
INSERT INTO `categorysecond` VALUES ('58', '父亲节', '13');
INSERT INTO `categorysecond` VALUES ('59', '情人节', '13');
INSERT INTO `categorysecond` VALUES ('60', '生日', '13');
INSERT INTO `categorysecond` VALUES ('61', '病人', '14');
INSERT INTO `categorysecond` VALUES ('62', '父母', '14');
INSERT INTO `categorysecond` VALUES ('63', '朋友', '14');
INSERT INTO `categorysecond` VALUES ('64', '老师', '14');
INSERT INTO `categorysecond` VALUES ('65', '客户', '14');
INSERT INTO `categorysecond` VALUES ('66', '领导', '14');
INSERT INTO `categorysecond` VALUES ('67', '长辈', '14');
INSERT INTO `categorysecond` VALUES ('68', '恋人', '14');
INSERT INTO `categorysecond` VALUES ('69', '9枝', '15');
INSERT INTO `categorysecond` VALUES ('70', '11枝', '15');
INSERT INTO `categorysecond` VALUES ('71', '18枝', '15');
INSERT INTO `categorysecond` VALUES ('73', '99枝', '15');

-- ----------------------------
-- Table structure for message
-- ----------------------------
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
  `messageid` int(11) NOT NULL AUTO_INCREMENT,
  `message` varchar(255) DEFAULT NULL,
  `messagedate` varchar(255) DEFAULT NULL,
  `uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`messageid`),
  KEY `FK38EB0007FC32F8E` (`uid`) USING BTREE,
  CONSTRAINT `message_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `user` (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of message
-- ----------------------------
INSERT INTO `message` VALUES ('9', '<p>你好啊,哈哈哈</p>\r\n', '2019-07-05 10:22:59', '9');

-- ----------------------------
-- Table structure for orderitem
-- ----------------------------
DROP TABLE IF EXISTS `orderitem`;
CREATE TABLE `orderitem` (
  `oiid` int(11) NOT NULL AUTO_INCREMENT,
  `count` int(11) DEFAULT NULL,
  `subtotal` double DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  `oid` int(11) DEFAULT NULL,
  PRIMARY KEY (`oiid`),
  KEY `FKE8B2AB61E818A405` (`oid`) USING BTREE,
  KEY `FKE8B2AB6173B4E627` (`pid`) USING BTREE,
  CONSTRAINT `orderitem_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `product` (`pid`),
  CONSTRAINT `orderitem_ibfk_2` FOREIGN KEY (`oid`) REFERENCES `orders` (`oid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of orderitem
-- ----------------------------
INSERT INTO `orderitem` VALUES ('14', '2', '318', '60', '8');
INSERT INTO `orderitem` VALUES ('15', '1', '569', '78', '8');

-- ----------------------------
-- Table structure for orders
-- ----------------------------
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
  `oid` int(11) NOT NULL AUTO_INCREMENT,
  `money` double DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  `receiveInfo` varchar(255) DEFAULT NULL,
  `phoNum` varchar(255) DEFAULT NULL,
  `order_time` datetime DEFAULT NULL,
  `uid` int(11) DEFAULT NULL,
  `accepter` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`oid`),
  KEY `FKC3DF62E5FC32F8E` (`uid`) USING BTREE,
  CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `user` (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of orders
-- ----------------------------
INSERT INTO `orders` VALUES ('1', '2685', '0', null, null, '2018-03-18 21:10:00', '3', null);
INSERT INTO `orders` VALUES ('2', '2685', '2', '上海市静安区', '13913812312', '2018-03-18 21:12:16', '3', '嗷大猫');
INSERT INTO `orders` VALUES ('3', '12952', '1', '北京最代码科技有限公司', 'zuidaima.com', '2018-03-04 17:37:01', '1', '最代码');
INSERT INTO `orders` VALUES ('4', '8188', '0', null, null, '2019-04-24 22:42:31', '1', null);
INSERT INTO `orders` VALUES ('5', '45', '1', '123', '18790876543', '2019-04-28 11:28:37', '4', '123');
INSERT INTO `orders` VALUES ('6', '9', '2', '北京111', '18790876543', '2019-04-28 11:45:30', '5', '111111');
INSERT INTO `orders` VALUES ('7', '399', '2', '北京111', '18790876543', '2019-04-29 15:25:42', '6', '222222');
INSERT INTO `orders` VALUES ('8', '887', '3', '北京111', '18790876543', '2019-07-05 10:23:56', '9', '李四');

-- ----------------------------
-- Table structure for product
-- ----------------------------
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
  `pid` int(11) NOT NULL AUTO_INCREMENT,
  `pname` varchar(255) DEFAULT NULL,
  `market_price` double DEFAULT NULL,
  `shop_price` double DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `pdesc` varchar(5000) DEFAULT NULL,
  `is_hot` int(11) DEFAULT NULL,
  `pdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `csid` int(11) DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  PRIMARY KEY (`pid`),
  KEY `FKED8DCCEF5F778050` (`csid`) USING BTREE,
  CONSTRAINT `product_ibfk_1` FOREIGN KEY (`csid`) REFERENCES `categorysecond` (`csid`)
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of product
-- ----------------------------
INSERT INTO `product` VALUES ('60', '最好的给你', '159', '159', 'products/2ed81daa-362f-489d-a530-8648f28f317340120926086255.jpg', '想把世界最好的给你,却发现世上最好的是你', '1', '2019-07-04 17:09:36', '34', null);
INSERT INTO `product` VALUES ('61', '阳光满溢', '329', '329', 'products/a47b69ca-1ca5-4fec-932b-fb9322536a94266184798267862740.jpg', '让每点阳光,洒于你脸庞;令你的微笑,比花更盛放!', '1', '2019-07-04 17:09:49', '34', null);
INSERT INTO `product` VALUES ('62', '甜蜜蜜', '329', '329', 'products/ea50c87d-6cd1-43f2-a849-7b83241864581 (2).png', '粉色的梦不做不可,对你的话一定要说', '1', '2019-07-04 17:09:58', '34', null);
INSERT INTO `product` VALUES ('63', '手牵手肩并肩', '328', '328', 'products/9f9cd6a8-5846-4cc3-9b02-ab1f784471ae1 (5).png', '那片纯净的原野,我们手牵手,一起走入;那片茂盛的果园,我们肩并肩,一起收获。播下友情的种子,收获幸福的生活,人生有你而精彩,祝朋友快乐天天。', '0', '2019-07-04 17:09:28', '34', null);
INSERT INTO `product` VALUES ('64', '陪伴你', '189', '185', 'products/44a29ab3-30cb-4d06-9243-8818be9c4eb340120926086255.jpg', '你有没有发现,只要我们在一起,抬起头就是好天气。', '1', '2019-07-04 17:09:21', '34', null);
INSERT INTO `product` VALUES ('65', '相随', '88', '88', 'products/9402f8ae-8df4-4bab-b97a-0c37f9e89ae6734254594573161100.jpg', '不如红玫娇艳,不如白玫纯洁,但我是优雅', '1', '2019-07-04 17:06:45', '42', null);
INSERT INTO `product` VALUES ('66', '为爱而生', '599', '588', 'products/cf1e9773-23af-42ca-b439-d75e5adb63c91 (2).png', '爱、慈善、名誉、美丽、祝福、永恒、爱的表白和永恒的祝福', '1', '2019-07-04 17:09:12', '42', null);
INSERT INTO `product` VALUES ('67', '开心不老', '199', '199', 'products/7d110f0e-ef4c-4338-a3dc-5f2dbf453c3c10446625076147992.jpg', '送一份美丽让你欢笑,送一份祝福让你骄傲,送一份开心让你不老!', '1', '2019-07-04 17:09:02', '42', null);
INSERT INTO `product` VALUES ('68', '父爱如山', '322', '322', 'products/abb19a98-e7e1-4236-ad94-9558c1acb01d175910515928603.jpg', '比海洋更宽阔的是天空,比天空更宽阔的是您的心胸,您额上的皱纹记载着坎坷,您的一生就是一首瑰丽的诗吧!', '0', '2019-07-04 17:08:52', '42', null);
INSERT INTO `product` VALUES ('69', '温柔如你', '269', '269', 'products/48d6e4a0-d7a9-420d-be13-5cac93c3401e157961674112116.jpg', '走在风中今天阳光,走在风中今天阳光走在风中今天阳光走在风中今天阳光', '1', '2019-07-04 17:08:34', '43', null);
INSERT INTO `product` VALUES ('70', '至深母爱', '600', '500', 'products/45b299fc-4cd4-45f8-b7e0-c5a41018b919175910515928603.jpg', '曾经有人说“回家叫一声妈妈,是一件很幸福的事”。直到现在,才体会到这种甜蜜,原来我一直都过得如此美满...因为有妳,我的妈妈!', '1', '2019-07-04 17:08:19', '43', null);
INSERT INTO `product` VALUES ('71', '至深母爱', '399', '399', 'products/a1f42dc7-6726-4300-9021-ad072973e74110434208260637825.jpg', '曾经有人说“回家叫一声妈妈,是一件很幸福的事”。直到现在,才体会到这种甜蜜,原来我一直都过得如此美满...因为有妳,我的妈妈!', '0', '2019-07-04 17:08:08', '55', null);
INSERT INTO `product` VALUES ('72', '喜欢你', '169', '169', 'products/a2770d67-c562-40ee-9e9b-13714491949410446625076147992.jpg', '让我们乘着芬芳的清风,手牵着手走过四季春秋。', '0', '2019-07-04 17:07:57', '34', null);
INSERT INTO `product` VALUES ('73', '为你钟情', '239', '239', 'products/4ea34ee7-04eb-40e3-98da-8e528680720810448113658128638.jpg', '没有100分的另一半,只有50分的两个人。', '1', '2019-07-04 17:07:40', '51', null);
INSERT INTO `product` VALUES ('74', '此情不渝', '219', '219', 'products/3967f3b0-2b53-49ab-9244-51a2283bd579228582360192484340.jpg', '用一切美好的词语来形容你都不为过,你值得被世界温柔以待。', '1', '2019-07-04 17:07:29', '51', null);
INSERT INTO `product` VALUES ('75', '美好的明天', '300', '299', 'products/75e8812e-2007-48d9-86e5-ed3ac2d73f40266184798267862740.jpg', '温暖的阳光,照亮美好的明天', '1', '2019-07-04 17:07:19', '61', null);
INSERT INTO `product` VALUES ('76', '绽放', '188', '188', 'products/79ee9a4a-81c2-4c3e-9672-78a60a458438365500223788824960.jpg', '吾在茫茫人海遇见了你,能成为知己,得知,我的幸运!', '1', '2019-07-04 17:07:08', '61', null);
INSERT INTO `product` VALUES ('77', '恋你久久', '188', '188', 'products/3871fbd5-d6d6-42f1-a0ba-adcbd55ecbff734254594573161100.jpg', '有情之人,天天是节。一句寒暖,一线相喧;一句叮咛,一笺相传;一份相思,一心相盼;一份爱意,一生相恋。', '1', '2019-07-04 17:06:59', '69', null);
INSERT INTO `product` VALUES ('78', '为爱而生', '569', '569', 'products/98ecb349-8b96-488b-9f35-8adf59cda30c10434208260637825.jpg', '爱、慈善、名誉、美丽、祝福、永恒、爱的表白和永恒的祝福', '1', '2019-07-04 17:03:36', '35', null);
INSERT INTO `product` VALUES ('79', '郁来郁想你', '499', '499', 'products/911419f0-30b4-490f-bc20-cb4b14d4b77d266184798267862740.jpg', '你是我今生最美的相遇。', '1', '2019-07-04 17:05:08', '35', null);
INSERT INTO `product` VALUES ('80', '在心上', '669', '669', 'products/f20c5d05-a05b-46fb-befc-85ff4f4c1d6b10100781493841426.jpg', '我留在你的心上,一如你在我的心中过去和现在,我们一直是两个彼此不能疏远的生命……', '1', '2019-07-04 17:04:59', '35', null);
INSERT INTO `product` VALUES ('81', '事愿静好', '599', '599', 'products/e8ceba94-4095-4316-858d-6ae54977bc2f1 (2).png', '健康是最佳的礼物,知足是最大财富,信心是最好的品德,关心是最真挚的问候,牵挂是最无私的思念,祝福是最美好的话语,祝您平安幸福!', '1', '2019-07-04 17:04:43', '36', null);
INSERT INTO `product` VALUES ('82', '你的笑靥', '189', '189', 'products/3698e9b7-b367-450c-bbe5-216d7dd8c1281.png', '你的笑脸是天下最好看的风景,一次次温暖我的心。', '1', '2019-07-04 17:04:32', '36', null);
INSERT INTO `product` VALUES ('83', '小雨纷纷', '259', '259', 'products/ea1def40-5269-435c-9746-18a5c3adaf2f724626079542440540.jpg', '又到清明时,何处寄哀思', '1', '2019-07-04 17:04:25', '38', null);
INSERT INTO `product` VALUES ('84', '清明缅怀', '199', '199', 'products/af141e63-2948-4c1a-9d2f-6e7a9eacb534266184798267862740.jpg', '您一直都在心里', '1', '2019-07-04 17:03:28', '38', null);
INSERT INTO `product` VALUES ('85', '浅浅往事', '169', '169', 'products/b928d68c-311d-4760-a6ca-07e77b6ce526157961674112116.jpg', '黄昏中总有不变的等候,想你时总有想思的泪滴', '1', '2019-07-04 17:03:19', '38', null);
INSERT INTO `product` VALUES ('86', '怀念菊花', '88', '67', 'products/f282d3bc-a34c-445b-b489-8b9a1aafb6f91 (4).png', '山清水秀风光好,月明星稀祭扫多,后辈难忘先人情', '1', '2019-07-04 17:03:10', '38', null);
INSERT INTO `product` VALUES ('87', '幸福一生-永生花礼盒', '589', '589', 'products/6494ca7d-8005-488f-a759-6ee767442fad10196437317957091.jpg', '一生一世永生玫瑰,代表我对你天长地久的爱。专爱证明卡,镌刻我对你爱的箴言。你在我心中种下丰盛浓烈的花海,绽放生命的喜悦和灵光。', '1', '2019-07-04 17:00:40', '46', null);
INSERT INTO `product` VALUES ('88', '最好的给你', '169', '169', 'products/088bbb17-bbf6-49be-bc3b-66d32349875310100781493841426.jpg', '想把世界最好的给你,却发现世上最好的是你', '1', '2019-07-04 17:00:30', '47', null);
INSERT INTO `product` VALUES ('89', '恋你久久', '888', '888', 'products/f7a11e1b-fae6-4bd8-9a08-37074153296810446625076147992.jpg', '有情之人,天天是节。一句寒暖,一线相喧;一句叮咛,一笺相传;一份相思,一心相盼;一份爱意,一生相恋。', '1', '2019-07-04 16:58:13', '59', null);
INSERT INTO `product` VALUES ('91', '柔情似水', '177', '189', 'products/242ad5ed-189c-452b-9690-ca170927c8aa418385178047259.jpg', '我还是喜欢你,就像风追随云,我好想追到你,又怕吹散了你,春风十里,不如你。', '1', '2019-07-04 17:10:56', '39', null);
INSERT INTO `product` VALUES ('92', '甜蜜之语', '666', '666', 'products/e9a53f61-3f7e-4f02-a8c7-83546844b89c1 (1).png', '有一种爱像吃了糖果一样的甜蜜,在静谧的午后享受蜜之语', '1', '2019-07-04 17:11:50', '52', null);
INSERT INTO `product` VALUES ('93', '最好的给你', '888', '520', 'products/2608449c-a3bd-4d8e-8f94-58f60e48fa841 (1).png', '用一切美好的词语来形容你都不为过,你值得被世界温柔以待。', '1', '2019-07-04 17:16:19', '71', null);
INSERT INTO `product` VALUES ('94', '幸福花儿', '345', '345', 'products/11cc38a4-92c5-40a6-ac5b-2e9c629d7f181 (1).png', '遇见,拉着你的手,无论是在哪里,都感觉朝着幸福在奔驰', '1', '2019-07-04 17:27:18', '73', null);
INSERT INTO `product` VALUES ('95', '爱情的味道', '888', '888', 'products/550721a1-fbe0-431f-8e93-d0db5630ca271 (1).png', '我就像你送的巧克力,在你的口中被融化。也许爱情就是这么简单,只是一个眼神,一个动作,但那一瞬间,空气中的确溢满了爱情的味道。', '1', '2019-07-04 17:36:54', '52', null);
INSERT INTO `product` VALUES ('96', '为爱而生', '77', '88', 'products/561e9ae8-bbec-4512-b230-1c1d8bd9504f1 (1).jpg', '我就像你送的巧克力,在你的口中被融化。也许爱情就是这么简单,只是一个眼神,一个动作,但那一瞬间,空气中的确溢满了爱情的味道。', '0', '2019-07-04 17:37:51', '54', null);
INSERT INTO `product` VALUES ('97', '恋你久久', '54', '456', 'products/e8576004-109d-4add-ae6d-15dc6d975767724626079542440540.jpg', '顾风雨,不问世事,唯盼君归来', '1', '2019-07-04 17:38:23', '62', null);
INSERT INTO `product` VALUES ('98', '星语星愿', '329', '329', 'products/397f245e-faf3-403b-a690-a667ebafe8f71 (2).png', '斗转星移,只愿韶华秋去之时,可以牵着一双温柔的手,然后,倾倒所有的地老天荒,歌尽所有的海枯石烂,祝福我们的情缘白头随老。', '1', '2019-07-04 17:48:03', '34', null);
INSERT INTO `product` VALUES ('99', '陪伴你', '279', '279', 'products/5b695033-d760-4aba-b896-2caffa1ba2951 (5).png', '你有没有发现,只要我们在一起,抬起头就是好天气', '0', '2019-07-04 17:49:11', '50', null);
INSERT INTO `product` VALUES ('100', '七彩祝福', '399', '399', 'products/f8f87cb3-72bb-4c4a-b551-12d9d08a2b9b1 (7).png', '认识不在于时间的长短,而在于彼此的懂得!', '1', '2019-07-04 17:50:07', '58', null);

-- ----------------------------
-- Table structure for shopcartitem
-- ----------------------------
DROP TABLE IF EXISTS `shopcartitem`;
CREATE TABLE `shopcartitem` (
  `cartitemid` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  `pcount` int(11) DEFAULT NULL,
  `price` double DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `ptotal` double DEFAULT NULL,
  `pname` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`cartitemid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of shopcartitem
-- ----------------------------

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `uid` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `addr` varchar(255) DEFAULT NULL,
  `state` varchar(255) NOT NULL DEFAULT '1',
  `code` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'test', '111111', '李四', 'cookie@qq.com', '13525109202', '北京市', '0', null);
INSERT INTO `user` VALUES ('2', 'jack', '123456', '马云', 'jack@qq.com', '13812312312', '中国', '0', null);
INSERT INTO `user` VALUES ('3', 'hellokitty', '123456', '张三', 'aodamao@qq.com', '13555512345', '上海市', '0', 'ca0f6f5a-36da-402d-8c0f-22587423de20');
INSERT INTO `user` VALUES ('4', 'cookie', '123456', 'cookie', '21181192@qq.com', '18380665432', '123', '0', '38b3aad5-d236-4f75-8059-ca858fd69420');
INSERT INTO `user` VALUES ('5', 'zhangsan', '123456', '张三娃', '21181192@qq.com', '18380665432', '123', '0', 'ab133da0-ef3d-4241-b322-53f18e89cdbf');
INSERT INTO `user` VALUES ('6', '222222', '222222', 'java1234', '21181192@qq.com', '18380665432', '北京。。。。', '0', 'c171b63a-6632-4ff5-b816-9d1766b8db17');
INSERT INTO `user` VALUES ('7', '111', '111', '111', '111', '111', '111', '0', 'd44285fd-5ae0-4318-b943-10c0866c66ab');
INSERT INTO `user` VALUES ('9', 'a1001', '123456', '李四', '21181192@qq.com', '18380665432', '北京。。。。', '0', '758659df-4861-4cdd-b73a-653d0d2cc0a0');

 

 

1.鲜花展示以及用户模块:分别针对消费者,店长,总经理等不同角色进行不同页面,与库存表相关联 (1)针对消费者展示花的文字信息,以及图片,并展示购买按钮,选择分店进行下单。 (2)针对店长角色,在花的展示页面显示新增、修改、下架按钮,针对下架的商品店长有权限在待上架中操作鲜花上架。 (3)针对总经理,只展示鲜花展示页面,不显示任何操作。 (4)数据库查询出来的数据返回前台,将鲜花名称,花语,价格使用foreach循环放入div,展示到前台页面。(5)使用c:if标签判断登录用户角色,展示角色对应按钮。 (6)通过修改鲜花状态的字段来实现鲜花上下架功能。 (7)vip购买,显示折扣并显示折后价,普通用户没有。 (8)店长对本店客户的信息维护,总经理对所有店的客户的信息维护。 2.分店模块:与订单表,员工表相关联 (1)针对分店进行增删该查。 (2)在新增分店时指定分店店长,指定人员是从员工表中查出的非店长员工, 指定后要关联新增的分店Id并且要更改该员工对应的角色表。 (3)更改分店店长,指定的人员是从当前的分店中找出的,并且在指定新店长后,需要将原店长的角色指定回普通员工,这些涉及4表的更改。 3.员工以及前台页面模块:分别关联用户表,分店表(1)针对员工进行的增删改查。 (2)总经理登录可以看到所有分店的员工,分店店长登录只能看到自己店面的员工。 (3)可以调动员工到不同的分店,可以针对员工进行请假,请假的同时,工作天数会少一天,还有一个开除员工的选项。 (4)加入httpclient调用天气的接口,使用了H5和easyui来美化前台的皮肤。 4.库存管理以及前台页面模块:分别关联订单表,分店表,员工表,角色表,鲜花表 (1)不同角色登录可以看到不同的库存,总经理登录可以看到所有分店所有花材的库存,而分店店长登录只能看到本店花材的库存。(2)店长登录可以针对鲜花表增加的鲜花进行库存的新增。 (3)对外开放鲜花的webservice接口,添加时间控件的小部件。 (4)Bug的查找以及页面的美化。 5.订单以及javamail、POI模块:分别关联分店表,库存表,员工表,用户表,顾客表,供应商表,花材表,分为供应商订单和顾客订单 (1)顾客订单,顾客新增时可以新增鲜花订单,通过分店以及花材Id定位到库存,顾客可以进行订单的修改和退货。 (2)店长登录看到顾客订单后,确认发货顾客订单就不可以修改,同时库存也会相应减少。 (3)店长登录可以新增供应商订单,同时可以修改和退货。 (4)供应商登录可以看到订单,发货后相应库存会增加。 (5)顾客订单新增时,会判断用户是否为VIP来确定订单金额,并且会针对分店库存进行订单数量限定。 (6)POI报表打印以及javaMail发送邮件功能。 6.数据分析模块:关联库存表,分店表,订单表,员工表,用户表,角色表 (1)店长登录时,看到的所有数据,库存,销售金额,销售数量都是以本店的花朵为基础进行的查询。 (2)经理登录时,看到的所有数据是以分店为基础进行的查询。 7.供应商以及mongoDB模块:关联了供应商表,用户表,角色表 (1)进行普通的增删该查,条件查询。(1)进行普通的增删该查,条件查询。 (2)在spring中集合mongoDB,通过AOP切点切入mongoDB。 (3)针对log记录进行查询,可以查询正常以及异常的日志状态,以及时间区间,名字条件查询。 8.登陆和注册模块:关联了用户表,角色表,顾客表,员工表,供应商表 (1)注册时会选择需要注册的角色,供应商注册时会需要验证邮箱。 (2)任何角色注册时,都会进后台判断真实信息是否可以匹配,可以匹配才能注册。
### 基于SSM框架的电商花店商城开源项目 对于寻找基于SSM(Spring, Spring MVC 和 MyBatis)框架开发的电商花店商城项目的免费资源或开源项目,互联网上存在多个平台可以获取这类资源。GitHub 是一个重要的代码托管平台,在这里可以找到许多由开发者贡献的相关项目。 #### GitHub上的SSM框架电商项目 在GitHub 上搜索关键词 "SSM flower shop e-commerce" 可能会发现一些符合条件的仓库。这些仓库通常包含了完整的项目结构以及详细的README文档来指导如何部署和运行该项目[^1]。 #### 技术栈特点 由于提到的关键字涉及到了JSP技术[^2],而实际上SSM框架更多采用的是前后端分离的方式构建Web应用,因此建议关注那些使用HTML/CSS/JavaScript作为前端技术并与Java后端通过RESTful API交互的应用实例。 #### 示例项目特性 一个典型的基于SSM框架的电商花店商城应该具备以下功能模块: - 用户注册登录 - 商品分类浏览 - 订单处理流程(包括但不限于选购信息管理和确认订单) - 后台管理系统用于管理员操作如鲜花类型维护等 为了确保所选项目能够满足需求并易于理解和扩展,推荐仔细阅读每个候选项目的描述页面及其提供的文档资料。 ```java // 这里展示一段简单的MyBatis接口定义样例 public interface FlowerMapper { @Select("SELECT * FROM flowers WHERE id = #{id}") Flower getFlowerById(int id); } ```
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序猿毕业分享网

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值