package cn.com.liandisys.ycjt.ggcx.publicBicycleSat.model;

import java.util.Date;

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 cn.com.liandisys.ycjt.ggcx.gjcsswz.controller.GetBaiduGps;

/**
 *     
 * 项目名称：ycjt-ggcx    
 * 类名称：PublicBicycleSatEntity    
 * 类描述：    公共自行车站
 * 创建人：wangqx
 * 创建时间：2016年11月23日 下午2:42:04    
 * 修改人：wangqx    
 * 修改时间：2016年11月23日 下午2:42:04    
 * 修改备注：    
 * @version     
 *
 */
@Entity
@Table(name = "ISN_BICYCLE_DES")
public class PublicBicycleSatEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "STATION_ID")
    private String stationId;

    @Column(name = "STATION_NAME")
    private String stationName;

    @Column(name = "LOCATION")
    private String location;

    @Column(name = "LONGITUDE")
    private Double longitude;

    @Column(name = "LATITUDE")
    private Double latitude;

    @Column(name = "CAPACITY")
    private int capacity;

    @Column(name = "AVAIL_BIKE")
    private int availbleBike;

    @Column(name = "REMARK")
    private String remark;

    @Column(name = "STSTUS_FLG")
    private String ststusFlg;

    @Column(name = "DELETEFLAG")
    private String deleteflag;

    @Column(name = "CREATE_PERSON")
    private String createPerson;

    @Column(name = "CREATE_TIME")
    private Date createTime;

    @Column(name = "UPDATE_PERSON")
    private String updatePerson;

    @Column(name = "UPDATE_TIME")
    private Date updateTime;

    public String getStationId() {

        return stationId;
    }

    public void setStationId(String stationId) {

        this.stationId = stationId;
    }

    public String getStationName() {

        return stationName;
    }

    public void setStationName(String stationName) {

        this.stationName = stationName;
    }

    public String getLocation() {

        return location;
    }

    public void setLocation(String location) {

        this.location = location;
    }

    public Double getLongitude() {

        double[] ab = GetBaiduGps.gcj2bd(Double.valueOf(latitude), Double.valueOf(longitude));
        Double newlongitude = ab[1];
        return newlongitude;
        //        return longitude;
    }

    public void setLongitude(Double longitude) {

        this.longitude = longitude;
    }

    public Double getLatitude() {

        double[] ab = GetBaiduGps.gcj2bd(Double.valueOf(latitude), Double.valueOf(longitude));
        Double newllatitude = ab[0];
        return newllatitude;
        //        return latitude;
    }

    public void setLatitude(Double latitude) {

        this.latitude = latitude;
    }

    public int getCapacity() {

        return capacity;
    }

    public void setCapacity(int capacity) {

        this.capacity = capacity;
    }

    public String getRemark() {

        return remark;
    }

    public void setRemark(String remark) {

        this.remark = remark;
    }

    public String getStstusFlg() {

        return ststusFlg;
    }

    public void setStstusFlg(String ststusFlg) {

        this.ststusFlg = ststusFlg;
    }

    public String getDeleteflag() {

        return deleteflag;
    }

    public void setDeleteflag(String deleteflag) {

        this.deleteflag = deleteflag;
    }

    public String getCreatePerson() {

        return createPerson;
    }

    public void setCreatePerson(String createPerson) {

        this.createPerson = createPerson;
    }

    public Date getCreateTime() {

        return createTime;
    }

    public void setCreateTime(Date createTime) {

        this.createTime = createTime;
    }

    public String getUpdatePerson() {

        return updatePerson;
    }

    public void setUpdatePerson(String updatePerson) {

        this.updatePerson = updatePerson;
    }

    public Date getUpdateTime() {

        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {

        this.updateTime = updateTime;
    }

    public int getAvailbleBike() {

        return availbleBike;
    }

    public void setAvailbleBike(int availbleBike) {

        this.availbleBike = availbleBike;
    }

}
