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

基于spring的一汽大众4s店汽车销售系统的设计与实现

基于spring的一汽大众4s店汽车销售系统的设计与实现登录注册界面

基于spring的一汽大众4s店汽车销售系统的设计与实现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_ck(
	id int primary key auto_increment comment '主键',
	pp varchar(100) comment '品牌',
	cx varchar(100) comment '车型',
	bxdh varchar(100) comment '保修单号',
	fwdh varchar(100) comment '服务单号',
	showDate datetime comment '出库时间',
	clbh varchar(100) comment '车辆编号',
	czr varchar(100) comment '操作人'
) comment '出库';

客户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	customerName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '头像'
) comment '客户';

员工表创建语句如下:


create table t_employeename(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	employeeName varchar(100) comment '姓名',
	gh varchar(100) comment '工号',
	zw varchar(100) comment '职务',
	xl varchar(100) comment '学历',
	rzsj datetime comment '入职时间',
	lzsj datetime comment '离职时间',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话'
) comment '员工';

名品汽车库存表创建语句如下:


create table t_kc(
	id int primary key auto_increment comment '主键',
	pp varchar(100) comment '品牌',
	cx varchar(100) comment '车型',
	kcsl int comment '库存数量',
	pz varchar(100) comment '车辆编号'
) comment '名品汽车库存';

客户购买信息表创建语句如下:


create table t_khgc(
	id int primary key auto_increment comment '主键',
	customerId int comment '客户',
	pp varchar(100) comment '品牌',
	cx varchar(100) comment '车型',
	fee int comment '购买金额',
	gmsj datetime comment '购买时间',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '图片',
	fk varchar(100) comment '客户反馈内容',
	fkcode int comment '客户反馈分数',
	employeeId int comment ''
) comment '客户购买信息';

入库表创建语句如下:


create table t_rk(
	id int primary key auto_increment comment '主键',
	pp varchar(100) comment '品牌',
	cx varchar(100) comment '车型',
	bxdh varchar(100) comment '入库单号',
	showDate datetime comment '入库时间',
	clbh varchar(100) comment '车辆编号',
	czr varchar(100) comment '操作人'
) comment '入库';

售后服务表创建语句如下:


create table t_shfw(
	id int primary key auto_increment comment '主键',
	customerId int comment '客户',
	pp varchar(100) comment '品牌',
	cx varchar(100) comment '车型',
	v1 varchar(100) comment '维修记录',
	v2 varchar(100) comment '保修单号',
	v3 varchar(100) comment '服务编号',
	showDate datetime comment '服务时间',
	phone varchar(100) comment '电话',
	status varchar(100) comment '状态'
) comment '售后服务';

客户试驾信息表创建语句如下:


create table t_yysj(
	id int primary key auto_increment comment '主键',
	customerId int comment '客户',
	pp varchar(100) comment '品牌',
	cx varchar(100) comment '车型',
	sjDate datetime comment '试驾时间',
	phone varchar(100) comment '电话',
	status varchar(100) comment '状态'
) comment '客户试驾信息';

基于spring的一汽大众4s店汽车销售系统的设计与实现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_ck(
	id integer,
	pp varchar(100),
	cx varchar(100),
	bxdh varchar(100),
	fwdh varchar(100),
	showDate datetime,
	clbh varchar(100),
	czr varchar(100)
);
--出库字段加注释
comment on column t_ck.id is '主键';
comment on column t_ck.pp is '品牌';
comment on column t_ck.cx is '车型';
comment on column t_ck.bxdh is '保修单号';
comment on column t_ck.fwdh is '服务单号';
comment on column t_ck.showDate is '出库时间';
comment on column t_ck.clbh is '车辆编号';
comment on column t_ck.czr is '操作人';
--出库表加注释
comment on table t_ck is '出库';

客户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	pic varchar(100)
);
--客户字段加注释
comment on column t_customer.id is '主键';
comment on column t_customer.username is '账号';
comment on column t_customer.password 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.pic is '头像';
--客户表加注释
comment on table t_customer is '客户';

员工表创建语句如下:


create table t_employeename(
	id integer,
	username varchar(100),
	password varchar(100),
	employeeName varchar(100),
	gh varchar(100),
	zw varchar(100),
	xl varchar(100),
	rzsj datetime,
	lzsj datetime,
	age varchar(100),
	sex varchar(100),
	phone varchar(100)
);
--员工字段加注释
comment on column t_employeename.id is '主键';
comment on column t_employeename.username is '账号';
comment on column t_employeename.password is '密码 ';
comment on column t_employeename.employeeName is '姓名';
comment on column t_employeename.gh is '工号';
comment on column t_employeename.zw is '职务';
comment on column t_employeename.xl is '学历';
comment on column t_employeename.rzsj is '入职时间';
comment on column t_employeename.lzsj is '离职时间';
comment on column t_employeename.age is '年龄';
comment on column t_employeename.sex is '性别';
comment on column t_employeename.phone is '电话';
--员工表加注释
comment on table t_employeename is '员工';

名品汽车库存表创建语句如下:


create table t_kc(
	id integer,
	pp varchar(100),
	cx varchar(100),
	kcsl int,
	pz varchar(100)
);
--名品汽车库存字段加注释
comment on column t_kc.id is '主键';
comment on column t_kc.pp is '品牌';
comment on column t_kc.cx is '车型';
comment on column t_kc.kcsl is '库存数量';
comment on column t_kc.pz is '车辆编号';
--名品汽车库存表加注释
comment on table t_kc is '名品汽车库存';

客户购买信息表创建语句如下:


create table t_khgc(
	id integer,
	customerId int,
	pp varchar(100),
	cx varchar(100),
	fee int,
	gmsj datetime,
	phone varchar(100),
	pic varchar(100),
	fk varchar(100),
	fkcode int,
	employeeId int
);
--客户购买信息字段加注释
comment on column t_khgc.id is '主键';
comment on column t_khgc.customerId is '客户';
comment on column t_khgc.pp is '品牌';
comment on column t_khgc.cx is '车型';
comment on column t_khgc.fee is '购买金额';
comment on column t_khgc.gmsj is '购买时间';
comment on column t_khgc.phone is '电话';
comment on column t_khgc.pic is '图片';
comment on column t_khgc.fk is '客户反馈内容';
comment on column t_khgc.fkcode is '客户反馈分数';
comment on column t_khgc.employeeId is '';
--客户购买信息表加注释
comment on table t_khgc is '客户购买信息';

入库表创建语句如下:


create table t_rk(
	id integer,
	pp varchar(100),
	cx varchar(100),
	bxdh varchar(100),
	showDate datetime,
	clbh varchar(100),
	czr varchar(100)
);
--入库字段加注释
comment on column t_rk.id is '主键';
comment on column t_rk.pp is '品牌';
comment on column t_rk.cx is '车型';
comment on column t_rk.bxdh is '入库单号';
comment on column t_rk.showDate is '入库时间';
comment on column t_rk.clbh is '车辆编号';
comment on column t_rk.czr is '操作人';
--入库表加注释
comment on table t_rk is '入库';

售后服务表创建语句如下:


create table t_shfw(
	id integer,
	customerId int,
	pp varchar(100),
	cx varchar(100),
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	showDate datetime,
	phone varchar(100),
	status varchar(100)
);
--售后服务字段加注释
comment on column t_shfw.id is '主键';
comment on column t_shfw.customerId is '客户';
comment on column t_shfw.pp is '品牌';
comment on column t_shfw.cx is '车型';
comment on column t_shfw.v1 is '维修记录';
comment on column t_shfw.v2 is '保修单号';
comment on column t_shfw.v3 is '服务编号';
comment on column t_shfw.showDate is '服务时间';
comment on column t_shfw.phone is '电话';
comment on column t_shfw.status is '状态';
--售后服务表加注释
comment on table t_shfw is '售后服务';

客户试驾信息表创建语句如下:


create table t_yysj(
	id integer,
	customerId int,
	pp varchar(100),
	cx varchar(100),
	sjDate datetime,
	phone varchar(100),
	status varchar(100)
);
--客户试驾信息字段加注释
comment on column t_yysj.id is '主键';
comment on column t_yysj.customerId is '客户';
comment on column t_yysj.pp is '品牌';
comment on column t_yysj.cx is '车型';
comment on column t_yysj.sjDate is '试驾时间';
comment on column t_yysj.phone is '电话';
comment on column t_yysj.status is '状态';
--客户试驾信息表加注释
comment on table t_yysj is '客户试驾信息';

oracle特有,对应序列如下:


create sequence s_t_ck;
create sequence s_t_customer;
create sequence s_t_employeename;
create sequence s_t_kc;
create sequence s_t_khgc;
create sequence s_t_rk;
create sequence s_t_shfw;
create sequence s_t_yysj;

基于spring的一汽大众4s店汽车销售系统的设计与实现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_ck(
	id int identity(1,1) primary key not null,--主键
	pp varchar(100),--品牌
	cx varchar(100),--车型
	bxdh varchar(100),--保修单号
	fwdh varchar(100),--服务单号
	showDate datetime,--出库时间
	clbh varchar(100),--车辆编号
	czr varchar(100)--操作人
);

客户表创建语句如下:


--客户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	customerName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	pic varchar(100)--头像
);

员工表创建语句如下:


--员工表注释
create table t_employeename(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	employeeName varchar(100),--姓名
	gh varchar(100),--工号
	zw varchar(100),--职务
	xl varchar(100),--学历
	rzsj datetime,--入职时间
	lzsj datetime,--离职时间
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100)--电话
);

名品汽车库存表创建语句如下:


--名品汽车库存表注释
create table t_kc(
	id int identity(1,1) primary key not null,--主键
	pp varchar(100),--品牌
	cx varchar(100),--车型
	kcsl int,--库存数量
	pz varchar(100)--车辆编号
);

客户购买信息表创建语句如下:


--客户购买信息表注释
create table t_khgc(
	id int identity(1,1) primary key not null,--主键
	customerId int,--客户
	pp varchar(100),--品牌
	cx varchar(100),--车型
	fee int,--购买金额
	gmsj datetime,--购买时间
	phone varchar(100),--电话
	pic varchar(100),--图片
	fk varchar(100),--客户反馈内容
	fkcode int,--客户反馈分数
	employeeId int--
);

入库表创建语句如下:


--入库表注释
create table t_rk(
	id int identity(1,1) primary key not null,--主键
	pp varchar(100),--品牌
	cx varchar(100),--车型
	bxdh varchar(100),--入库单号
	showDate datetime,--入库时间
	clbh varchar(100),--车辆编号
	czr varchar(100)--操作人
);

售后服务表创建语句如下:


--售后服务表注释
create table t_shfw(
	id int identity(1,1) primary key not null,--主键
	customerId int,--客户
	pp varchar(100),--品牌
	cx varchar(100),--车型
	v1 varchar(100),--维修记录
	v2 varchar(100),--保修单号
	v3 varchar(100),--服务编号
	showDate datetime,--服务时间
	phone varchar(100),--电话
	status varchar(100)--状态
);

客户试驾信息表创建语句如下:


--客户试驾信息表注释
create table t_yysj(
	id int identity(1,1) primary key not null,--主键
	customerId int,--客户
	pp varchar(100),--品牌
	cx varchar(100),--车型
	sjDate datetime,--试驾时间
	phone varchar(100),--电话
	status varchar(100)--状态
);

基于spring的一汽大众4s店汽车销售系统的设计与实现登录后主页

基于spring的一汽大众4s店汽车销售系统的设计与实现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_ck")
public class Ck {
//主键
@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 pp;
//车型
private String cx;
//保修单号
private String bxdh;
//服务单号
private String fwdh;
//出库时间
private Date showDate;
//车辆编号
private String clbh;
//操作人
private String czr;
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public String getBxdh() {return bxdh;}
public void setBxdh(String bxdh) {this.bxdh = bxdh;}
public String getFwdh() {return fwdh;}
public void setFwdh(String fwdh) {this.fwdh = fwdh;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getClbh() {return clbh;}
public void setClbh(String clbh) {this.clbh = clbh;}
public String getCzr() {return czr;}
public void setCzr(String czr) {this.czr = czr;}
}

客户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 String username;
//密码 
private String password;
//姓名
private String customerName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
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 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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

员工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_employeename")
public class Employeename {
//主键
@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 gh;
//职务
private String zw;
//学历
private String xl;
//入职时间
private Date rzsj;
//离职时间
private Date lzsj;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
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 getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getXl() {return xl;}
public void setXl(String xl) {this.xl = xl;}
public Date getRzsj() {return rzsj;}
public void setRzsj(Date rzsj) {this.rzsj = rzsj;}
public Date getLzsj() {return lzsj;}
public void setLzsj(Date lzsj) {this.lzsj = lzsj;}
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;}
}

名品汽车库存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_kc")
public class Kc {
//主键
@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 pp;
//车型
private String cx;
//库存数量
private Integer kcsl;
//车辆编号
private String pz;
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public Integer getKcsl() {return kcsl;}
public void setKcsl(Integer kcsl) {this.kcsl = kcsl;}
public String getPz() {return pz;}
public void setPz(String pz) {this.pz = pz;}
}

客户购买信息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_khgc")
public class Khgc {
//主键
@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 customerId;
//品牌
private String pp;
//车型
private String cx;
//购买金额
private Integer fee;
//购买时间
private Date gmsj;
//电话
private String phone;
//图片
private String pic;
//客户反馈内容
private String fk;
//客户反馈分数
private Integer fkcode;
//
private Integer employeeId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Date getGmsj() {return gmsj;}
public void setGmsj(Date gmsj) {this.gmsj = gmsj;}
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 getFk() {return fk;}
public void setFk(String fk) {this.fk = fk;}
public Integer getFkcode() {return fkcode;}
public void setFkcode(Integer fkcode) {this.fkcode = fkcode;}
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
}

入库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_rk")
public class Rk {
//主键
@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 pp;
//车型
private String cx;
//入库单号
private String bxdh;
//入库时间
private Date showDate;
//车辆编号
private String clbh;
//操作人
private String czr;
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public String getBxdh() {return bxdh;}
public void setBxdh(String bxdh) {this.bxdh = bxdh;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getClbh() {return clbh;}
public void setClbh(String clbh) {this.clbh = clbh;}
public String getCzr() {return czr;}
public void setCzr(String czr) {this.czr = czr;}
}

售后服务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_shfw")
public class Shfw {
//主键
@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 customerId;
//品牌
private String pp;
//车型
private String cx;
//维修记录
private String v1;
//保修单号
private String v2;
//服务编号
private String v3;
//服务时间
private Date showDate;
//电话
private String phone;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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_yysj")
public class Yysj {
//主键
@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 customerId;
//品牌
private String pp;
//车型
private String cx;
//试驾时间
private Date sjDate;
//电话
private String phone;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public Date getSjDate() {return sjDate;}
public void setSjDate(Date sjDate) {this.sjDate = sjDate;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

基于spring的一汽大众4s店汽车销售系统的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

出库javaBean创建语句如下:


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

//出库
public class Ck  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//品牌
private String pp;
//车型
private String cx;
//保修单号
private String bxdh;
//服务单号
private String fwdh;
//出库时间
private Date showDate;
//车辆编号
private String clbh;
//操作人
private String czr;
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public String getBxdh() {return bxdh;}
public void setBxdh(String bxdh) {this.bxdh = bxdh;}
public String getFwdh() {return fwdh;}
public void setFwdh(String fwdh) {this.fwdh = fwdh;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getClbh() {return clbh;}
public void setClbh(String clbh) {this.clbh = clbh;}
public String getCzr() {return czr;}
public void setCzr(String czr) {this.czr = czr;}
}

客户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 String username;
//密码 
private String password;
//姓名
private String customerName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
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 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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

员工javaBean创建语句如下:


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

//员工
public class Employeename  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 gh;
//职务
private String zw;
//学历
private String xl;
//入职时间
private Date rzsj;
//离职时间
private Date lzsj;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
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 getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getXl() {return xl;}
public void setXl(String xl) {this.xl = xl;}
public Date getRzsj() {return rzsj;}
public void setRzsj(Date rzsj) {this.rzsj = rzsj;}
public Date getLzsj() {return lzsj;}
public void setLzsj(Date lzsj) {this.lzsj = lzsj;}
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;}
}

名品汽车库存javaBean创建语句如下:


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

//名品汽车库存
public class Kc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//品牌
private String pp;
//车型
private String cx;
//库存数量
private Integer kcsl;
//车辆编号
private String pz;
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public Integer getKcsl() {return kcsl;}
public void setKcsl(Integer kcsl) {this.kcsl = kcsl;}
public String getPz() {return pz;}
public void setPz(String pz) {this.pz = pz;}
}

客户购买信息javaBean创建语句如下:


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

//客户购买信息
public class Khgc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客户
private Integer customerId;
//品牌
private String pp;
//车型
private String cx;
//购买金额
private Integer fee;
//购买时间
private Date gmsj;
//电话
private String phone;
//图片
private String pic;
//客户反馈内容
private String fk;
//客户反馈分数
private Integer fkcode;
//
private Integer employeeId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Date getGmsj() {return gmsj;}
public void setGmsj(Date gmsj) {this.gmsj = gmsj;}
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 getFk() {return fk;}
public void setFk(String fk) {this.fk = fk;}
public Integer getFkcode() {return fkcode;}
public void setFkcode(Integer fkcode) {this.fkcode = fkcode;}
public Integer getEmployeeId() {return employeeId;}
public void setEmployeeId(Integer employeeId) {this.employeeId = employeeId;}
}

入库javaBean创建语句如下:


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

//入库
public class Rk  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//品牌
private String pp;
//车型
private String cx;
//入库单号
private String bxdh;
//入库时间
private Date showDate;
//车辆编号
private String clbh;
//操作人
private String czr;
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public String getBxdh() {return bxdh;}
public void setBxdh(String bxdh) {this.bxdh = bxdh;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getClbh() {return clbh;}
public void setClbh(String clbh) {this.clbh = clbh;}
public String getCzr() {return czr;}
public void setCzr(String czr) {this.czr = czr;}
}

售后服务javaBean创建语句如下:


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

//售后服务
public class Shfw  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客户
private Integer customerId;
//品牌
private String pp;
//车型
private String cx;
//维修记录
private String v1;
//保修单号
private String v2;
//服务编号
private String v3;
//服务时间
private Date showDate;
//电话
private String phone;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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 Yysj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客户
private Integer customerId;
//品牌
private String pp;
//车型
private String cx;
//试驾时间
private Date sjDate;
//电话
private String phone;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPp() {return pp;}
public void setPp(String pp) {this.pp = pp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public Date getSjDate() {return sjDate;}
public void setSjDate(Date sjDate) {this.sjDate = sjDate;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

评论