CRM一般指客户关系管理
客户关系管理是指企业为提高核心竞争力,利用相应的信息技术以及互联网技术协调企业与顾客间在销售、营销和服务上的交互,从而提升其管理方式,向客户提供创新式的个性化的客户交互和服务的过程。
其最终目标是吸引新客户、保留老客户以及将已有客户转为忠实客户,增加市场。
下载地址:
https://download.csdn.net/download/qq_44757034/12702264
导入代码后需要将代码当中数据库配置的文件的账号密码设置为你自己的账号和密码
如果JDK版本不符,可以在创建一个名称一样的项目,然后将对应的src下的文件复制进去,和对应的css,images以及jsp页面复制进去,即可
本系统使用的MySQL数据库在导入项目之前将对应数据库下载安装好,网上一大堆教程
CREATE DATABASE /*!32312 IF NOT EXISTS*/`crm` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `crm`;
DROP TABLE IF EXISTS `base_dict`;
CREATE TABLE `base_dict` (
`dict_id` varchar(32) NOT NULL COMMENT '数据字典id(主键)',
`dict_type_code` varchar(10) NOT NULL COMMENT '数据字典类别代码',
`dict_type_name` varchar(64) NOT NULL COMMENT '数据字典类别名称',
`dict_item_name` varchar(64) NOT NULL COMMENT '数据字典项目名称',
`dict_item_code` varchar(10) DEFAULT NULL COMMENT '数据字典项目(可为空)',
`dict_sort` int(10) DEFAULT NULL COMMENT '排序字段',
`dict_enable` char(1) NOT NULL COMMENT '1:使用 0:停用',
`dict_memo` varchar(64) DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`dict_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into `base_dict`(`dict_id`,`dict_type_code`,`dict_type_name`,`dict_item_name`,`dict_item_code`,`dict_sort`,`dict_enable`,`dict_memo`) values ('1','001','客户行业','教育培训 ',NULL,1,'1',NULL),('10','003','公司性质','民企',NULL,3,'1',NULL),('12','004','年营业额','1-10万',NULL,1,'1',NULL),('13','004','年营业额','10-20万',NULL,2,'1',NULL),('14','004','年营业额','20-50万',NULL,3,'1',NULL),('15','004','年营业额','50-100万',NULL,4,'1',NULL),('16','004','年营业额','100-500万',NULL,5,'1',NULL),('17','004','年营业额','500-1000万',NULL,6,'1',NULL),('18','005','客户状态','基础客户',NULL,1,'1',NULL),('19','005','客户状态','潜在客户',NULL,2,'1',NULL),('2','001','客户行业','电子商务',NULL,2,'1',NULL),('20','005','客户状态','成功客户',NULL,3,'1',NULL),('21','005','客户状态','无效客户',NULL,4,'1',NULL),('22','006','客户级别','普通客户',NULL,1,'1',NULL),('23','006','客户级别','VIP客户',NULL,2,'1',NULL),('24','007','商机状态','意向客户',NULL,1,'1',NULL),('25','007','商机状态','初步沟通',NULL,2,'1',NULL),('26','007','商机状态','深度沟通',NULL,3,'1',NULL),('27','007','商机状态','签订合同',NULL,4,'1',NULL),('3','001','客户行业','对外贸易',NULL,3,'1',NULL),('30','008','商机类型','新业务',NULL,1,'1',NULL),('31','008','商机类型','现有业务',NULL,2,'1',NULL),('32','009','商机来源','电话营销',NULL,1,'1',NULL),('33','009','商机来源','网络营销',NULL,2,'1',NULL),('34','009','商机来源','推广活动',NULL,3,'1',NULL),('4','001','客户行业','酒店旅游',NULL,4,'1',NULL),('5','001','客户行业','房地产',NULL,5,'1',NULL),('6','002','客户信息来源','电话营销',NULL,1,'1',NULL),('7','002','客户信息来源','网络营销',NULL,2,'1',NULL),('8','003','公司性质','合资',NULL,1,'1',NULL),('9','003','公司性质','国企',NULL,2,'1',NULL);
DROP TABLE IF EXISTS `cst_customer`;
CREATE TABLE `cst_customer` (
`cust_id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '客户编号(主键)',
`cust_name` varchar(32) NOT NULL COMMENT '客户名称(公司名称)',
`cust_source` varchar(32) DEFAULT NULL COMMENT '客户信息来源',
`cust_industry` varchar(32) DEFAULT NULL COMMENT '客户所属行业',
`cust_level` varchar(32) DEFAULT NULL COMMENT '客户级别',
`cust_phone` varchar(64) DEFAULT NULL COMMENT '固定电话',
`cust_mobile` varchar(16) DEFAULT NULL COMMENT '移动电话',
`cust_image` varchar(255) DEFAULT NULL,
PRIMARY KEY (`cust_id`),
KEY `FKeh5g36duab8g1h051pdjfwcgd` (`cust_source`),
KEY `FK2xhr3arwp3tkuae1da4lqv352` (`cust_industry`),
KEY `FKrty52nvbjg1echf0se39eng49` (`cust_level`),
CONSTRAINT `FK2xhr3arwp3tkuae1da4lqv352` FOREIGN KEY (`cust_industry`) REFERENCES `base_dict` (`dict_id`),
CONSTRAINT `FKeh5g36duab8g1h051pdjfwcgd` FOREIGN KEY (`cust_source`) REFERENCES `base_dict` (`dict_id`),
CONSTRAINT `FKrty52nvbjg1echf0se39eng49` FOREIGN KEY (`cust_level`) REFERENCES `base_dict` (`dict_id`),
CONSTRAINT `FK_cst_customer_001` FOREIGN KEY (`cust_source`) REFERENCES `base_dict` (`dict_id`),
CONSTRAINT `FK_cst_customer_002` FOREIGN KEY (`cust_level`) REFERENCES `base_dict` (`dict_id`),
CONSTRAINT `FK_cst_customer_003` FOREIGN KEY (`cust_industry`) REFERENCES `base_dict` (`dict_id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
insert into `cst_customer`(`cust_id`,`cust_name`,`cust_source`,`cust_industry`,`cust_level`,`cust_phone`,`cust_mobile`,`cust_image`) values (1,'张三','3','4','22','23232','3232323',NULL),(2,'赵六','7','2','23','121212121221','212122121212',NULL),(3,'王五','5','3','23','4343434','32',NULL),(4,'赵六','4','4','23','32343433434','32323234243',NULL),(5,'李七','5','6','22','656565656','8787878878',NULL),(6,'大白','7','4','23','2121212121222112','212121212121',NULL),(9,'李四11111','7','1','22','545454545454512121212','6565665652121212','C:/upload/7/11/b4cb855133e641c2a5e832fdc9230cb1.jpg'),(10,'李武','4','5','23','2121221212','21212121221',NULL),(11,'李七','5','6','22','43434343434','43434343434',NULL),(12,'李八','7','3','23','4344343','545454',NULL),(16,'张三44444444444444','6','3','23','131212121212','212121212','');
DROP TABLE IF EXISTS `cst_linkman`;
CREATE TABLE `cst_linkman` (
`lkm_id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '联系人编号(主键)',
`lkm_name` varchar(16) DEFAULT NULL COMMENT '联系人姓名',
`lkm_cust_id` bigint(32) DEFAULT NULL COMMENT '客户id',
`lkm_gender` char(1) DEFAULT NULL COMMENT '联系人性别',
`lkm_phone` varchar(16) DEFAULT NULL COMMENT '联系人办公电话',
`lkm_mobile` varchar(16) DEFAULT NULL COMMENT '联系人手机',
`lkm_email` varchar(64) DEFAULT NULL COMMENT '联系人邮箱',
`lkm_qq` varchar(16) DEFAULT NULL COMMENT '联系人qq',
`lkm_position` varchar(16) DEFAULT NULL COMMENT '联系人职位',
`lkm_memo` varchar(512) DEFAULT NULL COMMENT '联系人备注',
PRIMARY KEY (`lkm_id`),
KEY `FK_cst_linkman_lkm_cust_id` (`lkm_cust_id`),
CONSTRAINT `FKh9yp1nql5227xxcopuxqx2e7q` FOREIGN KEY (`lkm_cust_id`) REFERENCES `cst_customer` (`cust_id`),
CONSTRAINT `FK_cst_linkman_lkm_cust_id` FOREIGN KEY (`lkm_cust_id`) REFERENCES `cst_customer` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
insert into `cst_linkman`(`lkm_id`,`lkm_name`,`lkm_cust_id`,`lkm_gender`,`lkm_phone`,`lkm_mobile`,`lkm_email`,`lkm_qq`,`lkm_position`,`lkm_memo`) values (4,'邓先生',1,'2','146767676768','15655433434333','[email protected]','543434333','教师12121211','21212'),(5,'王先生',1,'1','21212121212','2132323232121','[email protected]','32323232','老师',NULL),(7,'王女士',1,'2','65656565656','65656565656','[email protected]','767676767','老师',NULL),(8,'刘先生',2,'2','5555555555555','66666666666666','[email protected]','54543232332','老师',NULL),(9,'王某某',9,'1','186373676312','23222121212','[email protected]','2121212212','经理',''),(10,'王某某',9,'1','186373676312','23222121212','[email protected]','2121212212','经理',''),(12,'张三222222222222',16,'2','32323232323','32323','[email protected]','3232323','32323',''),(14,'邓先生2222',2,'1','186373676312222','212121212122222','[email protected]','212121221221212','教师','222');
DROP TABLE IF EXISTS `sale_visit`;
CREATE TABLE `sale_visit` (
`visit_id` varchar(32) NOT NULL,
`visit_cust_id` bigint(32) DEFAULT NULL COMMENT '客户id',
`visit_user_id` bigint(32) DEFAULT NULL COMMENT '负责人id',
`visit_time` datetime DEFAULT NULL COMMENT '拜访时间',
`visit_addr` varchar(128) DEFAULT NULL COMMENT '拜访地点',
`visit_detail` varchar(256) DEFAULT NULL COMMENT '拜访详情',
`visit_nexttime` datetime DEFAULT NULL COMMENT '下次拜访时间',
PRIMARY KEY (`visit_id`),
KEY `FK_sale_visit_cust_id` (`visit_cust_id`),
KEY `FK_sale_visit_user_id` (`visit_user_id`),
CONSTRAINT `FKc92iepd26mixxfiris92hccjx` FOREIGN KEY (`visit_user_id`) REFERENCES `sys_user` (`user_id`),
CONSTRAINT `FKgr4aivocixwcvkwxcmc0b4css` FOREIGN KEY (`visit_cust_id`) REFERENCES `cst_customer` (`cust_id`),
CONSTRAINT `FK_sale_visit_cust_id` FOREIGN KEY (`visit_cust_id`) REFERENCES `cst_customer` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `FK_sale_visit_user_id` FOREIGN KEY (`visit_user_id`) REFERENCES `sys_user` (`user_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into `sale_visit`(`visit_id`,`visit_cust_id`,`visit_user_id`,`visit_time`,`visit_addr`,`visit_detail`,`visit_nexttime`) values ('1',1,1,'2020-04-01 00:00:00','深圳宝安区','第一次拜访','2020-04-08 00:00:00'),('2',2,1,'2020-03-27 00:00:00','深圳南山区','洽谈购买','2020-04-08 00:00:00'),('297e453b73c7cfd90173c7d0573a0000',12,2,NULL,'内蒙古呼和浩特市','业务咨询',NULL),('297e453b73c7ef990173c7f0249f0000',9,3,'2020-08-12 00:00:00','内蒙古呼和浩特市','业务咨询','2020-08-20 00:00:00'),('297e453b73c8405c0173c84b92210000',5,3,'2020-08-03 00:00:00','北京2222','业务咨询','2020-08-30 00:00:00'),('297e453b73cc2f470173cc2f5ad90000',6,6,'2020-08-03 00:00:00','广东惠州','业务咨询11','2020-08-23 00:00:00'),('297e453b73ccafe10173ccb2b7980000',5,6,'2020-08-11 00:00:00','广东惠州','洽谈购买212122212','2020-08-05 00:00:00'),('3',1,3,'2020-04-05 00:00:00','广东东莞','洽谈购买','2020-04-08 00:00:00'),('4',3,3,'2020-04-06 00:00:00','广东惠州','洽谈购买','2020-04-08 00:00:00');
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`user_id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '用户id',
`user_code` varchar(32) NOT NULL COMMENT '用户账号',
`user_name` varchar(64) NOT NULL COMMENT '用户名称',
`user_password` varchar(32) NOT NULL COMMENT '用户密码',
`user_state` char(1) NOT NULL COMMENT '1:正常,0:暂停',
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
insert into `sys_user`(`user_id`,`user_code`,`user_name`,`user_password`,`user_state`) values (1,'m0003','小军','123','1'),(2,'lisi','lisi','202cb962ac59075b964b07152d234b70','1'),(3,'m0001','小红','123','1'),(4,'m0001','小明','123','1'),(5,'m0001','小红','123','1'),(6,'zhangsan','张三','e10adc3949ba59abbe56e057f20f883e','1');
环境搭建 + 用户登录注册| CRM客户关系管理系统项目实战一(Struts2+Spring+Hibernate)解析+源代码
客户管理模块(保存查询客户)| CRM客户关系管理系统项目实战二(Struts2+Spring+Hibernate)解析+源代码
客户管理模块(文件上传-图片/删除-修改客户/条件查询客户)| CRM客户关系管理系统项目实战三(Struts2+Spring+Hibernate)解析+源代码
联系人管理-查询列表| CRM客户关系管理系统项目实战四(Struts2+Spring+Hibernate)解析+源代码
联系人管理-添加/修改/删除联系人/条件查询/解决与客户之间的问题| CRM客户关系管理系统项目实战五(Struts2+Spring+Hibernate)解析+源代码
联系人管理-抽取通用DAO| CRM客户关系管理系统项目 实战六(Struts2+Spring+Hibernate)解析+源代码
联系人管理-客户拜访记录| CRM客户关系管理系统项目 实战七(Struts2+Spring+Hibernate)解析+源代码
联系人管理-权限拦截器| CRM客户关系管理系统项目 实战八(Struts2+Spring+Hibernate)解析+源代码
SSH注解整合项目(struts2+Spring+Hibernate)客户关系管理系统
以上是对应源代码实现的步骤以及教程