更多成品,定做java毕业设计,请咨询管理员qq:2812491287

crm系统设计和实现

crm系统设计和实现登录注册界面

crm系统设计和实现mysql数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '超级管理员账号',
	password varchar(100) comment '超级管理员密码'
) comment '超级管理员';
insert into t_admin(username,password) values('admin','123456');

客户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	employeeId int comment '员工',
	customerName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	idcard varchar(100) comment '身份证',
	pic varchar(100) comment '头像',
	address varchar(100) comment '住址'
) comment '客户';

员工表创建语句如下:


create table t_employee(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	employeeName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '头像',
	jb varchar(100) comment '级别',
	status varchar(100) comment '状态'
) comment '员工';

举报表创建语句如下:


create table t_jb(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '举报对象',
	v2 varchar(100) comment '标题',
	v3 varchar(100) comment '内容',
	v4 varchar(100) comment '举报人联系方式(可匿名)',
	insertDate datetime comment '时间'
) comment '举报';

交易信息表创建语句如下:


create table t_jy(
	id int primary key auto_increment comment '主键',
	employeeId int comment '员工',
	customerId int comment '用户',
	cpmc varchar(100) comment '产品名称',
	bj int comment '报价',
	htUrl varchar(100) comment '合同文件',
	content varchar(100) comment '备注',
	showDate datetime comment '交易日期'
) comment '交易信息';

来往信息表创建语句如下:


create table t_lwxx(
	id int primary key auto_increment comment '主键',
	employeeId int comment '员工',
	customerId int comment '用户',
	types varchar(100) comment '类型',
	content varchar(100) comment '内容',
	showDate datetime comment '日期'
) comment '来往信息';

crm系统设计和实现oracle数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';

客户表创建语句如下:


create table t_customer(
	id integer,
	employeeId int,
	customerName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	idcard varchar(100),
	pic varchar(100),
	address varchar(100)
);
--客户字段加注释
comment on column t_customer.id is '主键';
comment on column t_customer.employeeId is '员工';
comment on column t_customer.customerName is '姓名';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '性别';
comment on column t_customer.phone is '电话';
comment on column t_customer.idcard is '身份证';
comment on column t_customer.pic is '头像';
comment on column t_customer.address is '住址';
--客户表加注释
comment on table t_customer is '客户';

员工表创建语句如下:


create table t_employee(
	id integer,
	username varchar(100),
	password varchar(100),
	employeeName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	pic varchar(100),
	jb varchar(100),
	status varchar(100)
);
--员工字段加注释
comment on column t_employee.id is '主键';
comment on column t_employee.username is '账号';
comment on column t_employee.password is '密码';
comment on column t_employee.employeeName is '姓名';
comment on column t_employee.age is '年龄';
comment on column t_employee.sex is '性别';
comment on column t_employee.phone is '电话';
comment on column t_employee.pic is '头像';
comment on column t_employee.jb is '级别';
comment on column t_employee.status is '状态';
--员工表加注释
comment on table t_employee is '员工';

举报表创建语句如下:


create table t_jb(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	insertDate datetime
);
--举报字段加注释
comment on column t_jb.id is '主键';
comment on column t_jb.v1 is '举报对象';
comment on column t_jb.v2 is '标题';
comment on column t_jb.v3 is '内容';
comment on column t_jb.v4 is '举报人联系方式(可匿名)';
comment on column t_jb.insertDate is '时间';
--举报表加注释
comment on table t_jb is '举报';

交易信息表创建语句如下:


create table t_jy(
	id integer,
	employeeId int,
	customerId int,
	cpmc varchar(100),
	bj int,
	htUrl varchar(100),
	content varchar(100),
	showDate datetime
);
--交易信息字段加注释
comment on column t_jy.id is '主键';
comment on column t_jy.employeeId is '员工';
comment on column t_jy.customerId is '用户';
comment on column t_jy.cpmc is '产品名称';
comment on column t_jy.bj is '报价';
comment on column t_jy.htUrl is '合同文件';
comment on column t_jy.content is '备注';
comment on column t_jy.showDate is '交易日期';
--交易信息表加注释
comment on table t_jy is '交易信息';

来往信息表创建语句如下:


create table t_lwxx(
	id integer,
	employeeId int,
	customerId int,
	types varchar(100),
	content varchar(100),
	showDate datetime
);
--来往信息字段加注释
comment on column t_lwxx.id is '主键';
comment on column t_lwxx.employeeId is '员工';
comment on column t_lwxx.customerId is '用户';
comment on column t_lwxx.types is '类型';
comment on column t_lwxx.content is '内容';
comment on column t_lwxx.showDate is '日期';
--来往信息表加注释
comment on table t_lwxx is '来往信息';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_employee;
create sequence s_t_jb;
create sequence s_t_jy;
create sequence s_t_lwxx;

crm系统设计和实现sqlserver数据库版本源码:

超级管理员表创建语句如下:


--超级管理员
create table t_admin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--超级管理员账号
	password varchar(100)--超级管理员密码
);
insert into t_admin(username,password) values('admin','123456');

客户表创建语句如下:


--客户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	employeeId int,--员工
	customerName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	idcard varchar(100),--身份证
	pic varchar(100),--头像
	address varchar(100)--住址
);

员工表创建语句如下:


--员工表注释
create table t_employee(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	employeeName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	pic varchar(100),--头像
	jb varchar(100),--级别
	status varchar(100)--状态
);

举报表创建语句如下:


--举报表注释
create table t_jb(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--举报对象
	v2 varchar(100),--标题
	v3 varchar(100),--内容
	v4 varchar(100),--举报人联系方式(可匿名)
	insertDate datetime--时间
);

交易信息表创建语句如下:


--交易信息表注释
create table t_jy(
	id int identity(1,1) primary key not null,--主键
	employeeId int,--员工
	customerId int,--用户
	cpmc varchar(100),--产品名称
	bj int,--报价
	htUrl varchar(100),--合同文件
	content varchar(100),--备注
	showDate datetime--交易日期
);

来往信息表创建语句如下:


--来往信息表注释
create table t_lwxx(
	id int identity(1,1) primary key not null,--主键
	employeeId int,--员工
	customerId int,--用户
	types varchar(100),--类型
	content varchar(100),--内容
	showDate datetime--日期
);

crm系统设计和实现登录后主页

crm系统设计和实现spring+springMVC+hibernate框架对象(javaBean,pojo)设计:

客户javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//客户
@Table(name = "t_customer")
public class Customer {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer employeeId;
//姓名
private String customerName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String idcard;
//头像
private String pic;
//住址
private String address;
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

员工javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//员工
@Table(name = "t_employee")
public class Employee {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String employeeName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
//级别
private String jb;
//状态
private String status;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getEmployeeName() {return employeeName;}
public void setEmployeeName(String employeeName) {this.employeeName = employeeName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getJb() {return jb;}
public void setJb(String jb) {this.jb = jb;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

举报javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//举报
@Table(name = "t_jb")
public class Jb {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//举报对象
private String v1;
//标题
private String v2;
//内容
private String v3;
//举报人联系方式(可匿名)
private String v4;
//时间
private Date insertDate;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

交易信息javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//交易信息
@Table(name = "t_jy")
public class Jy {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer employeeId;
//用户
private Integer customerId;
//产品名称
private String cpmc;
//报价
private Integer bj;
//合同文件
private String htUrl;
//备注
private String content;
//交易日期
private Date showDate;
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getCpmc() {return cpmc;}
public void setCpmc(String cpmc) {this.cpmc = cpmc;}
public Integer getBj() {return bj;}
public void setBj(Integer bj) {this.bj = bj;}
public String getHtUrl() {return htUrl;}
public void setHtUrl(String htUrl) {this.htUrl = htUrl;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

来往信息javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//来往信息
@Table(name = "t_lwxx")
public class Lwxx {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer employeeId;
//用户
private Integer customerId;
//类型
private String types;
//内容
private String content;
//日期
private Date showDate;
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

crm系统设计和实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

客户javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//客户
public class Customer  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer employeeId;
//姓名
private String customerName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String idcard;
//头像
private String pic;
//住址
private String address;
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

员工javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//员工
public class Employee  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String employeeName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
//级别
private String jb;
//状态
private String status;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getEmployeeName() {return employeeName;}
public void setEmployeeName(String employeeName) {this.employeeName = employeeName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getJb() {return jb;}
public void setJb(String jb) {this.jb = jb;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

举报javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//举报
public class Jb  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//举报对象
private String v1;
//标题
private String v2;
//内容
private String v3;
//举报人联系方式(可匿名)
private String v4;
//时间
private Date insertDate;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

交易信息javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//交易信息
public class Jy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer employeeId;
//用户
private Integer customerId;
//产品名称
private String cpmc;
//报价
private Integer bj;
//合同文件
private String htUrl;
//备注
private String content;
//交易日期
private Date showDate;
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getCpmc() {return cpmc;}
public void setCpmc(String cpmc) {this.cpmc = cpmc;}
public Integer getBj() {return bj;}
public void setBj(Integer bj) {this.bj = bj;}
public String getHtUrl() {return htUrl;}
public void setHtUrl(String htUrl) {this.htUrl = htUrl;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

来往信息javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//来往信息
public class Lwxx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer employeeId;
//用户
private Integer customerId;
//类型
private String types;
//内容
private String content;
//日期
private Date showDate;
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

评论