目录
学习目标:
在春招时可以拿出一项值得出手的项目,顺便将毕业设计完成
学习内容:
定义CRM系统进行项目分析和项目系统模块的划分
概念:
客户关系管理是指为企业提高核心竞争力,利用相应的信息技术以及互联网技术协调企业与顾客间在销售、营销和服务上的交互,从而提升其管理方式,向客户提供创新式的个性化的客户交互和服务的过程。其最终目标是吸引新客户、保留老客户以及将已有客户转为忠实客户,增加市场。
系统模块划分
基础模块
包含系统基本的用户登录,退出,记住我,密码修改等基本操作
营销管理
营销机会管理:企业客户的质询需求所建立的信息录入功能,方便销售人员进行后续的客户需求跟踪
营销开发计划:开发计划是更及营销机会而来的,对于企业质询的客户,会有相应的销售人员对于该客户进行具体的沟通交流,此时对于整个CRM系统而言,通过营销开发计划来进行相应的信息管理,提高客户的购买企业铲平的可能性。
客户管理:
客户信息管理:记录客户的基本信息以及他的联系人完成的订单
客户流失管理:对流失客户进行挽回或放弃的操作
服务管理:
为客户提供售后服务以及对对应的客户联系人发送任务来进行对客户的相关服务
数据报表:
通过图表的形式来看出客户构成、客户贡献、客户服务以及客户流失
设计数据库表结构
营销管理模块

客户管理模块
客户信息管理
客户流失管理

服务管理

系统管理
权限模块E-R模型

字典&日志管理
环境搭建
所用技术

引入坐标&插件
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>2.2.2.RELEASE</version>
</parent>
<dependencies>
<!-- web环境 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- aop -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!-- freemarker -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<!-- 测试环境 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.1</version>
</dependency>
<!-- 分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.13</version>
</dependency>
<!-- mysql -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- c3p0 -->
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.5</version>
</dependency>
<!-- commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
<!-- json -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.47</version>
</dependency>
<!-- DevTools 热部署 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
添加配置文件
## 端口号 上下文路径
server:
port: 8080
servlet:
context-path: /crm
## 数据源配置
spring:
datasource:
type: com.mchange.v2.c3p0.ComboPooledDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/crm?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
username: root
password: 不可说
## freemarker
freemarker:
suffix: .ftl
content-type: text/html
charset: UTF-8
template-loader-path: classpath:/views/
## 启用热部署
devtools:
restart:
enabled: true
additional-paths: src/main/java
## mybatis 配置
mybatis:
mapper-locations: classpath:/mappers/*.xml
type-aliases-package: com.xxxx.crm.vo;com.xxxx.crm.query;com.xxxx.crm.dto
configuration:
map-underscore-to-camel-case: true
## pageHelper 分页
pagehelper:
helper-dialect: mysql
## 设置 dao 日志打印级别
logging:
level:
com:
xxxx:
crm:
dao: debug
添加静态资源

添加视图模板

添加应用启动类
package com.xxxx.crm;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Starter {
public static void main(String[] args) {
SpringApplication.run(Starter.class);
}
}
遇到问题:
Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2 not found
就是mybatis-generator这个包一直下载不下来
解决方法:
网上很多方法都试过,去找了mybatis-generator的源码也不行,于是突发奇想选择了去新建一个项目,采用网上的配置IDEA配置mybatis-generator自动生成
新建一个项目,在另外一个项目中完成了关于mybatis-generator的下载然后重启idea便可以了
小东西新学:
看到很多程序员写出来的代码多行注释可以直接打出作者时间什么的,就挺羡慕的,自己去了解了下 IDEA中设置多行注解模板
效果图:

学习时间:
2022/2/21 9:50-12:51、16:43-17:43、18:13-21:49、22:49-0.09
学习心得:
今天在配置环境上耽误了好久,还有在找静态资源和视图模板上面花了太多时间,明天开始要开始完成代码了,希望抓紧时间加速










