1. 程式人生 > >線上理財APP需求分析

線上理財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;}
}