Ylb.java 5.61 KB
package com.bsth.entity.oil;

import java.text.DecimalFormat;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

import com.bsth.data.BasicData;

@Entity
@Table(name = "bsth_c_ylb")
public class Ylb {
	@Id
	@GeneratedValue
	private Integer id;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date rq;
	private String xlbm;
	private String ssgsdm;
	private String fgsdm;
	private String nbbm;
	private String jsy;
	private Double czlc=0.0;
	private Double jzlc=0.0;
	private Double czyl=0.0;
	private Double jzyl=0.0;
	private Double jzl;
	private int sfkt;
	private String jhsj;
	private Double yh=0.0;
	private Double sh=0.0;
	private String shyy;
	private Double zlc=0.0;
	private int yhlx;
	private String rylx;
	private Double ns=0.0;
	private Double fyylc=0.0;
	private Double jhzlc=0.0;
	private Double jhfyylc=0.0;
	private int jhzbc;
	private int jhbc;
	private int sjzbc;
	private int sjbc;
	private String edituser;
	private Date edittime;
	private Date createtime;
	private int nylx;
	//进场顺序(根据最先出场和最后进场来关联车辆的存油量)
	private int jcsx;
	
	@Transient
	private String bglyh;
	
	@Transient
	private String xlname;
	
	@Transient
	private String gsname;
	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public Date getRq() {
		return rq;
	}

	public void setRq(Date rq) {
		this.rq = rq;
	}

	public String getXlbm() {
		return xlbm;
	}

	public void setXlbm(String xlbm) {
		this.xlbm = xlbm;
	}
	public String getSsgsdm() {
		return ssgsdm;
	}
	public void setSsgsdm(String ssgsdm) {
		this.ssgsdm = ssgsdm;
	}
	public String getFgsdm() {
		return fgsdm;
	}
	public void setFgsdm(String fgsdm) {
		this.fgsdm = fgsdm;
	}
	public String getNbbm() {
		return nbbm;
	}
	public void setNbbm(String nbbm) {
		this.nbbm = nbbm;
	}
	public String getJsy() {
		return jsy;
	}
	public void setJsy(String jsy) {
		this.jsy = jsy;
	}
	public Double getCzlc() {
		return czlc;
	}
	public void setCzlc(Double czlc) {
		this.czlc = czlc;
	}
	public Double getJzlc() {
		return jzlc;
	}
	public void setJzlc(Double jzlc) {
		this.jzlc = jzlc;
	}
	public Double getCzyl() {
		return czyl;
	}
	public void setCzyl(Double czyl) {
		this.czyl = czyl;
	}
	public Double getJzyl() {
		return jzyl;
	}
	public void setJzyl(Double jzyl) {
		this.jzyl = jzyl;
	}
	public Double getJzl() {
		return jzl;
	}
	public void setJzl(Double jzl) {
		this.jzl = jzl;
	}
	public int getSfkt() {
		return sfkt;
	}
	public void setSfkt(int sfkt) {
		this.sfkt = sfkt;
	}
	public String getJhsj() {
		return jhsj;
	}
	public void setJhsj(String jhsj) {
		this.jhsj = jhsj;
	}
	public Double getYh() {
		return yh;
	}
	public void setYh(Double yh) {
		this.yh = yh;
	}
	public Double getSh() {
		return sh;
	}
	public void setSh(Double sh) {
		this.sh = sh;
	}
	public String getShyy() {
		return shyy;
	}
	public void setShyy(String shyy) {
		this.shyy = shyy;
	}
	public Double getZlc() {
		return zlc;
	}
	public void setZlc(Double zlc) {
		this.zlc = zlc;
	}
	public int getYhlx() {
		return yhlx;
	}
	public void setYhlx(int yhlx) {
		this.yhlx = yhlx;
	}
	public String getRylx() {
		return rylx;
	}
	public void setRylx(String rylx) {
		this.rylx = rylx;
	}
	public Double getNs() {
		return ns;
	}
	public void setNs(Double ns) {
		this.ns = ns;
	}
	public Double getFyylc() {
		return fyylc;
	}
	public void setFyylc(Double fyylc) {
		this.fyylc = fyylc;
	}
	public Double getJhzlc() {
		return jhzlc;
	}
	public void setJhzlc(Double jhzlc) {
		this.jhzlc = jhzlc;
	}
	public Double getJhfyylc() {
		return jhfyylc;
	}
	public void setJhfyylc(Double jhfyylc) {
		this.jhfyylc = jhfyylc;
	}
	public int getJhzbc() {
		return jhzbc;
	}
	public void setJhzbc(int jhzbc) {
		this.jhzbc = jhzbc;
	}
	public int getJhbc() {
		return jhbc;
	}
	public void setJhbc(int jhbc) {
		this.jhbc = jhbc;
	}
	public int getSjzbc() {
		return sjzbc;
	}
	public void setSjzbc(int sjzbc) {
		this.sjzbc = sjzbc;
	}
	public int getSjbc() {
		return sjbc;
	}
	public void setSjbc(int sjbc) {
		this.sjbc = sjbc;
	}
	public String getEdituser() {
		return edituser;
	}
	public void setEdituser(String edituser) {
		this.edituser = edituser;
	}
	public Date getEdittime() {
		return edittime;
	}
	public void setEdittime(Date edittime) {
		this.edittime = edittime;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public int getNylx() {
		return nylx;
	}
	public void setNylx(int nylx) {
		this.nylx = nylx;
	}
	
	public int getJcsx(){
		return jcsx;
	}
	
	public void setJcsx(int jcsx){
		this.jcsx=jcsx;
	}

	public String getBglyh() {
		if(this.getZlc()==0){
			return "0.00";
		}else{
			DecimalFormat df = new DecimalFormat("0.00");
			return df.format(this.getYh()/this.getZlc()*100);
		}
	}

	public void setBglyh(String bglyh) {
		this.bglyh = bglyh;
	}

	public String getXlname() {
		return BasicData.lineCode2NameMap.get(this.xlbm);
	}

	public void setXlname(String xlname) {
		this.xlname = xlname;
	}

	public String getGsname() {
		return 	BasicData.nbbm2CompanyCodeMap.get(this.nbbm);
	}

	public void setGsname(String gsname) {
		this.gsname = gsname;
	}
	
	
	
	
	
}