在线理财APP需求分析

**在线理财APP需求分析**

本课题是在线理财系统-APP子系统,该系统分为理财公司和投资者两个角色。

1. 针对投资者的功能

(1)投资者进行注册登录后才可以进行投资。

(2)投资者浏览不同种类的理财产品,查询理财产品具体信息。

(3)投资者可根据自身条件选择理财产品并进行购买。

(4)投资者购买前可输入购买金额,系统按照一定的利率进行计算,将计算结果即预期收益返回给投资者。购买产品后可进行赎回。

(5)投资者浏览理财公司发布的理财知识文章。

(6)投资者可以查看理财公司制定的投资方案。

(7)对个人基本信息的管理,可以修改个人资料和密码修改,还可查看投资记录、交易明细、账户余额。

2. 针对理财公司的功能

(1)理财公司进行注册登录后进行系统。

(2)理财公司发布不同种类的理财产品,比如股票型、混合型、债券型。

(3)理财公司定期根据投资交易记录进行统计。

(4)理财公司为投资者提供一些关于理财知识的文章,避免投资者因缺乏理财知识而盲目投资,导致利益受损。

(5)理财公司介绍自己的基本情况,发布各阶段的运营报告,为客户制定推荐理财方案。

在线理财APP需求分析登录注册界面

在线理财APP需求分析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_buy(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	lccpId int comment '理财产品',
	fee int comment '购买金额',
	hbl double comment '回报率',
	status varchar(100) comment '状态',
	insertDate datetime comment '购买日期',
	remark varchar(100) comment '备注',
	orderNum varchar(100) comment ''
) comment '理财产品购买';

建议表创建语句如下:


create table t_contact(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	phone varchar(100) comment '联系方式',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '建议';

客户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	address varchar(100) comment '地址',
	mobile varchar(100) comment '手机',
	fee int comment '金额'
) comment '客户';

理财产品表创建语句如下:


create table t_lccp(
	id int primary key auto_increment comment '主键',
	lccpName varchar(100) comment '理财产品名称',
	hbl double comment '回报率',
	sj int comment '购买时长',
	remark varchar(100) comment '备注'
) comment '理财产品';

理财方案表创建语句如下:


create table t_lcfa(
	id int primary key auto_increment comment '主键',
	lcfaName varchar(100) comment '理财方案',
	showDate datetime comment '日期',
	remark varchar(100) comment '内容'
) comment '理财方案';

理财文章表创建语句如下:


create table t_lcwz(
	id int primary key auto_increment comment '主键',
	lcwzName varchar(100) comment '理财文章标题',
	showDate datetime comment '日期',
	remark varchar(100) comment '内容'
) comment '理财文章';

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


create table t_message(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	messageContent varchar(100) comment '内容',
	types int comment '',
	insertDate datetime comment '时间'
) comment '信息交流';

订单表创建语句如下:


create table t_order(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	productDetail varchar(100) comment '订单详细',
	allPrice varchar(100) comment '订单总价格',
	status varchar(100) comment '状态',
	orderNum varchar(100) comment '',
	pl varchar(100) comment '',
	insertDate datetime comment ''
) comment '订单';

产品表创建语句如下:


create table t_product(
	id int primary key auto_increment comment '主键',
	productName varchar(100) comment '产品名称',
	productPic varchar(100) comment '图片',
	price varchar(100) comment '价格',
	content varchar(100) comment '内容'
) comment '产品';

购物车表创建语句如下:


create table t_shopcar(
	id int primary key auto_increment comment '主键',
	productId int comment '产品',
	num int comment '数量',
	customerId int comment ''
) comment '购物车';

普通员工表创建语句如下:


create table t_user(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	gh varchar(100) comment '工号',
	mobile varchar(100) comment '手机'
) comment '普通员工';

在线理财APP需求分析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_buy(
	id integer,
	customerId int,
	lccpId int,
	fee int,
	hbl double,
	status varchar(100),
	insertDate datetime,
	remark varchar(100),
	orderNum varchar(100)
);
--理财产品购买字段加注释
comment on column t_buy.id is '主键';
comment on column t_buy.customerId is '用户';
comment on column t_buy.lccpId is '理财产品';
comment on column t_buy.fee is '购买金额';
comment on column t_buy.hbl is '回报率';
comment on column t_buy.status is '状态';
comment on column t_buy.insertDate is '购买日期';
comment on column t_buy.remark is '备注';
comment on column t_buy.orderNum is '';
--理财产品购买表加注释
comment on table t_buy is '理财产品购买';

建议表创建语句如下:


create table t_contact(
	id integer,
	customerId int,
	phone varchar(100),
	content varchar(100),
	insertDate datetime
);
--建议字段加注释
comment on column t_contact.id is '主键';
comment on column t_contact.customerId is '用户';
comment on column t_contact.phone is '联系方式';
comment on column t_contact.content is '内容';
comment on column t_contact.insertDate is '日期';
--建议表加注释
comment on table t_contact is '建议';

客户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	sex varchar(100),
	address varchar(100),
	mobile varchar(100),
	fee int
);
--客户字段加注释
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.name is '姓名';
comment on column t_customer.sex is '性别';
comment on column t_customer.address is '地址';
comment on column t_customer.mobile is '手机';
comment on column t_customer.fee is '金额';
--客户表加注释
comment on table t_customer is '客户';

理财产品表创建语句如下:


create table t_lccp(
	id integer,
	lccpName varchar(100),
	hbl double,
	sj int,
	remark varchar(100)
);
--理财产品字段加注释
comment on column t_lccp.id is '主键';
comment on column t_lccp.lccpName is '理财产品名称';
comment on column t_lccp.hbl is '回报率';
comment on column t_lccp.sj is '购买时长';
comment on column t_lccp.remark is '备注';
--理财产品表加注释
comment on table t_lccp is '理财产品';

理财方案表创建语句如下:


create table t_lcfa(
	id integer,
	lcfaName varchar(100),
	showDate datetime,
	remark varchar(100)
);
--理财方案字段加注释
comment on column t_lcfa.id is '主键';
comment on column t_lcfa.lcfaName is '理财方案';
comment on column t_lcfa.showDate is '日期';
comment on column t_lcfa.remark is '内容';
--理财方案表加注释
comment on table t_lcfa is '理财方案';

理财文章表创建语句如下:


create table t_lcwz(
	id integer,
	lcwzName varchar(100),
	showDate datetime,
	remark varchar(100)
);
--理财文章字段加注释
comment on column t_lcwz.id is '主键';
comment on column t_lcwz.lcwzName is '理财文章标题';
comment on column t_lcwz.showDate is '日期';
comment on column t_lcwz.remark is '内容';
--理财文章表加注释
comment on table t_lcwz is '理财文章';

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


create table t_message(
	id integer,
	customerId int,
	messageContent varchar(100),
	types int,
	insertDate datetime
);
--信息交流字段加注释
comment on column t_message.id is '主键';
comment on column t_message.customerId is '用户';
comment on column t_message.messageContent is '内容';
comment on column t_message.types is '';
comment on column t_message.insertDate is '时间';
--信息交流表加注释
comment on table t_message is '信息交流';

订单表创建语句如下:


create table t_order(
	id integer,
	customerId int,
	productDetail varchar(100),
	allPrice varchar(100),
	status varchar(100),
	orderNum varchar(100),
	pl varchar(100),
	insertDate datetime
);
--订单字段加注释
comment on column t_order.id is '主键';
comment on column t_order.customerId is '用户';
comment on column t_order.productDetail is '订单详细';
comment on column t_order.allPrice is '订单总价格';
comment on column t_order.status is '状态';
comment on column t_order.orderNum is '';
comment on column t_order.pl is '';
comment on column t_order.insertDate is '';
--订单表加注释
comment on table t_order is '订单';

产品表创建语句如下:


create table t_product(
	id integer,
	productName varchar(100),
	productPic varchar(100),
	price varchar(100),
	content varchar(100)
);
--产品字段加注释
comment on column t_product.id is '主键';
comment on column t_product.productName is '产品名称';
comment on column t_product.productPic is '图片';
comment on column t_product.price is '价格';
comment on column t_product.content is '内容';
--产品表加注释
comment on table t_product is '产品';

购物车表创建语句如下:


create table t_shopcar(
	id integer,
	productId int,
	num int,
	customerId int
);
--购物车字段加注释
comment on column t_shopcar.id is '主键';
comment on column t_shopcar.productId is '产品';
comment on column t_shopcar.num is '数量';
comment on column t_shopcar.customerId is '';
--购物车表加注释
comment on table t_shopcar is '购物车';

普通员工表创建语句如下:


create table t_user(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	gh varchar(100),
	mobile varchar(100)
);
--普通员工字段加注释
comment on column t_user.id is '主键';
comment on column t_user.username is '账号';
comment on column t_user.password is '密码';
comment on column t_user.name is '姓名';
comment on column t_user.gh is '工号';
comment on column t_user.mobile is '手机';
--普通员工表加注释
comment on table t_user is '普通员工';

oracle特有,对应序列如下:


create sequence s_t_buy;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_lccp;
create sequence s_t_lcfa;
create sequence s_t_lcwz;
create sequence s_t_message;
create sequence s_t_order;
create sequence s_t_product;
create sequence s_t_shopcar;
create sequence s_t_user;

在线理财APP需求分析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_buy(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	lccpId int,--理财产品
	fee int,--购买金额
	hbl double,--回报率
	status varchar(100),--状态
	insertDate datetime,--购买日期
	remark varchar(100),--备注
	orderNum varchar(100)--
);

建议表创建语句如下:


--建议表注释
create table t_contact(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	phone varchar(100),--联系方式
	content varchar(100),--内容
	insertDate datetime--日期
);

客户表创建语句如下:


--客户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	name varchar(100),--姓名
	sex varchar(100),--性别
	address varchar(100),--地址
	mobile varchar(100),--手机
	fee int--金额
);

理财产品表创建语句如下:


--理财产品表注释
create table t_lccp(
	id int identity(1,1) primary key not null,--主键
	lccpName varchar(100),--理财产品名称
	hbl double,--回报率
	sj int,--购买时长
	remark varchar(100)--备注
);

理财方案表创建语句如下:


--理财方案表注释
create table t_lcfa(
	id int identity(1,1) primary key not null,--主键
	lcfaName varchar(100),--理财方案
	showDate datetime,--日期
	remark varchar(100)--内容
);

理财文章表创建语句如下:


--理财文章表注释
create table t_lcwz(
	id int identity(1,1) primary key not null,--主键
	lcwzName varchar(100),--理财文章标题
	showDate datetime,--日期
	remark varchar(100)--内容
);

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


--信息交流表注释
create table t_message(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	messageContent varchar(100),--内容
	types int,--
	insertDate datetime--时间
);

订单表创建语句如下:


--订单表注释
create table t_order(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	productDetail varchar(100),--订单详细
	allPrice varchar(100),--订单总价格
	status varchar(100),--状态
	orderNum varchar(100),--
	pl varchar(100),--
	insertDate datetime--
);

产品表创建语句如下:


--产品表注释
create table t_product(
	id int identity(1,1) primary key not null,--主键
	productName varchar(100),--产品名称
	productPic varchar(100),--图片
	price varchar(100),--价格
	content varchar(100)--内容
);

购物车表创建语句如下:


--购物车表注释
create table t_shopcar(
	id int identity(1,1) primary key not null,--主键
	productId int,--产品
	num int,--数量
	customerId int--
);

普通员工表创建语句如下:


--普通员工表注释
create table t_user(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	name varchar(100),--姓名
	gh varchar(100),--工号
	mobile varchar(100)--手机
);

在线理财APP需求分析登录后主页

在线理财APP需求分析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_buy")
public class Buy {
//主键
@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 Integer lccpId;
//购买金额
private Integer fee;
//回报率
private Double hbl;
//状态
private String status;
//购买日期
private Date insertDate;
//备注
private String remark;
//
private String orderNum;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getLccpId() {return lccpId;}
public void setLccpId(Integer lccpId) {this.lccpId = lccpId;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Double getHbl() {return hbl;}
public void setHbl(Double hbl) {this.hbl = hbl;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getOrderNum() {return orderNum;}
public void setOrderNum(String orderNum) {this.orderNum = orderNum;}
}

建议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_contact")
public class Contact {
//主键
@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 phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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_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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
//金额
private Integer fee;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
}

理财产品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_lccp")
public class Lccp {
//主键
@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 lccpName;
//回报率
private Double hbl;
//购买时长
private Integer sj;
//备注
private String remark;
public String getLccpName() {return lccpName;}
public void setLccpName(String lccpName) {this.lccpName = lccpName;}
public Double getHbl() {return hbl;}
public void setHbl(Double hbl) {this.hbl = hbl;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

理财方案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_lcfa")
public class Lcfa {
//主键
@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 lcfaName;
//日期
private Date showDate;
//内容
private String remark;
public String getLcfaName() {return lcfaName;}
public void setLcfaName(String lcfaName) {this.lcfaName = lcfaName;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

理财文章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_lcwz")
public class Lcwz {
//主键
@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 lcwzName;
//日期
private Date showDate;
//内容
private String remark;
public String getLcwzName() {return lcwzName;}
public void setLcwzName(String lcwzName) {this.lcwzName = lcwzName;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

信息交流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_message")
public class Message {
//主键
@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 messageContent;
//
private Integer types;
//时间
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getMessageContent() {return messageContent;}
public void setMessageContent(String messageContent) {this.messageContent = messageContent;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
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_order")
public class Order {
//主键
@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 productDetail;
//订单总价格
private String allPrice;
//状态
private String status;
//
private String orderNum;
//
private String pl;
//
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getProductDetail() {return productDetail;}
public void setProductDetail(String productDetail) {this.productDetail = productDetail;}
public String getAllPrice() {return allPrice;}
public void setAllPrice(String allPrice) {this.allPrice = allPrice;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getOrderNum() {return orderNum;}
public void setOrderNum(String orderNum) {this.orderNum = orderNum;}
public String getPl() {return pl;}
public void setPl(String pl) {this.pl = pl;}
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_product")
public class Product {
//主键
@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 productName;
//图片
private String productPic;
//价格
private String price;
//内容
private String content;
public String getProductName() {return productName;}
public void setProductName(String productName) {this.productName = productName;}
public String getProductPic() {return productPic;}
public void setProductPic(String productPic) {this.productPic = productPic;}
public String getPrice() {return price;}
public void setPrice(String price) {this.price = price;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

购物车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_shopcar")
public class Shopcar {
//主键
@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 productId;
//数量
private Integer num;
//
private Integer customerId;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

普通员工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_user")
public class User {
//主键
@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 name;
//工号
private String gh;
//手机
private String mobile;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}

在线理财APP需求分析spring springMVC mybatis框架对象(javaBean,pojo)设计:

理财产品购买javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//理财产品购买
public class Buy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//理财产品
private Integer lccpId;
//购买金额
private Integer fee;
//回报率
private Double hbl;
//状态
private String status;
//购买日期
private Date insertDate;
//备注
private String remark;
//
private String orderNum;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getLccpId() {return lccpId;}
public void setLccpId(Integer lccpId) {this.lccpId = lccpId;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Double getHbl() {return hbl;}
public void setHbl(Double hbl) {this.hbl = hbl;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getOrderNum() {return orderNum;}
public void setOrderNum(String orderNum) {this.orderNum = orderNum;}
}

建议javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//建议
public class Contact  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//联系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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 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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
//金额
private Integer fee;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
}

理财产品javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//理财产品
public class Lccp  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//理财产品名称
private String lccpName;
//回报率
private Double hbl;
//购买时长
private Integer sj;
//备注
private String remark;
public String getLccpName() {return lccpName;}
public void setLccpName(String lccpName) {this.lccpName = lccpName;}
public Double getHbl() {return hbl;}
public void setHbl(Double hbl) {this.hbl = hbl;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

理财方案javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//理财方案
public class Lcfa  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//理财方案
private String lcfaName;
//日期
private Date showDate;
//内容
private String remark;
public String getLcfaName() {return lcfaName;}
public void setLcfaName(String lcfaName) {this.lcfaName = lcfaName;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

理财文章javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//理财文章
public class Lcwz  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//理财文章标题
private String lcwzName;
//日期
private Date showDate;
//内容
private String remark;
public String getLcwzName() {return lcwzName;}
public void setLcwzName(String lcwzName) {this.lcwzName = lcwzName;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

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


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//信息交流
public class Message  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//内容
private String messageContent;
//
private Integer types;
//时间
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getMessageContent() {return messageContent;}
public void setMessageContent(String messageContent) {this.messageContent = messageContent;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
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 Order  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//订单详细
private String productDetail;
//订单总价格
private String allPrice;
//状态
private String status;
//
private String orderNum;
//
private String pl;
//
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getProductDetail() {return productDetail;}
public void setProductDetail(String productDetail) {this.productDetail = productDetail;}
public String getAllPrice() {return allPrice;}
public void setAllPrice(String allPrice) {this.allPrice = allPrice;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getOrderNum() {return orderNum;}
public void setOrderNum(String orderNum) {this.orderNum = orderNum;}
public String getPl() {return pl;}
public void setPl(String pl) {this.pl = pl;}
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 Product  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//产品名称
private String productName;
//图片
private String productPic;
//价格
private String price;
//内容
private String content;
public String getProductName() {return productName;}
public void setProductName(String productName) {this.productName = productName;}
public String getProductPic() {return productPic;}
public void setProductPic(String productPic) {this.productPic = productPic;}
public String getPrice() {return price;}
public void setPrice(String price) {this.price = price;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

购物车javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//购物车
public class Shopcar  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//产品
private Integer productId;
//数量
private Integer num;
//
private Integer customerId;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

普通员工javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//普通员工
public class User  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 name;
//工号
private String gh;
//手机
private String mobile;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}

猜你喜欢

转载自blog.csdn.net/weixin_44062395/article/details/86292180