管理员登录后台以后才能操作 ,权限管理只有一个管理员, 系统的主要作用是查看所有的 “公司列表”, 并查看该公司的”产品“, 用户可以对该公司的产品进行添加或者删除, 添加或者删除公司等 , 添加产品和删除产品等功能;

 

  主界面如下:  tomcat-jQ-springMVC-bootstrap

 

  

 

  添加公司产品的界面截图:tomcat-jQ-springMVC-bootstrap

 

 

 

  添加公司的功能界面:

 

    tomcat-jQ-springMVC-bootstrap

 

 

 

  项目中就包含了两个实体类, 偷懒的小妖精: 

 

  公司实体类:

 

运行下面代码

 

View Code

 

  产品类型实体类:

 

运行下面代码

 

View Code

 

 

 

  数据库设计了三个表, 对应了上面的两个实体类

 

运行下面代码

 

tomcat-jQ-springMVC-bootstrap
/*
Navicat MySQL Data Transfer

Source Server         : localhost_3306
Source Server Version : 50621
Source Host           : 127.0.0.1:3306
Source Database       : quote_

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

Date: 2015-08-10 19:11:24
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for tb_product
-- ----------------------------
DROP TABLE IF EXISTS `tb_product`;
CREATE TABLE `tb_product` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `address` varchar(30) DEFAULT '(NULL)',
  `username` varchar(15) DEFAULT '(NULL)',
  `otherInfo` varchar(30) DEFAULT '(NULL)',
  `phone` varchar(15) DEFAULT '(NULL)',
  `productType` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_product
-- ----------------------------
INSERT INTO `tb_product` VALUES ('3', '北京海淀', 'mongo', 'mongo公司', '33333333', '9,10');
INSERT INTO `tb_product` VALUES ('4', '北京五道口', 'xx', 'xx公司', '44444444', '3,4');
INSERT INTO `tb_product` VALUES ('5', '北京哪里', '用户名', '公司名', '111112223', '3,4,8');
INSERT INTO `tb_product` VALUES ('9', '北京', 'chenqihao', 'www.fuhess.com', '111111', '3,4');
INSERT INTO `tb_product` VALUES ('11', '立水桥', '北京', '高智商有线公司', '185855', '2');

-- ----------------------------
-- Table structure for tb_producttype
-- ----------------------------
DROP TABLE IF EXISTS `tb_producttype`;
CREATE TABLE `tb_producttype` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pId` int(11) NOT NULL,
  `pName` varchar(40) DEFAULT '(null)',
  `info` varchar(40) DEFAULT '(null)',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_producttype
-- ----------------------------
INSERT INTO `tb_producttype` VALUES ('3', '3', '电脑', '就是电脑啊');
INSERT INTO `tb_producttype` VALUES ('4', '4', '平板', '就是平板啊');
INSERT INTO `tb_producttype` VALUES ('8', '1', '手机', '移动设备');
INSERT INTO `tb_producttype` VALUES ('9', '1', 'pad', '平板啦');
INSERT INTO `tb_producttype` VALUES ('10', '1', '水杯', '可以喝水的哦');

-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
  `username` varchar(20) NOT NULL DEFAULT '',
  `password` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=gb2312 COMMENT='用户';

-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('nono', 'nono');
tomcat-jQ-springMVC-bootstrap

相关文章:

  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
猜你喜欢
  • 2022-12-23
  • 2021-04-20
  • 2022-12-23
  • 2021-11-15
  • 2021-05-09
  • 2022-12-23
相关资源
相似解决方案