基于android的移动直营店App开发与设计

**基于android的移动直营店App开发与设计**
基于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_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 '手机',
	ewm varchar(100) comment '二维码'
) comment '员工或分销商';

订单表创建语句如下:


create table t_dingdan(
	id int primary key auto_increment comment '主键',
	productId int comment '产品',
	sl varchar(100) comment '数量',
	phone varchar(100) comment '电话',
	customerId 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 '内容',
	typesId int comment ''
) comment '产品';

分类表创建语句如下:


create table t_types(
	id int primary key auto_increment comment '主键',
	typesName varchar(100) 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 '手机',
	ewm varchar(100) 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_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),
	ewm 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.sex is '性别';
comment on column t_customer.address is '地址';
comment on column t_customer.mobile is '手机';
comment on column t_customer.ewm is '二维码';
--员工或分销商表加注释
comment on table t_customer is '员工或分销商';

订单表创建语句如下:


create table t_dingdan(
	id integer,
	productId int,
	sl varchar(100),
	phone varchar(100),
	customerId int,
	insertDate datetime
);
--订单字段加注释
comment on column t_dingdan.id is '主键';
comment on column t_dingdan.productId is '产品';
comment on column t_dingdan.sl is '数量';
comment on column t_dingdan.phone is '电话';
comment on column t_dingdan.customerId is '';
comment on column t_dingdan.insertDate is '';
--订单表加注释
comment on table t_dingdan 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),
	typesId int
);
--产品字段加注释
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 column t_product.typesId is '';
--产品表加注释
comment on table t_product is '产品';

分类表创建语句如下:


create table t_types(
	id integer,
	typesName varchar(100)
);
--分类字段加注释
comment on column t_types.id is '主键';
comment on column t_types.typesName is '分类';
--分类表加注释
comment on table t_types is '分类';

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


create table t_user(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	gh varchar(100),
	mobile varchar(100),
	ewm 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 column t_user.ewm is '二维码';
--普通员工表加注释
comment on table t_user is '普通员工';

oracle特有,对应序列如下:


create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_dingdan;
create sequence s_t_order;
create sequence s_t_product;
create sequence s_t_types;
create sequence s_t_user;

基于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_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),--手机
	ewm varchar(100)--二维码
);

订单表创建语句如下:


--订单表注释
create table t_dingdan(
	id int identity(1,1) primary key not null,--主键
	productId int,--产品
	sl varchar(100),--数量
	phone varchar(100),--电话
	customerId 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),--内容
	typesId int--
);

分类表创建语句如下:


--分类表注释
create table t_types(
	id int identity(1,1) primary key not null,--主键
	typesName varchar(100)--分类
);

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


--普通员工表注释
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),--手机
	ewm varchar(100)--二维码
);

基于android的移动直营店App开发与设计登录后主页

基于android的移动直营店App开发与设计spring springMVC hibernate框架对象(javaBean,pojo)设计:

1:老板登陆 (1)客户管理(查看全部客户) (2)订单管理(可以查看全部订单) (3)财务(可以查看全部财务) (4)员工及分销商管理(添加员工及分销商手机号后,员工及分销商可以用手机号登陆) (5)修改自己密码 (6)直营店(1:店铺设置(店名 电话 地址等)) (2:商品(商品的添加 删除,分类管理等)) (3:店铺二维码(买家扫码可进入商城)) 2:员工及分销商登陆 (1)客户管理(自己的客户) (2)订单管理(自己的订单) (3)财务(自己的财务) (4)修改自己密码 (4)店铺二维码(每个员工及分销商都有自己的二维码,扫那个员工及分销商的二维码就属于那个员工及分销商客户)

建议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 String ewm;
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 String getEwm() {return ewm;}
public void setEwm(String ewm) {this.ewm = ewm;}
}

订单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_dingdan")
public class Dingdan {
//主键
@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 String sl;
//电话
private String phone;
//
private Integer customerId;
//
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public String getSl() {return sl;}
public void setSl(String sl) {this.sl = sl;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;
//
private Integer typesId;
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;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
}

分类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_types")
public class Types {
//主键
@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 typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

普通员工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;
//二维码
private String ewm;
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;}
public String getEwm() {return ewm;}
public void setEwm(String ewm) {this.ewm = ewm;}
}

基于android的移动直营店App开发与设计spring springMVC mybatis框架对象(javaBean,pojo)设计:

建议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 String ewm;
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 String getEwm() {return ewm;}
public void setEwm(String ewm) {this.ewm = ewm;}
}

订单javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//订单
public class Dingdan  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//产品
private Integer productId;
//数量
private String sl;
//电话
private String phone;
//
private Integer customerId;
//
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public String getSl() {return sl;}
public void setSl(String sl) {this.sl = sl;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;
//
private Integer typesId;
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;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
}

分类javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//分类
public class Types  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分类
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

普通员工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;
//二维码
private String ewm;
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;}
public String getEwm() {return ewm;}
public void setEwm(String ewm) {this.ewm = ewm;}
}

猜你喜欢

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