├── PetsBuyAdmin.rar
├── PetsBuyFront.rar
├── README.md
├── pets.sql
└── show.png
/PetsBuyAdmin.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dh1714260544/javaweb--PetsSale/d95ec079dd6f1bdfc29c5a91c45198b031d15bff/PetsBuyAdmin.rar
--------------------------------------------------------------------------------
/PetsBuyFront.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dh1714260544/javaweb--PetsSale/d95ec079dd6f1bdfc29c5a91c45198b031d15bff/PetsBuyFront.rar
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # javaWeb--网上宠物商城
2 |
3 | 开发语言 jsp+mysql+html
4 |
5 | 开发环境 eclipse+tomcat8.0+mysql数据库
6 |
7 | 展示图片 :https://github.com/RAOE/java-----/blob/master/show.png
8 |
9 |
10 | 实现功能
11 |
12 | 1.顾客,登陆注册,修改个人资料,宠物信息查询,宠物信息分类查询
13 | (1).狗狗类 (2).猫猫类 (3).宠物周边
14 |
15 | 2.可以将喜欢的宠物加入购物车,并结算,查看订单,确认收货,评价订单,用户帮助,积分等
16 |
17 |
18 | 3.后台系统开发,管理员,管理员登陆,管理员注册,查看顾客信息,可以修改顾客信息,修改宠物信息,
19 | 发布宠物信息,查看订单并且确认收货,对用户进行评价
20 |
21 | 4.宠物论坛,可以在论坛里发布喜欢的狗狗,可以选择匿名发布信息。
22 |
23 | 使用说明
24 | 1.在navicat里运行pets.sql脚本 文件创建数据库
25 | 2.在dhcp数据库连接池里将mysql账号密码修改为你自己的
26 | 3.配置tomcat服务器 添加到工程中
27 | 4.运行项目 localhost:8080/PetsFront为项目的首页
28 | 5.后台管理员账号密码都是admin
29 | 6.其他问题可以留言问我 email:986771570@qq.com
30 | 整个项目耗时1周
31 |
32 |
--------------------------------------------------------------------------------
/pets.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : local
5 | Source Server Version : 50620
6 | Source Host : localhost:3306
7 | Source Database : pets
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50620
11 | File Encoding : 65001
12 |
13 | Date: 2018-03-06 21:56:38
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for `t_addresses`
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `t_addresses`;
22 | CREATE TABLE `t_addresses` (
23 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
24 | `rname` varchar(22) DEFAULT NULL,
25 | `rphone` varchar(22) DEFAULT NULL,
26 | `local` varchar(22) DEFAULT NULL,
27 | `address` varchar(100) DEFAULT NULL,
28 | `userid` bigint(20) DEFAULT NULL,
29 | `isEnable` tinyint(4) DEFAULT NULL,
30 | PRIMARY KEY (`id`)
31 | ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8;
32 |
33 | -- ----------------------------
34 | -- Records of t_addresses
35 | -- ----------------------------
36 | INSERT INTO `t_addresses` VALUES ('56', '安安', '1500', '华为', '等待', '31', '1');
37 | INSERT INTO `t_addresses` VALUES ('57', '安安', '159999988', '华信区', '顶顶顶顶', '38', '1');
38 | INSERT INTO `t_addresses` VALUES ('58', '安安', '159988', '指针', '赛事', '44', '1');
39 | INSERT INTO `t_addresses` VALUES ('59', '', 'aa', '', '', '45', '1');
40 |
41 | -- ----------------------------
42 | -- Table structure for `t_admins`
43 | -- ----------------------------
44 | DROP TABLE IF EXISTS `t_admins`;
45 | CREATE TABLE `t_admins` (
46 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
47 | `email` varchar(100) DEFAULT NULL,
48 | `name` varchar(100) DEFAULT NULL,
49 | `phone` varchar(100) DEFAULT NULL,
50 | `password` varchar(100) DEFAULT NULL,
51 | `isDeleted` tinyint(4) DEFAULT NULL,
52 | PRIMARY KEY (`id`)
53 | ) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8;
54 |
55 | -- ----------------------------
56 | -- Records of t_admins
57 | -- ----------------------------
58 | INSERT INTO `t_admins` VALUES ('4', '123@qq.com', '小J', '155555', null, '1');
59 | INSERT INTO `t_admins` VALUES ('50', 'admin', 'admin', 'admin', 'admin', '0');
60 | INSERT INTO `t_admins` VALUES ('51', 'bbb@qq.com', 'bbb', '123', '1234567', '1');
61 | INSERT INTO `t_admins` VALUES ('52', 'admin2@qq.com', '123', '123123', 'admin123', '1');
62 | INSERT INTO `t_admins` VALUES ('53', 'admin@qq.com', 'admin', '123', 'admin', '1');
63 | INSERT INTO `t_admins` VALUES ('54', '9867715700@qq.com', '123', '44', '123456', '1');
64 |
65 | -- ----------------------------
66 | -- Table structure for `t_evaluates`
67 | -- ----------------------------
68 | DROP TABLE IF EXISTS `t_evaluates`;
69 | CREATE TABLE `t_evaluates` (
70 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
71 | `userid` bigint(20) DEFAULT NULL,
72 | `petsid` bigint(20) DEFAULT NULL,
73 | `message` varchar(100) DEFAULT NULL,
74 | `username` varchar(255) DEFAULT NULL,
75 | `title` varchar(255) DEFAULT NULL,
76 | `isDeleted` tinyint(4) DEFAULT NULL,
77 | `answer` varchar(100) DEFAULT NULL,
78 | PRIMARY KEY (`id`),
79 | KEY `petsid` (`petsid`),
80 | CONSTRAINT `t_evaluates_ibfk_1` FOREIGN KEY (`petsid`) REFERENCES `t_pets` (`id`)
81 | ) ENGINE=InnoDB AUTO_INCREMENT=192 DEFAULT CHARSET=utf8;
82 |
83 | -- ----------------------------
84 | -- Records of t_evaluates
85 | -- ----------------------------
86 | INSERT INTO `t_evaluates` VALUES ('190', '31', '46', 'cccc', '123', 'xxx', '0', '啊啊啊');
87 | INSERT INTO `t_evaluates` VALUES ('191', '31', '46', '66', '123', '55', '0', null);
88 |
89 | -- ----------------------------
90 | -- Table structure for `t_messages`
91 | -- ----------------------------
92 | DROP TABLE IF EXISTS `t_messages`;
93 | CREATE TABLE `t_messages` (
94 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
95 | `userid` bigint(20) DEFAULT NULL,
96 | `content` varchar(1000) DEFAULT NULL,
97 | `username` varchar(20) DEFAULT NULL,
98 | PRIMARY KEY (`id`)
99 | ) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8;
100 |
101 | -- ----------------------------
102 | -- Records of t_messages
103 | -- ----------------------------
104 | INSERT INTO `t_messages` VALUES ('66', '31', '
宠物店很不错哦
', '123');
105 | INSERT INTO `t_messages` VALUES ('67', '31', '
', '123');
106 | INSERT INTO `t_messages` VALUES ('68', '31', '
', '123');
107 | INSERT INTO `t_messages` VALUES ('69', '31', '
', '123');
108 | INSERT INTO `t_messages` VALUES ('70', '31', '
', '123');
109 | INSERT INTO `t_messages` VALUES ('71', null, '
', '匿名者');
110 |
111 | -- ----------------------------
112 | -- Table structure for `t_orders`
113 | -- ----------------------------
114 | DROP TABLE IF EXISTS `t_orders`;
115 | CREATE TABLE `t_orders` (
116 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
117 | `userid` bigint(20) DEFAULT NULL,
118 | `petsid` bigint(20) DEFAULT NULL,
119 | `isDeleted` tinyint(1) DEFAULT NULL,
120 | PRIMARY KEY (`id`)
121 | ) ENGINE=InnoDB AUTO_INCREMENT=158 DEFAULT CHARSET=utf8;
122 |
123 | -- ----------------------------
124 | -- Records of t_orders
125 | -- ----------------------------
126 | INSERT INTO `t_orders` VALUES ('99', '31', '1', '1');
127 | INSERT INTO `t_orders` VALUES ('100', '31', '1', '1');
128 | INSERT INTO `t_orders` VALUES ('101', '31', '1', '1');
129 | INSERT INTO `t_orders` VALUES ('102', '31', '2', '1');
130 | INSERT INTO `t_orders` VALUES ('103', '31', '1', '1');
131 | INSERT INTO `t_orders` VALUES ('104', '31', '2', '1');
132 | INSERT INTO `t_orders` VALUES ('105', '31', '3', '1');
133 | INSERT INTO `t_orders` VALUES ('106', '34', '1', '0');
134 | INSERT INTO `t_orders` VALUES ('107', '34', '2', '0');
135 | INSERT INTO `t_orders` VALUES ('108', '34', '1', '0');
136 | INSERT INTO `t_orders` VALUES ('109', '35', '15', '1');
137 | INSERT INTO `t_orders` VALUES ('110', '35', '2', '1');
138 | INSERT INTO `t_orders` VALUES ('111', '35', '3', '1');
139 | INSERT INTO `t_orders` VALUES ('112', '35', '1', '1');
140 | INSERT INTO `t_orders` VALUES ('113', '31', '46', '1');
141 | INSERT INTO `t_orders` VALUES ('114', '31', '46', '1');
142 | INSERT INTO `t_orders` VALUES ('115', '31', '46', '1');
143 | INSERT INTO `t_orders` VALUES ('116', '31', '46', '1');
144 | INSERT INTO `t_orders` VALUES ('117', '31', '46', '1');
145 | INSERT INTO `t_orders` VALUES ('118', '31', '45', '1');
146 | INSERT INTO `t_orders` VALUES ('119', '31', '45', '1');
147 | INSERT INTO `t_orders` VALUES ('120', '31', '47', '1');
148 | INSERT INTO `t_orders` VALUES ('121', '31', '45', '1');
149 | INSERT INTO `t_orders` VALUES ('122', '31', '47', '1');
150 | INSERT INTO `t_orders` VALUES ('123', '31', '48', '1');
151 | INSERT INTO `t_orders` VALUES ('124', '31', '48', '1');
152 | INSERT INTO `t_orders` VALUES ('125', '31', '48', '1');
153 | INSERT INTO `t_orders` VALUES ('126', '31', '46', '1');
154 | INSERT INTO `t_orders` VALUES ('127', '31', '45', '1');
155 | INSERT INTO `t_orders` VALUES ('128', '31', '45', '1');
156 | INSERT INTO `t_orders` VALUES ('129', '31', '45', '1');
157 | INSERT INTO `t_orders` VALUES ('130', '31', '47', '1');
158 | INSERT INTO `t_orders` VALUES ('131', '31', '48', '1');
159 | INSERT INTO `t_orders` VALUES ('132', '31', '48', '1');
160 | INSERT INTO `t_orders` VALUES ('133', '31', '48', '1');
161 | INSERT INTO `t_orders` VALUES ('134', '31', '45', '1');
162 | INSERT INTO `t_orders` VALUES ('135', '31', '46', '1');
163 | INSERT INTO `t_orders` VALUES ('136', '44', '48', '1');
164 | INSERT INTO `t_orders` VALUES ('137', '44', '49', '1');
165 | INSERT INTO `t_orders` VALUES ('138', '31', '47', '1');
166 | INSERT INTO `t_orders` VALUES ('139', '31', '46', '1');
167 | INSERT INTO `t_orders` VALUES ('140', '6', '48', '0');
168 | INSERT INTO `t_orders` VALUES ('141', '31', '46', '1');
169 | INSERT INTO `t_orders` VALUES ('142', '31', '46', '1');
170 | INSERT INTO `t_orders` VALUES ('143', '31', '55', '1');
171 | INSERT INTO `t_orders` VALUES ('144', '31', '47', '1');
172 | INSERT INTO `t_orders` VALUES ('145', '31', '46', '1');
173 | INSERT INTO `t_orders` VALUES ('146', '31', '46', '1');
174 | INSERT INTO `t_orders` VALUES ('147', '31', '46', '1');
175 | INSERT INTO `t_orders` VALUES ('148', '31', '48', '1');
176 | INSERT INTO `t_orders` VALUES ('149', '31', '47', '1');
177 | INSERT INTO `t_orders` VALUES ('150', '31', '48', '1');
178 | INSERT INTO `t_orders` VALUES ('151', '31', '49', '1');
179 | INSERT INTO `t_orders` VALUES ('152', '31', '60', '1');
180 | INSERT INTO `t_orders` VALUES ('153', '31', '47', '1');
181 | INSERT INTO `t_orders` VALUES ('154', '31', '46', '1');
182 | INSERT INTO `t_orders` VALUES ('155', '31', '46', '1');
183 | INSERT INTO `t_orders` VALUES ('156', '31', '46', '1');
184 | INSERT INTO `t_orders` VALUES ('157', '31', '51', '0');
185 |
186 | -- ----------------------------
187 | -- Table structure for `t_pets`
188 | -- ----------------------------
189 | DROP TABLE IF EXISTS `t_pets`;
190 | CREATE TABLE `t_pets` (
191 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
192 | `name` varchar(20) DEFAULT NULL,
193 | `age` float(20,0) DEFAULT NULL,
194 | `type` varchar(20) DEFAULT NULL,
195 | `description` varchar(500) DEFAULT NULL,
196 | `image` varchar(500) DEFAULT NULL,
197 | `sale` float DEFAULT NULL,
198 | `isDeleted` tinyint(4) DEFAULT NULL,
199 | PRIMARY KEY (`id`)
200 | ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8;
201 |
202 | -- ----------------------------
203 | -- Records of t_pets
204 | -- ----------------------------
205 | INSERT INTO `t_pets` VALUES ('1', '哈士奇', '2', 'dog', '西伯利亚哈士奇的特色气质是友好、温和,但也不失机警、热情、聪明、温顺、热心,饲养的城乡均可,宽敞为佳。最好是住在郊区,有一个有围栏的院子更佳。也适合居住小区空地较多的饲养者、害怕孤单须有人陪伴、精力旺盛运动量大。不适宜老年人和休闲时间不多的上班族和学生饲养。', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1519540621935&di=edbcda301f0e22e94a1e97e4258f74d2&imgtype=0&src=http%3A%2F%2Fimg15.3lian.com%2F2016%2Fh1%2F156%2F203.jpg', '500.2', '1');
206 | INSERT INTO `t_pets` VALUES ('2', '博美犬', '3', 'dog', '博美是一种紧凑、短背、活跃的玩赏犬,学名哈多利系博美犬(俗称英系博美犬),是德国狐狸犬的一种,原产德国。它拥有柔软、浓密的底毛和粗硬的皮毛。', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1519536334382&di=5c91722f9071cfc74e92b19daf817470&imgtype=0&src=http%3A%2F%2Fimg.mp.itc.cn%2Fupload%2F20170109%2F4f49594b0d2c4253ab757d573bd638db_th.jpg', '400', '1');
207 | INSERT INTO `t_pets` VALUES ('3', '玩具', '0', 'play', '一个狗骨头', 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2385102942,1605973198&fm=27&gp=0.jpg', '22', '1');
208 | INSERT INTO `t_pets` VALUES ('4', '猫咪', '2', 'cat', '啊啊', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1519539323555&di=4958204ad2de0027c264e49c732587fe&imgtype=0&src=http%3A%2F%2Fimg2.ph.126.net%2FaHE5Lqbiciqi_UlImGTJ4Q%3D%3D%2F6630198052001994020.jpg', '100', '1');
209 | INSERT INTO `t_pets` VALUES ('5', '小花猫', '1', 'cat', '狸花猫的原产地是中国,属于自然猫,是在千百年中经过许多品种的自然淘汰而保留下来的品种。人们最熟悉的就要算是“狸猫换太子”(宋朝)的故事了,这也是能够找到的最早有关于狸花猫的记录了,所以,狸花猫就有了一个这样的英文名字DragonLi,由CFA猫会授予。它非常受百姓们喜欢,因为它有漂亮、厚实的皮毛,健康的身体。容易喂养,并且对捕捉老鼠十分', 'G:\\tomcat主要的\\apache-tomcat-8.0.36\\wtpwebapps\\PetsBuyAdmin\\upload\\557f0ae2-a212-4e4c-94ac-2faf4e673e17.jpg', '25', '1');
210 | INSERT INTO `t_pets` VALUES ('10', null, '1', 'dog', '中华田园犬', 'https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=1001166886,250566894&fm=58&bpow=0&bpoh=0', '500', '1');
211 | INSERT INTO `t_pets` VALUES ('11', '猫', '1', 'cat', '大猫', 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1853832225,307688784&fm=5', '12', '1');
212 | INSERT INTO `t_pets` VALUES ('12', '3', '4', '5', '2', '1', '6', '1');
213 | INSERT INTO `t_pets` VALUES ('13', '123', '123', '123', '123', '123', '123', '1');
214 | INSERT INTO `t_pets` VALUES ('14', '4', '5', '6', '3', '12', '7', '1');
215 | INSERT INTO `t_pets` VALUES ('15', '大花猫', '2', 'cat', '狸花猫的原产地是中国,属于自然猫,是在千百年中经过许多品种的自然淘汰而保留下来的品种。人们最熟悉的就要算是“狸猫换太子”(宋朝)的故事了,这也是能够找到的最早有关于狸花猫的记录了,所以,狸花猫就有了一个这样的英文名字DragonLi,由CFA猫会授予。它非常受百姓们喜欢,因为它有漂亮、厚实的皮毛,健康的身体。容易喂养,并且对捕捉老鼠十分在行。[1]', 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=4101797743,612769154&fm=27&gp=0.jpg', '100', '1');
216 | INSERT INTO `t_pets` VALUES ('16', '4', '3', '5', '123', 'http://a1.qpic.cn/psb?/V14F9mhA0RgwIV/J7.xuWYyrhDxbpqFu.Cilv94WenRAcRnWBZbg8Qj4*A!/m/dMgAAAAAAAAAnull&bo=BQH6AAAAAAACB90!&rf=photolist&t=5', '6', '1');
217 | INSERT INTO `t_pets` VALUES ('17', '2', '3', '4', '1', 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=3868620627,2694438302&fm=58', '5', '1');
218 | INSERT INTO `t_pets` VALUES ('18', '波斯猫', '1', 'cat', '波斯猫(Persian cat)是以阿富汗的土种长毛猫和土耳其的安哥拉长毛猫为基础,在英国经过100多年的选种繁殖,于1860年诞生的一个品种。 波斯猫是最常见的长毛猫,波斯猫有一张讨人喜爱的面庞,长而华丽的背毛,优雅的举止,故有“猫中王子”、“王妃”之称,是世界上爱猫者最喜欢的纯种猫之一,占有极其重要的地位。', 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1853832225,307688784&fm=5', '1111', '1');
219 | INSERT INTO `t_pets` VALUES ('19', '猫粮', '1', 'play', '猫粮', 'https://ss0.bdstatic.com/6ONWsjip0QIZ8tyhnq/it/u=2107314520,3847252490&fm=77&w_h=121_75&cs=3558596100,1261870205', '33', '1');
220 | INSERT INTO `t_pets` VALUES ('20', '阿斯顿', '12', 'cat', '猫', 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1569462993,172008204&fm=5', '33', '1');
221 | INSERT INTO `t_pets` VALUES ('26', null, '1', 'dog', '', '
', '111', '1');
222 | INSERT INTO `t_pets` VALUES ('27', '哈士奇', '1', 'dog', '西伯利亚雪橇犬(俄语:Сибирский хаски,英语:Siberian husky),常见别名哈士奇,昵称为二哈。西伯利亚雪橇犬体重介于雄犬20-27公斤,雌犬16-23公斤,身高大约雄犬肩高53-58厘米,雌犬51-56厘米,是一种中型犬。西伯利亚雪橇犬是原始的古老犬种,在西伯利亚东北部、格陵兰南部生活。...', '
', '5000', '1');
223 | INSERT INTO `t_pets` VALUES ('28', '博美', '1', 'dog', '一只博美', '
', '200', '1');
224 | INSERT INTO `t_pets` VALUES ('29', '161105Java班', '2', '3', '5', '
', '4', '1');
225 | INSERT INTO `t_pets` VALUES ('30', '123', '123', '123', '123', '
', '123', '1');
226 | INSERT INTO `t_pets` VALUES ('31', '哈士奇', '12', 'dog', '西伯利亚雪橇犬(俄语:Сибирский хаски,英语:Siberian husky),常见别名哈士奇,昵称为二哈。西伯利亚雪橇犬体重介于雄犬20-27公斤,雌犬16-23公斤,身高大约雄犬肩高53-58厘米,雌犬51-56厘米,是一种中型犬。西伯利亚雪橇犬是原始的古老犬种,在西伯利亚东北部、格陵兰南部生活。...', '
', '100', '1');
227 | INSERT INTO `t_pets` VALUES ('32', '123321', '123', 'cat', '123', '
', '123', '1');
228 | INSERT INTO `t_pets` VALUES ('33', '123', '123', 'cat', '333', '
', '123', '1');
229 | INSERT INTO `t_pets` VALUES ('34', '波斯猫', '12', 'cat', '一致波斯猫', '
', '100', '1');
230 | INSERT INTO `t_pets` VALUES ('35', '161105Java班', '3', '4', '6', '
', '500', '1');
231 | INSERT INTO `t_pets` VALUES ('36', '123', '123', 'dog', '好用', '
', '100', '1');
232 | INSERT INTO `t_pets` VALUES ('37', '111', '22', 'cat', '毛毛', '
', '120', '1');
233 | INSERT INTO `t_pets` VALUES ('38', '161105Java班', '2', '4', '123', '
', '222', '1');
234 | INSERT INTO `t_pets` VALUES ('39', '波斯猫', '123', 'cat', '啊啊啊', '
', '500', '1');
235 | INSERT INTO `t_pets` VALUES ('40', '博美', '2', 'dog', '演示', '
', '500', '1');
236 | INSERT INTO `t_pets` VALUES ('41', '123', '3', '4', '6', 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4041540249,4158053326&fm=27&gp=0.jpg
', '500', '1');
237 | INSERT INTO `t_pets` VALUES ('42', '123', '123', '4444', '11111', '
', '555', '1');
238 | INSERT INTO `t_pets` VALUES ('43', '161105Java班', '3', '4', '啊啊啊啊', '
', '100', '1');
239 | INSERT INTO `t_pets` VALUES ('44', '123', '123', 'cat', 'aaa', '
', '111', '1');
240 | INSERT INTO `t_pets` VALUES ('45', '啊钩子', '19', 'dog', '阿萨大大十大', 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1794064296,746211315&fm=5', '123', '1');
241 | INSERT INTO `t_pets` VALUES ('46', '金毛212', '2', 'dog22', '金毛寻回犬(英语:Golden Retriever)是比较现代并很流行的狗的品种,是单猎犬,作为用来在猎捕野禽的寻回犬而培养出来的,游泳的续航力极佳。 金毛寻回犬它是最常见的家犬之一,因为它很容易养,有耐心并且对主人要求不多,只要定期的运动,食物和兽医体检就可以了。金毛的独特之处在于它讨人喜欢的性格,是属于匀称、有力、活泼的一个犬种,特征是稳固、身体各部位配合合理,腿既不太长也不笨拙,表情友善,个性热情、机警、自信而且不怕生。金毛犬最早是一种寻回猎犬。现在大多作为导盲犬与宠物狗。对小孩子或者婴儿十分友善。金毛犬是位列世界犬种智商排行的第四名。', 'https://gss3.bdstatic.com/7Po3dSag_xI4khGkpoWK1HF6hhy/baike/w%3D268%3Bg%3D0/sign=c00b6c9b8082b9013dadc4354bb6ce4a/e4dde71190ef76c6a818bc979716fdfaae516747.jpg', '5000', '0');
242 | INSERT INTO `t_pets` VALUES ('47', '哈士奇', '1', 'dog', '(俄语:Сибирский хаски,英语:Siberian husky),常见别名哈士奇,昵称为二哈。西伯利亚雪橇犬体重介于雄犬20-27公斤,雌犬16-23公斤,身高大约雄犬肩高53-58厘米,雌犬51-56厘米,是一种中型犬。西伯利亚雪橇犬是原始的古老犬种,在西伯利亚东北部、格陵兰南部生活。...', 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=3030954164,2873807303&fm=58&w=121&h=140&img.JPEG&bpow=1079&bpoh=1438', '50005', '0');
243 | INSERT INTO `t_pets` VALUES ('48', '猫咪', '1', 'cat', '属于猫科动物,分家猫、野猫,是全世界家庭中较为广泛的宠物。家猫的祖先据推测是起源于古埃及的沙漠猫,波斯... 物种始源 形态特征 生活习性 驯养方法 主要品种 更', 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2247692397,1189743173&fm=5', '100', '0');
244 | INSERT INTO `t_pets` VALUES ('49', '狗骨头1', '0', 'play', '狗骨头描述', 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3614320435,3048808919&fm=27&gp=0.jpg', '33.05', '0');
245 | INSERT INTO `t_pets` VALUES ('50', '贵宾犬', '1', 'dog', '宾犬(Poodle),也称“贵妇犬”,又称“卷毛狗”,在德语中,Pudel是“水花飞溅”的意思,是犬亚科犬属的一种动物。贵宾犬的来源就像它为了拖出猎禽所涉过的水一样浑浊不清...', 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1610289311,943304439&fm=200&gp=0.jpg', '100', '1');
246 | INSERT INTO `t_pets` VALUES ('51', '猫', '2', 'cat', '一只猫', 'https://gss3.bdstatic.com/7Po3dSag_xI4khGkpoWK1HF6hhy/baike/w%3D268%3Bg%3D0/sign=0d45beaf41fbfbeddc59317940cb900b/a2cc7cd98d1001e96eeb3b9fb20e7bec55e7974e.jpg', '233', '0');
247 | INSERT INTO `t_pets` VALUES ('52', '苏格兰猫', '12', 'cat', '一只啊啊啊啊', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3783715524,1837658254&fm=27&gp=0.jpg', '5001', '0');
248 | INSERT INTO `t_pets` VALUES ('53', '英国猫2', '2', 'cat', '啊啊啊123123', 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3025049301,3627840209&fm=27&gp=0.jpg', '200', '0');
249 | INSERT INTO `t_pets` VALUES ('54', '波斯猫25', '1', 'cat', '波斯猫', 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=3935878919,2632259825&fm=58', '120', '0');
250 | INSERT INTO `t_pets` VALUES ('55', '宠物饲料', '1', 'play', '皇家饲料', 'https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=2819942671,3998183454&fm=58&bpow=500&bpoh=396', '150', '0');
251 | INSERT INTO `t_pets` VALUES ('56', '哈士奇', '1', 'dog', '请求', 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3807093741,2063253365&fm=200&gp=0.jpg', '5001', '1');
252 | INSERT INTO `t_pets` VALUES ('57', '哈士奇', '3', 'dog', '一只哈士奇啊啊啊', 'https://gss1.bdstatic.com/-vo3dSag_xI4khGkpoWK1HF6hhy/baike/w%3D268%3Bg%3D0/sign=8d59070cb73eb13544c7b0bd9e25cfee/58ee3d6d55fbb2fb4e4573f6444a20a44723dce3.jpg', '500', '1');
253 | INSERT INTO `t_pets` VALUES ('58', '等待', '12', 'dog', '2222', 'https://gss1.bdstatic.com/-vo3dSag_xI4khGkpoWK1HF6hhy/baike/w%3D268%3Bg%3D0/sign=6a65b7743efae6cd0cb4ac6737886819/64380cd7912397dd5c0ace475282b2b7d0a28706.jpg', '333', '0');
254 | INSERT INTO `t_pets` VALUES ('59', '安安', '12', 'play', '123123', 'http://img.zcool.cn/community/01690955496f930000019ae92f3a4e.jpg@2o.jpg', '200', '0');
255 | INSERT INTO `t_pets` VALUES ('60', '123', '123', 'dog', '333', 'https://gss3.bdstatic.com/7Po3dSag_xI4khGkpoWK1HF6hhy/baike/w%3D268%3Bg%3D0/sign=c00b6c9b8082b9013dadc4354bb6ce4a/e4dde71190ef76c6a818bc979716fdfaae516747.jpg', '12', '0');
256 |
257 | -- ----------------------------
258 | -- Table structure for `t_petstousers`
259 | -- ----------------------------
260 | DROP TABLE IF EXISTS `t_petstousers`;
261 | CREATE TABLE `t_petstousers` (
262 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
263 | `address` varchar(255) DEFAULT NULL,
264 | `petsName` varchar(255) DEFAULT NULL,
265 | `isDeleted` tinyint(4) DEFAULT NULL,
266 | `username` varchar(255) DEFAULT NULL,
267 | `phone` varchar(255) DEFAULT NULL,
268 | `rname` varchar(255) DEFAULT NULL,
269 | `local` varchar(255) DEFAULT NULL,
270 | `sale` float DEFAULT NULL,
271 | PRIMARY KEY (`id`)
272 | ) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8;
273 |
274 | -- ----------------------------
275 | -- Records of t_petstousers
276 | -- ----------------------------
277 | INSERT INTO `t_petstousers` VALUES ('22', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
278 | INSERT INTO `t_petstousers` VALUES ('23', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
279 | INSERT INTO `t_petstousers` VALUES ('24', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
280 | INSERT INTO `t_petstousers` VALUES ('25', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
281 | INSERT INTO `t_petstousers` VALUES ('26', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
282 | INSERT INTO `t_petstousers` VALUES ('27', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
283 | INSERT INTO `t_petstousers` VALUES ('28', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
284 | INSERT INTO `t_petstousers` VALUES ('29', 'a', '博美犬', '1', '会员', '啊啊', '啊啊', 'aa', '400');
285 | INSERT INTO `t_petstousers` VALUES ('30', 'a', '哈士奇', '1', '会员', '啊啊', '啊啊', 'aa', '500.2');
286 | INSERT INTO `t_petstousers` VALUES ('31', 'a', '博美犬', '1', '会员', '啊啊', '啊啊', 'aa', '400');
287 | INSERT INTO `t_petstousers` VALUES ('32', 'a', '玩具', '1', '会员', '啊啊', '啊啊', 'aa', '22');
288 | INSERT INTO `t_petstousers` VALUES ('33', '海淀', '哈士奇', '1', 'xiaoJ啊', '150091', '小J', '北京', '500.2');
289 | INSERT INTO `t_petstousers` VALUES ('34', '海淀区', '大花猫', '1', '会员', '150091', '大肥', '北京', '100');
290 | INSERT INTO `t_petstousers` VALUES ('35', '海淀区', '博美犬', '1', '会员', '150091', '大肥', '北京', '400');
291 | INSERT INTO `t_petstousers` VALUES ('36', '海淀区', '玩具', '1', '会员', '150091', '大肥', '北京', '22');
292 | INSERT INTO `t_petstousers` VALUES ('37', '海淀区', '哈士奇', '1', '会员a', '150091', '大肥', '北京', '500.2');
293 | INSERT INTO `t_petstousers` VALUES ('38', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
294 | INSERT INTO `t_petstousers` VALUES ('39', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
295 | INSERT INTO `t_petstousers` VALUES ('40', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
296 | INSERT INTO `t_petstousers` VALUES ('41', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
297 | INSERT INTO `t_petstousers` VALUES ('42', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
298 | INSERT INTO `t_petstousers` VALUES ('43', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
299 | INSERT INTO `t_petstousers` VALUES ('44', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
300 | INSERT INTO `t_petstousers` VALUES ('45', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
301 | INSERT INTO `t_petstousers` VALUES ('46', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
302 | INSERT INTO `t_petstousers` VALUES ('47', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
303 | INSERT INTO `t_petstousers` VALUES ('48', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
304 | INSERT INTO `t_petstousers` VALUES ('49', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
305 | INSERT INTO `t_petstousers` VALUES ('50', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
306 | INSERT INTO `t_petstousers` VALUES ('51', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
307 | INSERT INTO `t_petstousers` VALUES ('52', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
308 | INSERT INTO `t_petstousers` VALUES ('53', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
309 | INSERT INTO `t_petstousers` VALUES ('54', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
310 | INSERT INTO `t_petstousers` VALUES ('55', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
311 | INSERT INTO `t_petstousers` VALUES ('56', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
312 | INSERT INTO `t_petstousers` VALUES ('57', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
313 | INSERT INTO `t_petstousers` VALUES ('58', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
314 | INSERT INTO `t_petstousers` VALUES ('59', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
315 | INSERT INTO `t_petstousers` VALUES ('60', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
316 | INSERT INTO `t_petstousers` VALUES ('61', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
317 | INSERT INTO `t_petstousers` VALUES ('62', '海淀区', '猫粮', '1', '会员a', '150091', '大肥', '北京', '33');
318 | INSERT INTO `t_petstousers` VALUES ('63', '123123', '啊钩子', '1', '赛亚人', '123123', '123123', '123123', '123');
319 | INSERT INTO `t_petstousers` VALUES ('64', '请问', '金毛', '1', '赛亚人', '15008121886', '超级赛亚人', '二货2', '5000');
320 | INSERT INTO `t_petstousers` VALUES ('65', '赛事', '猫咪', '1', '只是一个测试', '159988', '安安', '指针', '100');
321 | INSERT INTO `t_petstousers` VALUES ('66', '赛事', '狗骨头', '1', '只是一个测试', '159988', '安安', '指针', '33');
322 | INSERT INTO `t_petstousers` VALUES ('67', '等待', '哈士奇', '1', '赛亚人23', '1500', '安安', '华为', '50005');
323 | INSERT INTO `t_petstousers` VALUES ('68', '等待', '金毛212', '1', '赛亚人23', '1500', '安安', '华为', '5000');
324 | INSERT INTO `t_petstousers` VALUES ('69', '等待', '金毛212', '1', '123', '1500', '安安', '华为', '5000');
325 | INSERT INTO `t_petstousers` VALUES ('70', '等待', '金毛212', '1', '123', '1500', '安安', '华为', '5000');
326 | INSERT INTO `t_petstousers` VALUES ('71', '等待', '宠物饲料', '1', '123', '1500', '安安', '华为', '150');
327 | INSERT INTO `t_petstousers` VALUES ('72', '等待', '哈士奇', '1', '123', '1500', '安安', '华为', '50005');
328 | INSERT INTO `t_petstousers` VALUES ('73', '等待', '金毛212', '1', '123', '1500', '安安', '华为', '5000');
329 | INSERT INTO `t_petstousers` VALUES ('74', '等待', '金毛212', '0', '123', '1500', '安安', '华为', '5000');
330 | INSERT INTO `t_petstousers` VALUES ('75', '等待', '金毛212', '0', '123', '1500', '安安', '华为', '5000');
331 | INSERT INTO `t_petstousers` VALUES ('76', '等待', '猫咪', '0', '123', '1500', '安安', '华为', '100');
332 | INSERT INTO `t_petstousers` VALUES ('77', '等待', '哈士奇', '0', '123', '1500', '安安', '华为', '50005');
333 | INSERT INTO `t_petstousers` VALUES ('78', '等待', '猫咪', '0', '123', '1500', '安安', '华为', '100');
334 | INSERT INTO `t_petstousers` VALUES ('79', '等待', '狗骨头1', '0', '123', '1500', '安安', '华为', '33.05');
335 | INSERT INTO `t_petstousers` VALUES ('80', '等待', '123', '0', '123', '1500', '安安', '华为', '12');
336 | INSERT INTO `t_petstousers` VALUES ('81', '等待', '哈士奇', '0', '123', '1500', '安安', '华为', '50005');
337 | INSERT INTO `t_petstousers` VALUES ('82', '等待', '金毛212', '0', '123', '1500', '安安', '华为', '5000');
338 | INSERT INTO `t_petstousers` VALUES ('83', '等待', '金毛212', '0', '123', '1500', '安安', '华为', '5000');
339 | INSERT INTO `t_petstousers` VALUES ('84', '等待', '金毛212', '0', '123', '1500', '安安', '华为', '5000');
340 | INSERT INTO `t_petstousers` VALUES ('85', '等待', '猫', '0', '123', '1500', '安安', '华为', '233');
341 |
342 | -- ----------------------------
343 | -- Table structure for `t_shopcars`
344 | -- ----------------------------
345 | DROP TABLE IF EXISTS `t_shopcars`;
346 | CREATE TABLE `t_shopcars` (
347 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
348 | `userid` bigint(20) DEFAULT NULL,
349 | `petsid` bigint(20) DEFAULT NULL,
350 | `isEnale` tinyint(4) DEFAULT NULL,
351 | PRIMARY KEY (`id`),
352 | KEY `userid` (`userid`),
353 | KEY `petsid` (`petsid`),
354 | CONSTRAINT `t_shopcars_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `t_users` (`id`),
355 | CONSTRAINT `t_shopcars_ibfk_2` FOREIGN KEY (`petsid`) REFERENCES `t_pets` (`id`)
356 | ) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8;
357 |
358 | -- ----------------------------
359 | -- Records of t_shopcars
360 | -- ----------------------------
361 | INSERT INTO `t_shopcars` VALUES ('118', '35', '19', null);
362 |
363 | -- ----------------------------
364 | -- Table structure for `t_users`
365 | -- ----------------------------
366 | DROP TABLE IF EXISTS `t_users`;
367 | CREATE TABLE `t_users` (
368 | `id` bigint(20) NOT NULL AUTO_INCREMENT,
369 | `adressId` bigint(20) DEFAULT NULL,
370 | `email` varchar(22) DEFAULT NULL,
371 | `password` varchar(22) DEFAULT NULL,
372 | `score` varchar(22) DEFAULT NULL,
373 | `money` float(22,0) DEFAULT NULL,
374 | `name` varchar(22) DEFAULT NULL,
375 | `address` varchar(100) DEFAULT NULL,
376 | `phone` varchar(22) DEFAULT NULL,
377 | `description` varchar(300) DEFAULT NULL,
378 | `major` varchar(100) DEFAULT NULL,
379 | PRIMARY KEY (`id`),
380 | KEY `adressId` (`adressId`),
381 | CONSTRAINT `t_users_ibfk_1` FOREIGN KEY (`adressId`) REFERENCES `t_addresses` (`id`)
382 | ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8;
383 |
384 | -- ----------------------------
385 | -- Records of t_users
386 | -- ----------------------------
387 | INSERT INTO `t_users` VALUES ('6', null, '12345678@qq.com', '123123', '1000', null, '我是好人232', null, '180000000035', null, null);
388 | INSERT INTO `t_users` VALUES ('30', null, '123456789@qq.com', '123123', '1000', null, '上帝', null, null, null, null);
389 | INSERT INTO `t_users` VALUES ('31', null, '9867715700@qq.com', '123456', '1060', null, '123', null, '122', '简单简单3t', '啊');
390 | INSERT INTO `t_users` VALUES ('32', null, '123@qq.ocm', '123123', '1000', null, '无敌', null, null, null, null);
391 | INSERT INTO `t_users` VALUES ('33', null, 'abc1@a.com', '123123', '1000', null, '会员2', null, '123123', '123', '123');
392 | INSERT INTO `t_users` VALUES ('34', null, '12345@qq.com', '123456', '1000', null, '会员', null, null, null, null);
393 | INSERT INTO `t_users` VALUES ('35', null, '1234567@qq.com', '123456', '1000', null, '会员a', null, '1500111', null, null);
394 | INSERT INTO `t_users` VALUES ('36', null, '986771570@qq.com', '123', '1000', null, '超人', null, '150081', '超人超人超人超人超人超人', '学生');
395 | INSERT INTO `t_users` VALUES ('37', null, 'abc3@a.com', '123456', '1000', null, '会员', null, '1500', null, null);
396 | INSERT INTO `t_users` VALUES ('38', null, 'abcd@qq.com', '123456', '1000', null, '会员33355', null, '1500', '444', '22');
397 | INSERT INTO `t_users` VALUES ('39', null, '986@qq.com', '123456', '1000', null, '会员', null, '1500', '123123123', '123');
398 | INSERT INTO `t_users` VALUES ('40', null, 'a@qq.com', '2', '1000', null, '会员', null, '1', null, null);
399 | INSERT INTO `t_users` VALUES ('41', null, 'ab@qq.com', '123123', '1000', null, '用户啊', null, '15002', '呃呃呃', '啊');
400 | INSERT INTO `t_users` VALUES ('42', null, 'test@qq.com', '123123', '1000', null, '会员3123', null, '1555', '啊啊啊啊啊啊啊', '自已');
401 | INSERT INTO `t_users` VALUES ('43', null, 'test2@qq.com', '123123', '1000', null, '123123', null, '12323', '123123', '123123');
402 | INSERT INTO `t_users` VALUES ('44', null, 'test3@qq.com', '123123', '1000', null, '只是一个测试2', null, '1500995555', '123', '测试');
403 | INSERT INTO `t_users` VALUES ('45', null, '989@qq.com', '989', '1000', null, '会员2', null, '98955a', '12333', '123');
404 | INSERT INTO `t_users` VALUES ('46', null, '123456781@qq.com', '123456', '1000', null, '会员', null, '12345678@qq.com', null, null);
405 |
--------------------------------------------------------------------------------
/show.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dh1714260544/javaweb--PetsSale/d95ec079dd6f1bdfc29c5a91c45198b031d15bff/show.png
--------------------------------------------------------------------------------