基于Android手机平台的“晨起”app设计与实现

**基于Android手机平台的“晨起”app设计与实现**
具体要求:
3. 设计开发“晨起”app。具体功能包括:
(1) 天气预报模块:在每天的清晨起床后为用户播报当天的天气预报,如大范围天气预报,当地天气预报等。
(2) 每日新闻模块:在用户选则该功能时像用户播报最近的相关新闻,如娱乐新闻,财经要闻等等。
(3) 当天行程模块:在用户选中后为用户播报当天日程,如待办事项,工作备忘录等。
(4) 每日英语模块:在用户选中后为用户播报相应的英语材料,如英语四六级,考研,高考等相关内容。
(5)语音特别提醒:为用户提供特定的提醒,如特色闹钟,待办事项提醒等。
(6) 基于Android开发环境完成代码的编写设计,实现手机“晨起”app的开发。(用eclipse)
 
基于Android手机平台的“晨起”app设计与实现登录注册界面

基于Android手机平台的“晨起”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_bwl(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	bwlName varchar(100) comment '备忘录标题',
	content varchar(100) comment '内容'
) comment '备忘录';

用户所在城市表创建语句如下:


create table t_city(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	cityName 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 '姓名',
	phone varchar(100) comment '手机',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	address varchar(100) comment '家庭住址',
	idcard varchar(100) comment '身份证',
	insertDate datetime comment '入库日期',
	headPic varchar(100) comment ''
) comment '用户';

代办事项表创建语句如下:


create table t_dbsx(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	dbsxName varchar(100) comment '标题',
	content varchar(100) comment '内容',
	showDate datetime comment '代办事项日期'
) comment '代办事项';

单位表创建语句如下:


create table t_dw(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '基本信息一',
	v2 varchar(100) comment '基本信息二',
	v3 varchar(100) comment '基本信息三',
	v4 varchar(100) comment '消防预案一',
	v5 varchar(100) comment '消防预案二',
	v6 varchar(100) comment '消防预案三'
) comment '单位';

消防监督表创建语句如下:


create table t_xfjd(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '检查时间',
	v2 varchar(100) comment '检查人',
	v3 varchar(100) comment '受检单位',
	v4 varchar(100) comment '负责人',
	v5 varchar(100) comment '消防器材、设施',
	v6 varchar(100) comment '消防通道',
	v7 varchar(100) comment '消防水源',
	v8 varchar(100) comment '消防标志',
	v9 varchar(100) comment '应急照明',
	v10 varchar(100) comment '用火用电',
	v11 varchar(100) comment '消防重点单位(部位)',
	v12 varchar(100) comment '记录',
	v13 varchar(100) comment '易燃易爆化学品',
	v14 varchar(100) comment '状态'
) comment '消防监督';

新闻表创建语句如下:


create table t_xw(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	showDate varchar(100) comment '日期'
) comment '新闻';

英语播报表创建语句如下:


create table t_yycl(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容',
	url varchar(100) comment 'mp3地址',
	types varchar(100) comment '类型',
	showDate datetime comment '更新日期'
) comment '英语播报';

基于Android手机平台的“晨起”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_bwl(
	id integer,
	customerId int,
	bwlName varchar(100),
	content varchar(100)
);
--备忘录字段加注释
comment on column t_bwl.id is '主键';
comment on column t_bwl.customerId is '用户';
comment on column t_bwl.bwlName is '备忘录标题';
comment on column t_bwl.content is '内容';
--备忘录表加注释
comment on table t_bwl is '备忘录';

用户所在城市表创建语句如下:


create table t_city(
	id integer,
	customerId int,
	cityName varchar(100)
);
--用户所在城市字段加注释
comment on column t_city.id is '主键';
comment on column t_city.customerId is '用户';
comment on column t_city.cityName is '用户所在城市';
--用户所在城市表加注释
comment on table t_city 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),
	phone varchar(100),
	sex varchar(100),
	age varchar(100),
	address varchar(100),
	idcard varchar(100),
	insertDate datetime,
	headPic 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.name is '姓名';
comment on column t_customer.phone is '手机';
comment on column t_customer.sex is '性别';
comment on column t_customer.age is '年龄';
comment on column t_customer.address is '家庭住址';
comment on column t_customer.idcard is '身份证';
comment on column t_customer.insertDate is '入库日期';
comment on column t_customer.headPic is '';
--用户表加注释
comment on table t_customer is '用户';

代办事项表创建语句如下:


create table t_dbsx(
	id integer,
	customerId int,
	dbsxName varchar(100),
	content varchar(100),
	showDate datetime
);
--代办事项字段加注释
comment on column t_dbsx.id is '主键';
comment on column t_dbsx.customerId is '用户';
comment on column t_dbsx.dbsxName is '标题';
comment on column t_dbsx.content is '内容';
comment on column t_dbsx.showDate is '代办事项日期';
--代办事项表加注释
comment on table t_dbsx is '代办事项';

单位表创建语句如下:


create table t_dw(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100)
);
--单位字段加注释
comment on column t_dw.id is '主键';
comment on column t_dw.v1 is '基本信息一';
comment on column t_dw.v2 is '基本信息二';
comment on column t_dw.v3 is '基本信息三';
comment on column t_dw.v4 is '消防预案一';
comment on column t_dw.v5 is '消防预案二';
comment on column t_dw.v6 is '消防预案三';
--单位表加注释
comment on table t_dw is '单位';

消防监督表创建语句如下:


create table t_xfjd(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	v7 varchar(100),
	v8 varchar(100),
	v9 varchar(100),
	v10 varchar(100),
	v11 varchar(100),
	v12 varchar(100),
	v13 varchar(100),
	v14 varchar(100)
);
--消防监督字段加注释
comment on column t_xfjd.id is '主键';
comment on column t_xfjd.v1 is '检查时间';
comment on column t_xfjd.v2 is '检查人';
comment on column t_xfjd.v3 is '受检单位';
comment on column t_xfjd.v4 is '负责人';
comment on column t_xfjd.v5 is '消防器材、设施';
comment on column t_xfjd.v6 is '消防通道';
comment on column t_xfjd.v7 is '消防水源';
comment on column t_xfjd.v8 is '消防标志';
comment on column t_xfjd.v9 is '应急照明';
comment on column t_xfjd.v10 is '用火用电';
comment on column t_xfjd.v11 is '消防重点单位(部位)';
comment on column t_xfjd.v12 is '记录';
comment on column t_xfjd.v13 is '易燃易爆化学品';
comment on column t_xfjd.v14 is '状态';
--消防监督表加注释
comment on table t_xfjd is '消防监督';

新闻表创建语句如下:


create table t_xw(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	showDate varchar(100)
);
--新闻字段加注释
comment on column t_xw.id is '主键';
comment on column t_xw.title is '标题';
comment on column t_xw.pic is '图片';
comment on column t_xw.content is '内容';
comment on column t_xw.showDate is '日期';
--新闻表加注释
comment on table t_xw is '新闻';

英语播报表创建语句如下:


create table t_yycl(
	id integer,
	title varchar(100),
	content varchar(100),
	url varchar(100),
	types varchar(100),
	showDate datetime
);
--英语播报字段加注释
comment on column t_yycl.id is '主键';
comment on column t_yycl.title is '标题';
comment on column t_yycl.content is '内容';
comment on column t_yycl.url is 'mp3地址';
comment on column t_yycl.types is '类型';
comment on column t_yycl.showDate is '更新日期';
--英语播报表加注释
comment on table t_yycl is '英语播报';

oracle特有,对应序列如下:


create sequence s_t_bwl;
create sequence s_t_city;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_dbsx;
create sequence s_t_dw;
create sequence s_t_xfjd;
create sequence s_t_xw;
create sequence s_t_yycl;

基于Android手机平台的“晨起”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_bwl(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	bwlName varchar(100),--备忘录标题
	content varchar(100)--内容
);

用户所在城市表创建语句如下:


--用户所在城市表注释
create table t_city(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	cityName 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),--姓名
	phone varchar(100),--手机
	sex varchar(100),--性别
	age varchar(100),--年龄
	address varchar(100),--家庭住址
	idcard varchar(100),--身份证
	insertDate datetime,--入库日期
	headPic varchar(100)--
);

代办事项表创建语句如下:


--代办事项表注释
create table t_dbsx(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	dbsxName varchar(100),--标题
	content varchar(100),--内容
	showDate datetime--代办事项日期
);

单位表创建语句如下:


--单位表注释
create table t_dw(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--基本信息一
	v2 varchar(100),--基本信息二
	v3 varchar(100),--基本信息三
	v4 varchar(100),--消防预案一
	v5 varchar(100),--消防预案二
	v6 varchar(100)--消防预案三
);

消防监督表创建语句如下:


--消防监督表注释
create table t_xfjd(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--检查时间
	v2 varchar(100),--检查人
	v3 varchar(100),--受检单位
	v4 varchar(100),--负责人
	v5 varchar(100),--消防器材、设施
	v6 varchar(100),--消防通道
	v7 varchar(100),--消防水源
	v8 varchar(100),--消防标志
	v9 varchar(100),--应急照明
	v10 varchar(100),--用火用电
	v11 varchar(100),--消防重点单位(部位)
	v12 varchar(100),--记录
	v13 varchar(100),--易燃易爆化学品
	v14 varchar(100)--状态
);

新闻表创建语句如下:


--新闻表注释
create table t_xw(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100),--内容
	showDate varchar(100)--日期
);

英语播报表创建语句如下:


--英语播报表注释
create table t_yycl(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	content varchar(100),--内容
	url varchar(100),--mp3地址
	types varchar(100),--类型
	showDate datetime--更新日期
);

基于Android手机平台的“晨起”app设计与实现登录后主页

基于Android手机平台的“晨起”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_bwl")
public class Bwl {
//主键
@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 bwlName;
//内容
private String content;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getBwlName() {return bwlName;}
public void setBwlName(String bwlName) {this.bwlName = bwlName;}
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_city")
public class City {
//主键
@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 cityName;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getCityName() {return cityName;}
public void setCityName(String cityName) {this.cityName = cityName;}
}

建议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 phone;
//性别
private String sex;
//年龄
private String age;
//家庭住址
private String address;
//身份证
private String idcard;
//入库日期
private Date insertDate;
//
private String headPic;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

代办事项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_dbsx")
public class Dbsx {
//主键
@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 dbsxName;
//内容
private String content;
//代办事项日期
private Date showDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getDbsxName() {return dbsxName;}
public void setDbsxName(String dbsxName) {this.dbsxName = dbsxName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

单位javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//单位
@Table(name = "t_dw")
public class Dw {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//基本信息一
private String v1;
//基本信息二
private String v2;
//基本信息三
private String v3;
//消防预案一
private String v4;
//消防预案二
private String v5;
//消防预案三
private String v6;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
}

消防监督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_xfjd")
public class Xfjd {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//检查时间
private String v1;
//检查人
private String v2;
//受检单位
private String v3;
//负责人
private String v4;
//消防器材、设施
private String v5;
//消防通道
private String v6;
//消防水源
private String v7;
//消防标志
private String v8;
//应急照明
private String v9;
//用火用电
private String v10;
//消防重点单位(部位)
private String v11;
//记录
private String v12;
//易燃易爆化学品
private String v13;
//状态
private String v14;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getV10() {return v10;}
public void setV10(String v10) {this.v10 = v10;}
public String getV11() {return v11;}
public void setV11(String v11) {this.v11 = v11;}
public String getV12() {return v12;}
public void setV12(String v12) {this.v12 = v12;}
public String getV13() {return v13;}
public void setV13(String v13) {this.v13 = v13;}
public String getV14() {return v14;}
public void setV14(String v14) {this.v14 = v14;}
}

新闻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_xw")
public class Xw {
//主键
@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 title;
//图片
private String pic;
//内容
private String content;
//日期
private String showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
}

英语播报javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//英语播报
@Table(name = "t_yycl")
public class Yycl {
//主键
@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 title;
//内容
private String content;
//mp3地址
private String url;
//类型
private String types;
//更新日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getUrl() {return url;}
public void setUrl(String url) {this.url = url;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

基于Android手机平台的“晨起”app设计与实现spring springMVC mybatis框架对象(javaBean,pojo)设计:

备忘录javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//备忘录
public class Bwl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//备忘录标题
private String bwlName;
//内容
private String content;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getBwlName() {return bwlName;}
public void setBwlName(String bwlName) {this.bwlName = bwlName;}
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 City  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//用户所在城市
private String cityName;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getCityName() {return cityName;}
public void setCityName(String cityName) {this.cityName = cityName;}
}

建议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 phone;
//性别
private String sex;
//年龄
private String age;
//家庭住址
private String address;
//身份证
private String idcard;
//入库日期
private Date insertDate;
//
private String headPic;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

代办事项javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//代办事项
public class Dbsx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//标题
private String dbsxName;
//内容
private String content;
//代办事项日期
private Date showDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getDbsxName() {return dbsxName;}
public void setDbsxName(String dbsxName) {this.dbsxName = dbsxName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

单位javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//单位
public class Dw  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//基本信息一
private String v1;
//基本信息二
private String v2;
//基本信息三
private String v3;
//消防预案一
private String v4;
//消防预案二
private String v5;
//消防预案三
private String v6;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
}

消防监督javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//消防监督
public class Xfjd  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//检查时间
private String v1;
//检查人
private String v2;
//受检单位
private String v3;
//负责人
private String v4;
//消防器材、设施
private String v5;
//消防通道
private String v6;
//消防水源
private String v7;
//消防标志
private String v8;
//应急照明
private String v9;
//用火用电
private String v10;
//消防重点单位(部位)
private String v11;
//记录
private String v12;
//易燃易爆化学品
private String v13;
//状态
private String v14;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getV10() {return v10;}
public void setV10(String v10) {this.v10 = v10;}
public String getV11() {return v11;}
public void setV11(String v11) {this.v11 = v11;}
public String getV12() {return v12;}
public void setV12(String v12) {this.v12 = v12;}
public String getV13() {return v13;}
public void setV13(String v13) {this.v13 = v13;}
public String getV14() {return v14;}
public void setV14(String v14) {this.v14 = v14;}
}

新闻javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//新闻
public class Xw  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//图片
private String pic;
//内容
private String content;
//日期
private String showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
}

英语播报javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//英语播报
public class Yycl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//mp3地址
private String url;
//类型
private String types;
//更新日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getUrl() {return url;}
public void setUrl(String url) {this.url = url;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

猜你喜欢

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