| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464 |
- package com.uas.ps.inquiry.model;
- import javax.persistence.*;
- import java.io.Serializable;
- import java.util.Date;
- import java.util.Set;
- /**
- * 公共库新增的询价信息表中间表
- *
- * Created by hejq on 2018-01-13.
- */
- @Entity
- @Table(name = "purc$puinquiry", indexes = {
- @Index(name = "puinquiry_enuu_code_sourceapp", columnList = "in_enuu,in_code,in_sourceapp", unique = true)
- })
- public class PurcInquiry implements Serializable {
- /**
- * default serialVersionUID
- */
- private static final long serialVersionUID = 1L;
- /**
- * id
- */
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- @Column(name = "in_id")
- private Long id;
- /**
- * 询价单所属企业UU
- */
- @Column(name = "in_enuu")
- private Long enUU;
- /**
- * 询价企业信息
- */
- @OneToOne
- @JoinColumn(name = "in_enuu", insertable = false, updatable = false)
- private Enterprise enterprise;
- /**
- * 企业名称(方便搜索过滤)
- */
- @Column(name = "in_enname")
- private String enName;
- /**
- * 询价单所属用户UU
- */
- @Column(name = "in_recorderuu")
- private Long recorderUU;
- /**
- * 流水号
- */
- @Column(name = "in_code")
- private String code;
- /**
- * 单据归属日期
- */
- @Column(name = "in_date")
- private Date date;
- /**
- * 录入人
- */
- @Column(name = "in_recorder")
- private String recorder;
- /**
- * 审核人
- */
- @Column(name = "in_auditor")
- private String auditor;
- /**
- * 报价截止日期
- */
- @Column(name = "in_enddate")
- private Date endDate;
- /**
- * 备注
- */
- @Column(name = "in_remark")
- private String remark;
- /**
- * 环保要求
- */
- @Column(name = "in_environment")
- private String environment;
- /**
- * 价格类型
- */
- @Column(name = "in_pricetype")
- private String priceType;
- /**
- * 询价明细
- */
- @OneToMany(mappedBy = "inquiry", cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER)
- @OrderBy("number")
- private Set<PurcInquiryItem> inquiryItems;
- /**
- * 附件
- */
- @OneToMany(fetch = FetchType.EAGER, cascade = { CascadeType.ALL })
- @JoinTable(name = "purc$puinquiryattach", joinColumns = @JoinColumn(name = "in_id", referencedColumnName = "in_id") , inverseJoinColumns = @JoinColumn(name = "at_id", referencedColumnName = "at_id") )
- private Set<Attach> attachs;
- /**
- * 采纳结果
- */
- @Column(name = "in_checked")
- private Short check;
- /**
- * 单据状态(已提交、在录入)
- */
- @Column(name = "in_enterystatus")
- private Integer enteryStatus;
- /**
- * 是否过期
- */
- @Column(name = "in_overdue", insertable = false, updatable = false)
- private Short overdue;
- /**
- * 是否公开
- */
- @Column(name = "in_isopen")
- private Short isOpen;
- /**
- * 收货地址
- */
- @Column(name = "in_ship")
- private String ship;
- /**
- * 是否开票<br>
- * 1. 是<br>
- * 0. 否
- */
- @Column(name = "in_invoice")
- private Short invoice;
- /**
- * 是否含税
- */
- @Column(name = "in_iftax")
- private Short ifTax;
- /**
- * 币别
- */
- @Column(name = "in_currency")
- private String currency;
- /**
- * 询价类型
- */
- @Column(name = "in_inquirytype")
- private String inquirytype;
- /**
- * 应用来源
- */
- @Column(name = "in_sourceapp")
- private String sourceapp;
- /**
- * 如果从erp传过来的,记录id
- */
- @Column(name = "in_erpid")
- private Long erpid;
- /**
- * erp传过来的记录时间
- */
- @Column(name = "in_erpdate")
- private Date erpdate;
- /**
- * 明细总数
- */
- @Column(name = "in_amount")
- private Integer amount;
- /**
- * 是否是标准 1、 是 0 否
- */
- @Column(name = "in_standard")
- private Integer standard;
- /**
- * 已报价明细数
- */
- @Transient
- private Integer quotedAmount;
- /**
- * 替代料报价数
- */
- @Transient
- private Integer replaceQuotedAmount;
- public Enterprise getEnterprise() {
- return enterprise;
- }
- public void setEnterprise(Enterprise enterprise) {
- this.enterprise = enterprise;
- }
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Long getEnUU() {
- return enUU;
- }
- public void setEnUU(Long enUU) {
- this.enUU = enUU;
- }
- public String getEnName() {
- return enName;
- }
- public void setEnName(String enName) {
- this.enName = enName;
- }
- public Long getRecorderUU() {
- return recorderUU;
- }
- public void setRecorderUU(Long recorderUU) {
- this.recorderUU = recorderUU;
- }
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- public Date getDate() {
- return date;
- }
- public void setDate(Date date) {
- this.date = date;
- }
- public String getRecorder() {
- return recorder;
- }
- public void setRecorder(String recorder) {
- this.recorder = recorder;
- }
- public String getAuditor() {
- return auditor;
- }
- public void setAuditor(String auditor) {
- this.auditor = auditor;
- }
- public Date getEndDate() {
- return endDate;
- }
- public void setEndDate(Date endDate) {
- this.endDate = endDate;
- }
- public String getRemark() {
- return remark;
- }
- public void setRemark(String remark) {
- this.remark = remark;
- }
- public String getEnvironment() {
- return environment;
- }
- public void setEnvironment(String environment) {
- this.environment = environment;
- }
- public String getPriceType() {
- return priceType;
- }
- public void setPriceType(String priceType) {
- this.priceType = priceType;
- }
- public Set<PurcInquiryItem> getInquiryItems() {
- return inquiryItems;
- }
- public void setInquiryItems(Set<PurcInquiryItem> inquiryItems) {
- this.inquiryItems = inquiryItems;
- }
- public Set<Attach> getAttachs() {
- return attachs;
- }
- public void setAttachs(Set<Attach> attachs) {
- this.attachs = attachs;
- }
- public Short getCheck() {
- return check;
- }
- public void setCheck(Short check) {
- this.check = check;
- }
- public Integer getEnteryStatus() {
- return enteryStatus;
- }
- public void setEnteryStatus(Integer enteryStatus) {
- this.enteryStatus = enteryStatus;
- }
- public Short getOverdue() {
- return overdue;
- }
- public void setOverdue(Short overdue) {
- this.overdue = overdue;
- }
- public Short getIsOpen() {
- return isOpen;
- }
- public void setIsOpen(Short isOpen) {
- this.isOpen = isOpen;
- }
- public String getShip() {
- return ship;
- }
- public void setShip(String ship) {
- this.ship = ship;
- }
- public Short getInvoice() {
- return invoice;
- }
- public void setInvoice(Short invoice) {
- this.invoice = invoice;
- }
- public Short getIfTax() {
- return ifTax;
- }
- public void setIfTax(Short ifTax) {
- this.ifTax = ifTax;
- }
- public String getCurrency() {
- return currency;
- }
- public void setCurrency(String currency) {
- this.currency = currency;
- }
- public String getInquirytype() {
- return inquirytype;
- }
- public void setInquirytype(String inquirytype) {
- this.inquirytype = inquirytype;
- }
- public String getSourceapp() {
- return sourceapp;
- }
- public void setSourceapp(String sourceapp) {
- this.sourceapp = sourceapp;
- }
- public Long getErpid() {
- return erpid;
- }
- public void setErpid(Long erpid) {
- this.erpid = erpid;
- }
- public Date getErpdate() {
- return erpdate;
- }
- public void setErpdate(Date erpdate) {
- this.erpdate = erpdate;
- }
- public Integer getAmount() {
- return amount;
- }
- public void setAmount(Integer amount) {
- this.amount = amount;
- }
- public Integer getStandard() {
- return standard;
- }
- public void setStandard(Integer standard) {
- this.standard = standard == null ? 0 : standard;
- }
- public Integer getQuotedAmount() {
- return quotedAmount;
- }
- public void setQuotedAmount(Integer quotedAmount) {
- this.quotedAmount = quotedAmount;
- }
- public Integer getReplaceQuotedAmount() {
- return replaceQuotedAmount;
- }
- public void setReplaceQuotedAmount(Integer replaceQuotedAmount) {
- this.replaceQuotedAmount = replaceQuotedAmount;
- }
- }
|