Dlb.java 6.7 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
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_dlb")
public class Dlb {
	@Id
	@GeneratedValue
	private Integer id;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date rq;
	private String xlbm;
	private String linename;
	private String ssgsdm;
	private String fgsdm;
	private String nbbm;
	private String jsy;
	private Double czlc=0.0;
	private Double jzlc=0.0;
	//出站存电
	private Double czcd=0.0;
	//进站存电
	private Double jzcd=0.0;
	//充电量
	private Double cdl;
	private int sfkt;
	private String jhsj;
	//耗电
	private Double hd=0.0;
	//损耗
	private Double sh=0.0;
	private String shyy;
	private Double zlc=0.0;
	private int yhlx;

	//当前存入百公里油耗
	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 Date updatetime;
	private int nylx;
	//进场顺序(根据最先出场和最后进场来关联车辆的存电量)
	private int jcsx;
	
	private String jname;
	@Transient
	private String name;
	@Transient
	private String bglyh;
	
	@Transient
	private String xlname;
	
	@Transient
	private String gsname;
	
	@Transient
	private String fgsname;
	
	
	
	private String lp;

	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 getLinename() {
		return linename;
	}

	public void setLinename(String linename) {
		this.linename = linename;
	}

	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 getCzcd() {
		return czcd;
	}

	public void setCzcd(Double czcd) {
		this.czcd = czcd;
	}

	public Double getJzcd() {
		return jzcd;
	}

	public void setJzcd(Double jzcd) {
		this.jzcd = jzcd;
	}

	public Double getCdl() {
		return cdl;
	}

	public void setCdl(Double cdl) {
		this.cdl = cdl;
	}

	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 getHd() {
		return hd;
	}

	public void setHd(Double hd) {
		this.hd = hd;
	}

	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 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";
		}else{
			DecimalFormat df = new DecimalFormat("0.00");
			return df.format(this.getHd()/this.getZlc()*100);
		}
	}

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

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

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

	public String getGsname() {
		return 	BasicData.businessCodeNameMap.get(this.ssgsdm);
	}

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

	public String getName() {
		return BasicData.allPerson.get(this.ssgsdm+"-"+this.jsy);
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getFgsname() {
		return BasicData.businessFgsCodeNameMap.get(this.fgsdm+"_"+this.ssgsdm);
	}

	public void setFgsname(String fgsname) {
		this.fgsname = fgsname;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getLp() {
		return lp;
	}

	public void setLp(String lp) {
		this.lp = lp;
	}

	public String getJname() {
		return jname;
	}

	public void setJname(String jname) {
		this.jname = jname;
	}
	
	
	
}