出行路線規劃系統設計與開發

qq_2812491287發表於2019-02-16
出行路線規劃系統設計與開發
出行路線規劃系統設計與開發登入註冊介面

出行路線規劃系統設計與開發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_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼 ',
	customerName varchar(100) comment '姓名',
	age varchar(100) comment '年齡',
	sex varchar(100) comment '性別',
	phone varchar(100) comment '電話',
	address varchar(100) comment '住址'
) comment '使用者';

使用者路徑表建立語句如下:


create table t_lj(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	title varchar(100) comment '路徑名稱',
	v1 varchar(100) comment '第一點',
	lat1 varchar(100) comment '經緯度1',
	v2 varchar(100) comment '第二點',
	lat2 varchar(100) comment '經緯度2',
	v3 varchar(100) comment '第三點',
	lat3 varchar(100) comment '經緯度3',
	v4 varchar(100) comment '第四點',
	lat4 varchar(100) comment '經緯度4',
	v5 varchar(100) comment '第五點',
	lat5 varchar(100) comment '經緯度5'
) comment '使用者路徑';

出行路線規劃系統設計與開發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_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	address varchar(100)
);
--使用者欄位加註釋
comment on column t_customer.id is '主鍵';
comment on column t_customer.username is '賬號';
comment on column t_customer.password is '密碼 ';
comment on column t_customer.customerName is '姓名';
comment on column t_customer.age is '年齡';
comment on column t_customer.sex is '性別';
comment on column t_customer.phone is '電話';
comment on column t_customer.address is '住址';
--使用者表加註釋
comment on table t_customer is '使用者';

使用者路徑表建立語句如下:


create table t_lj(
	id integer,
	customerId int,
	title varchar(100),
	v1 varchar(100),
	lat1 varchar(100),
	v2 varchar(100),
	lat2 varchar(100),
	v3 varchar(100),
	lat3 varchar(100),
	v4 varchar(100),
	lat4 varchar(100),
	v5 varchar(100),
	lat5 varchar(100)
);
--使用者路徑欄位加註釋
comment on column t_lj.id is '主鍵';
comment on column t_lj.customerId is '使用者';
comment on column t_lj.title is '路徑名稱';
comment on column t_lj.v1 is '第一點';
comment on column t_lj.lat1 is '經緯度1';
comment on column t_lj.v2 is '第二點';
comment on column t_lj.lat2 is '經緯度2';
comment on column t_lj.v3 is '第三點';
comment on column t_lj.lat3 is '經緯度3';
comment on column t_lj.v4 is '第四點';
comment on column t_lj.lat4 is '經緯度4';
comment on column t_lj.v5 is '第五點';
comment on column t_lj.lat5 is '經緯度5';
--使用者路徑表加註釋
comment on table t_lj is '使用者路徑';

oracle特有,對應序列如下:


create sequence s_t_customer;
create sequence s_t_lj;

出行路線規劃系統設計與開發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_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼 
	customerName varchar(100),--姓名
	age varchar(100),--年齡
	sex varchar(100),--性別
	phone varchar(100),--電話
	address varchar(100)--住址
);

使用者路徑表建立語句如下:


--使用者路徑表註釋
create table t_lj(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	title varchar(100),--路徑名稱
	v1 varchar(100),--第一點
	lat1 varchar(100),--經緯度1
	v2 varchar(100),--第二點
	lat2 varchar(100),--經緯度2
	v3 varchar(100),--第三點
	lat3 varchar(100),--經緯度3
	v4 varchar(100),--第四點
	lat4 varchar(100),--經緯度4
	v5 varchar(100),--第五點
	lat5 varchar(100)--經緯度5
);

出行路線規劃系統設計與開發登入後主頁

出行路線規劃系統設計與開發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_customer")
public class Customer {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼 
private String password;
//姓名
private String customerName;
//年齡
private String age;
//性別
private String sex;
//電話
private String phone;
//住址
private String address;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

使用者路徑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_lj")
public class Lj {
//主鍵
@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 title;
//第一點
private String v1;
//經緯度1
private String lat1;
//第二點
private String v2;
//經緯度2
private String lat2;
//第三點
private String v3;
//經緯度3
private String lat3;
//第四點
private String v4;
//經緯度4
private String lat4;
//第五點
private String v5;
//經緯度5
private String lat5;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getLat1() {return lat1;}
public void setLat1(String lat1) {this.lat1 = lat1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getLat2() {return lat2;}
public void setLat2(String lat2) {this.lat2 = lat2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getLat3() {return lat3;}
public void setLat3(String lat3) {this.lat3 = lat3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getLat4() {return lat4;}
public void setLat4(String lat4) {this.lat4 = lat4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getLat5() {return lat5;}
public void setLat5(String lat5) {this.lat5 = lat5;}
}

出行路線規劃系統設計與開發spring springMVC mybatis框架物件(javaBean,pojo)設計:

使用者javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//使用者
public class Customer  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼 
private String password;
//姓名
private String customerName;
//年齡
private String age;
//性別
private String sex;
//電話
private String phone;
//住址
private String address;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

使用者路徑javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//使用者路徑
public class Lj  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//路徑名稱
private String title;
//第一點
private String v1;
//經緯度1
private String lat1;
//第二點
private String v2;
//經緯度2
private String lat2;
//第三點
private String v3;
//經緯度3
private String lat3;
//第四點
private String v4;
//經緯度4
private String lat4;
//第五點
private String v5;
//經緯度5
private String lat5;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getLat1() {return lat1;}
public void setLat1(String lat1) {this.lat1 = lat1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getLat2() {return lat2;}
public void setLat2(String lat2) {this.lat2 = lat2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getLat3() {return lat3;}
public void setLat3(String lat3) {this.lat3 = lat3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getLat4() {return lat4;}
public void setLat4(String lat4) {this.lat4 = lat4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getLat5() {return lat5;}
public void setLat5(String lat5) {this.lat5 = lat5;}
}

相關文章