Contract.java 16.2 KB
Newer Older
manxiaoqiang committed
1 2 3 4 5 6
package common.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
kangxiaoshan committed
7
import java.math.BigDecimal;
manxiaoqiang committed
8
import java.util.Date;
kangxiaoshan committed
9
import java.util.List;
manxiaoqiang committed
10 11 12 13 14 15 16 17 18 19 20

/**
 * Created by mxq on 2018/1/16.
 */
@Entity
public class Contract {
    private Long id;
    private String product;
    private String myBodyName;
    private String myBodyCode;
    private String customerBody;
kangxiaoshan committed
21
    private String email; //客户主账号
manxiaoqiang committed
22
    private String contractCode;
kangxiaoshan committed
23
    private int codeNum;
manxiaoqiang committed
24
    //是否首次签约
kangxiaoshan committed
25
    private String contractType; // 0 首次签约 1 续签 2 合同变更
manxiaoqiang committed
26 27
    private String startDate;
    private String endDate;
manxiaoqiang committed
28
    //套餐
manxiaoqiang committed
29
    private Long priceLevel;
kangxiaoshan committed
30
    private String priceLevelName;
kangxiaoshan committed
31
    private Double money; //合同金额
kangxiaoshan committed
32 33
    private Double rebate; //

manxiaoqiang committed
34
    private Long sale;
kangxiaoshan committed
35
    //产品 trackingio or adi ...
manxiaoqiang committed
36
    private String platform;
kangxiaoshan committed
37
    private String status; // 作废  先回款待录入
manxiaoqiang committed
38
    private String saleName;
kangxiaoshan committed
39

kangxiaoshan committed
40
    private Double payMoney; // 回款金额
kangxiaoshan committed
41
    private Integer backStatus; //  1 未回款 2 部分回款 3 已回款
kangxiaoshan committed
42
    private Long invoice;  // 开票次数
kangxiaoshan committed
43
    private BigDecimal invoiceMoney;  // 发票金额
kangxiaoshan committed
44
    private String createName; // 创建人NAME
manxiaoqiang committed
45
    //合同类型 主套餐 or 增值套餐
manxiaoqiang committed
46
    private String type;
manxiaoqiang committed
47
    private Long priceName;
manxiaoqiang committed
48
    private Boolean old;
kangxiaoshan committed
49
    private Long extraFlow; // 优惠流量
manxiaoqiang committed
50 51

    private Long modifyAccount;
kangxiaoshan committed
52
    private Long createAccount;// 创建人id
manxiaoqiang committed
53 54 55
    private Date modifyTime;
    private Date createTime;
    private String ds;
2  
manxiaoqiang committed
56
    private Boolean virtual;
manxiaoqiang committed
57

kangxiaoshan committed
58 59
    private Long firstBackId;//先回款记录的id

60
    private Long adjustmentFund;// 分摊收入调整金额 (*100的结果)
kangxiaoshan committed
61
    private String adjustmentFundForm; // 表单提交的值(分摊收入调整金额)
62 63 64 65
    private Integer intervalUseDays;//区间使用天数
    private Long incomeExcludingTax; //不含税收入 (*100的结果)
    private Long intervaIncomeShare;//区间分摊收入(*100的结果)
    private Long incomeShareAll;//分摊总收入(*100的结果)
lzxry committed
66
    private Long incomeGross;//累计总收入(*100的结果)合同自开始至选择的结束日期(分摊收入+调整金额)
67

68 69
    private Integer shareSign;//标记是否计算分摊收入 1 计算 0 不计算

lzxry committed
70 71 72



kangxiaoshan committed
73 74 75 76
    private String searchName;

    private List<String> customBodyNames;

1  
kangxiaoshan committed
77

kangxiaoshan committed
78
    /**
kangxiaoshan committed
79
     * 新增字段 20190427
kangxiaoshan committed
80 81 82 83 84 85
     */
    private Long discountTimeLong; // 优惠时长
    private String customerShort;// 客户简称
    private String customerThird;// 三方客户
    private int tradeType; // 行业id
    private Long relationContract;// 关联合同id
kangxiaoshan committed
86 87 88
    private String relationCode;// 关联合同编号
    private String hasDiscount;// 是否有优惠

kangxiaoshan committed
89
    private String typeId;// 合同类型  (保密协议、框架合同、结算单)
kangxiaoshan committed
90
    private String erroMessage;
kangxiaoshan committed
91
    private String tradeName;
1  
kangxiaoshan committed
92

lzxry committed
93 94 95
    private Long barrioId;//行政区域id
    private String barrioName;//行政区域名称
    private String belongGroup;//隶属集团
kangxiaoshan committed
96

lzxry committed
97
    private Double trackFlow;//流量,tkio的
lzxry committed
98 99
    private Double unitPrice;//单价,tkio
    private Double clickFlow;//区间点击数,tkio
lzxry committed
100

manxiaoqiang committed
101 102 103 104 105 106 107 108 109 110
    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }

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

2  
manxiaoqiang committed
111 112 113 114 115 116 117 118
    public Boolean getVirtual() {
        return virtual;
    }

    public void setVirtual(Boolean virtual) {
        this.virtual = virtual;
    }

kangxiaoshan committed
119 120 121 122 123 124 125 126
    public Long getFirstBackId() {
        return firstBackId;
    }

    public void setFirstBackId(Long firstBackId) {
        this.firstBackId = firstBackId;
    }

manxiaoqiang committed
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
    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getMyBodyName() {
        return myBodyName;
    }

    public void setMyBodyName(String myBodyName) {
        this.myBodyName = myBodyName;
    }

    public String getMyBodyCode() {
        return myBodyCode;
    }

    public void setMyBodyCode(String myBodyCode) {
        this.myBodyCode = myBodyCode;
    }

    public String getCustomerBody() {
        return customerBody;
    }

    public void setCustomerBody(String customerBody) {
        this.customerBody = customerBody;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String stratDate) {
        this.startDate = stratDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Long getPriceLevel() {
        return priceLevel;
    }

    public void setPriceLevel(Long priceLevel) {
        this.priceLevel = priceLevel;
    }

kangxiaoshan committed
207
    public Double getMoney() {
manxiaoqiang committed
208 209 210
        return money;
    }

kangxiaoshan committed
211
    public void setMoney(Double money) {
manxiaoqiang committed
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
        this.money = money;
    }

    public Double getRebate() {
        return rebate;
    }

    public void setRebate(Double rebate) {
        this.rebate = rebate;
    }

    public Long getSale() {
        return sale;
    }

    public void setSale(Long sale) {
        this.sale = sale;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public Long getModifyAccount() {
        return modifyAccount;
    }

    public void setModifyAccount(Long modifyAccount) {
        this.modifyAccount = modifyAccount;
    }

    public Long getCreateAccount() {
        return createAccount;
    }

    public void setCreateAccount(Long createAccount) {
        this.createAccount = createAccount;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDs() {
        return ds;
    }

    public void setDs(String ds) {
        this.ds = ds;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

kangxiaoshan committed
287
    public Double getPayMoney() {
manxiaoqiang committed
288 289 290
        return payMoney;
    }

kangxiaoshan committed
291
    public void setPayMoney(Double payMoney) {
manxiaoqiang committed
292 293 294
        this.payMoney = payMoney;
    }

manxiaoqiang committed
295 296 297 298
    public Long getInvoice() {
        return invoice;
    }

kangxiaoshan committed
299
    public BigDecimal getInvoiceMoney() {
kangxiaoshan committed
300 301 302
        return invoiceMoney;
    }

kangxiaoshan committed
303
    public void setInvoiceMoney(BigDecimal invoiceMoney) {
kangxiaoshan committed
304 305 306
        this.invoiceMoney = invoiceMoney;
    }

manxiaoqiang committed
307 308 309 310
    public void setInvoice(Long invoice) {
        this.invoice = invoice;
    }

manxiaoqiang committed
311
    public String getType() {
manxiaoqiang committed
312 313 314
        return type;
    }

manxiaoqiang committed
315
    public void setType(String type) {
manxiaoqiang committed
316 317 318
        this.type = type;
    }

manxiaoqiang committed
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
    public Boolean getOld() {
        return old;
    }

    public Long getExtraFlow() {
        return extraFlow;
    }

    public void setExtraFlow(Long extraFlow) {
        this.extraFlow = extraFlow;
    }

    public void setOld(Boolean old) {
        this.old = old;
    }

kangxiaoshan committed
335 336 337 338 339 340 341 342
    public int getCodeNum() {
        return codeNum;
    }

    public void setCodeNum(int codeNum) {
        this.codeNum = codeNum;
    }

manxiaoqiang committed
343 344 345 346 347 348 349 350 351
    @Transient
    public Long getPriceName() {
        return priceName;
    }

    public void setPriceName(Long priceName) {
        this.priceName = priceName;
    }

manxiaoqiang committed
352 353 354 355 356 357 358 359
    @Transient
    public String getSaleName() {
        return saleName;
    }

    public void setSaleName(String saleName) {
        this.saleName = saleName;
    }
kangxiaoshan committed
360

manxiaoqiang committed
361 362 363 364 365
    @Transient
    public String getPriceLevelName() {
        return priceLevelName;
    }

kangxiaoshan committed
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
    public String getRelationCode() {
        return relationCode;
    }

    public void setRelationCode(String relationCode) {
        this.relationCode = relationCode;
    }

    @Transient
    public String getHasDiscount() {
        return hasDiscount;
    }

    public void setHasDiscount(String hasDiscount) {
        this.hasDiscount = hasDiscount;
    }

kangxiaoshan committed
383 384 385 386 387 388 389 390 391
    @Transient
    public String getErroMessage() {
        return erroMessage;
    }

    public void setErroMessage(String erroMessage) {
        this.erroMessage = erroMessage;
    }

manxiaoqiang committed
392 393 394 395
    public void setPriceLevelName(String priceLevelName) {
        this.priceLevelName = priceLevelName;
    }

manxiaoqiang committed
396 397 398 399 400 401 402 403
    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

kangxiaoshan committed
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
    public Long getDiscountTimeLong() {
        return discountTimeLong;
    }

    public void setDiscountTimeLong(Long discountTimeLong) {
        this.discountTimeLong = discountTimeLong;
    }

    public String getCustomerShort() {
        return customerShort;
    }

    public void setCustomerShort(String customerShort) {
        this.customerShort = customerShort;
    }

    public String getCustomerThird() {
        return customerThird;
    }

    public void setCustomerThird(String customerThird) {
        this.customerThird = customerThird;
    }

    public int getTradeType() {
        return tradeType;
    }

    public void setTradeType(int tradeType) {
        this.tradeType = tradeType;
    }

    public Long getRelationContract() {
        return relationContract;
    }

    public void setRelationContract(Long relationContract) {
        this.relationContract = relationContract;
    }

kangxiaoshan committed
444 445 446 447 448 449 450 451
    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

1  
kangxiaoshan committed
452 453 454 455 456 457 458 459 460
    @Transient
    public String getTradeName() {
        return tradeName;
    }

    public void setTradeName(String tradeName) {
        this.tradeName = tradeName;
    }

461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505
    public Long getAdjustmentFund() {
        return adjustmentFund;
    }

    public void setAdjustmentFund(Long adjustmentFund) {
        this.adjustmentFund = adjustmentFund;
    }

    @Transient
    public Integer getIntervalUseDays() {
        return intervalUseDays;
    }

    public void setIntervalUseDays(Integer intervalUseDays) {
        this.intervalUseDays = intervalUseDays;
    }

    @Transient
    public Long getIncomeExcludingTax() {
        return incomeExcludingTax;
    }

    @Transient
    public void setIncomeExcludingTax(Long incomeExcludingTax) {
        this.incomeExcludingTax = incomeExcludingTax;
    }

    public Long getIntervaIncomeShare() {
        return intervaIncomeShare;
    }

    @Transient
    public void setIntervaIncomeShare(Long intervaIncomeShare) {
        this.intervaIncomeShare = intervaIncomeShare;
    }

    @Transient
    public Long getIncomeShareAll() {
        return incomeShareAll;
    }

    public void setIncomeShareAll(Long incomeShareAll) {
        this.incomeShareAll = incomeShareAll;
    }

kangxiaoshan committed
506 507 508 509 510 511 512 513
    @Transient
    public String getAdjustmentFundForm() {
        return adjustmentFundForm;
    }

    public void setAdjustmentFundForm(String adjustmentFundForm) {
        this.adjustmentFundForm = adjustmentFundForm;
    }
514

lzxry committed
515 516 517
    public Long getBarrioId() {
        return barrioId;
    }
kangxiaoshan committed
518

lzxry committed
519 520 521 522 523 524 525 526 527 528
    public void setBarrioId(Long barrioId) {
        this.barrioId = barrioId;
    }

    public String getBelongGroup() {
        return belongGroup;
    }

    public void setBelongGroup(String belongGroup) {
        this.belongGroup = belongGroup;
manxiaoqiang committed
529
    }
kangxiaoshan committed
530 531 532 533 534 535 536 537

    public Integer getBackStatus() {
        return backStatus;
    }

    public void setBackStatus(Integer backStatus) {
        this.backStatus = backStatus;
    }
kangxiaoshan committed
538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555

    @Transient
    public String getSearchName() {
        return searchName;
    }

    public void setSearchName(String searchName) {
        this.searchName = searchName;
    }

    @Transient
    public List<String> getCustomBodyNames() {
        return customBodyNames;
    }

    public void setCustomBodyNames(List<String> customBodyNames) {
        this.customBodyNames = customBodyNames;
    }
556 557 558 559 560 561 562 563 564


    public Integer getShareSign() {
        return shareSign;
    }

    public void setShareSign(Integer shareSign) {
        this.shareSign = shareSign;
    }
lzxry committed
565 566 567 568 569 570 571 572 573 574

    @Transient
    public String getBarrioName() {
        return barrioName;
    }

    public void setBarrioName(String barrioName) {
        this.barrioName = barrioName;
    }

lzxry committed
575
    public Double getTrackFlow() {
lzxry committed
576 577 578
        return trackFlow;
    }

lzxry committed
579
    public void setTrackFlow(Double trackFlow) {
lzxry committed
580 581
        this.trackFlow = trackFlow;
    }
lzxry committed
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607
    @Transient
    public Double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }

    @Transient
    public Double getClickFlow() {
        return clickFlow;
    }

    public void setClickFlow(Double clickFlow) {
        this.clickFlow = clickFlow;
    }

    @Transient
    public Long getIncomeGross() {
        return incomeGross;
    }

    public void setIncomeGross(Long incomeGross) {
        this.incomeGross = incomeGross;
    }
lzxry committed
608

lzxry committed
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
    @Override
    public String toString() {
        return "Contract{" +
                "id=" + id +
                ", product='" + product + '\'' +
                ", myBodyName='" + myBodyName + '\'' +
                ", myBodyCode='" + myBodyCode + '\'' +
                ", customerBody='" + customerBody + '\'' +
                ", email='" + email + '\'' +
                ", contractCode='" + contractCode + '\'' +
                ", codeNum=" + codeNum +
                ", contractType='" + contractType + '\'' +
                ", startDate='" + startDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", priceLevel=" + priceLevel +
                ", priceLevelName='" + priceLevelName + '\'' +
                ", money=" + money +
                ", rebate=" + rebate +
                ", sale=" + sale +
                ", platform='" + platform + '\'' +
                ", status='" + status + '\'' +
                ", saleName='" + saleName + '\'' +
                ", payMoney=" + payMoney +
                ", backStatus=" + backStatus +
                ", invoice=" + invoice +
                ", invoiceMoney=" + invoiceMoney +
                ", createName='" + createName + '\'' +
                ", type='" + type + '\'' +
                ", priceName=" + priceName +
                ", old=" + old +
                ", extraFlow=" + extraFlow +
                ", modifyAccount=" + modifyAccount +
                ", createAccount=" + createAccount +
                ", modifyTime=" + modifyTime +
                ", createTime=" + createTime +
                ", ds='" + ds + '\'' +
                ", virtual=" + virtual +
                ", firstBackId=" + firstBackId +
                ", adjustmentFund=" + adjustmentFund +
                ", adjustmentFundForm='" + adjustmentFundForm + '\'' +
                ", intervalUseDays=" + intervalUseDays +
                ", incomeExcludingTax=" + incomeExcludingTax +
                ", intervaIncomeShare=" + intervaIncomeShare +
                ", incomeShareAll=" + incomeShareAll +
                ", shareSign=" + shareSign +
                ", searchName='" + searchName + '\'' +
                ", customBodyNames=" + customBodyNames +
                ", discountTimeLong=" + discountTimeLong +
                ", customerShort='" + customerShort + '\'' +
                ", customerThird='" + customerThird + '\'' +
                ", tradeType=" + tradeType +
                ", relationContract=" + relationContract +
                ", relationCode='" + relationCode + '\'' +
                ", hasDiscount='" + hasDiscount + '\'' +
                ", typeId='" + typeId + '\'' +
                ", erroMessage='" + erroMessage + '\'' +
                ", tradeName='" + tradeName + '\'' +
                ", barrioId=" + barrioId +
                ", belongGroup='" + belongGroup + '\'' +
                '}';
    }
manxiaoqiang committed
670
}