OilInfo.java 6.69 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
package com.bsth.entity;


import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 油量信息表
 */
@Entity
@Table(name = "bsth_c_ylb")
public class OilInfo implements Serializable {
    @Id
    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;
    /**
     * 开始营运时间(12:12)
     */
    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;
    /**
     * 能源类型,0加油,1充电,2混合
     */
    private int nylx;

    //进场顺序(根据最先出场和最后进场来关联车辆的存油量)
    private int jcsx;

    @Override
    public int hashCode() {
        return this.toString().hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return this.toString().equals(((OilInfo)obj).toString());
    }

    @Override
    public String toString() {
        return "oil_" + this.id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    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 Date getRq() {
        return rq;
    }

    public int getJcsx() {
        return jcsx;
    }

    public void setJcsx(int jcsx) {
        this.jcsx = jcsx;
    }
}