PurcInquiryInfo.java 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. package com.uas.ps.inquiry.model;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. import com.fasterxml.jackson.annotation.JsonIgnore;
  4. import javax.persistence.*;
  5. import java.io.Serializable;
  6. import java.util.Date;
  7. import java.util.Set;
  8. /**
  9. * 公共库新增的询价信息表中间表(查询信息)
  10. *
  11. * @author hejq
  12. * @date 2018-01-17 15:46
  13. */
  14. @Entity
  15. @Table(name = "purc$puinquiry")
  16. public class PurcInquiryInfo implements Serializable {
  17. /**
  18. * default serialVersionUID
  19. */
  20. private static final long serialVersionUID = 1L;
  21. /**
  22. * id
  23. */
  24. @Id
  25. @GeneratedValue(strategy = GenerationType.IDENTITY)
  26. @Column(name = "in_id")
  27. private Long id;
  28. /**
  29. * 询价单所属企业UU
  30. */
  31. @Column(name = "in_enuu")
  32. private Long enUU;
  33. /**
  34. * 询价企业
  35. */
  36. @OneToOne(cascade = { CascadeType.MERGE, CascadeType.REFRESH })
  37. @JoinColumn(name = "in_enuu", insertable = false, updatable = false)
  38. private Enterprise enterprise;
  39. /**
  40. * 询价单所属用户UU
  41. */
  42. @Column(name = "in_recorderuu")
  43. private Long recorderUU;
  44. /**
  45. * 流水号
  46. */
  47. @Column(name = "in_code")
  48. private String code;
  49. /**
  50. * 单据归属日期
  51. */
  52. @Column(name = "in_date")
  53. private Date date;
  54. /**
  55. * 录入人
  56. */
  57. @Column(name = "in_recorder")
  58. private String recorder;
  59. /**
  60. * 审核人
  61. */
  62. @Column(name = "in_auditor")
  63. private String auditor;
  64. /**
  65. * 报价截止日期
  66. */
  67. @Column(name = "in_enddate")
  68. private Date endDate;
  69. /**
  70. * 备注
  71. */
  72. @Column(name = "in_remark")
  73. private String remark;
  74. /**
  75. * 环保要求
  76. */
  77. @Column(name = "in_environment")
  78. private String environment;
  79. /**
  80. * 价格类型
  81. */
  82. @Column(name = "in_pricetype")
  83. private String priceType;
  84. /**
  85. * 询价明细
  86. */
  87. @OneToMany(mappedBy = "inquiry", cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER)
  88. @OrderBy("number")
  89. private Set<PurcInquiryItemInfo> inquiryItems;
  90. /**
  91. * 附件
  92. */
  93. @OneToMany(fetch = FetchType.EAGER, cascade = { CascadeType.ALL })
  94. @JoinTable(name = "purc$puinquiryattach", joinColumns = @JoinColumn(name = "in_id", referencedColumnName = "in_id") , inverseJoinColumns = @JoinColumn(name = "at_id", referencedColumnName = "at_id") )
  95. private Set<Attach> attachs;
  96. /**
  97. * 采纳结果
  98. */
  99. @Column(name = "in_checked")
  100. private Short check;
  101. /**
  102. * 单据状态(已提交、在录入)
  103. */
  104. @Column(name = "in_enterystatus")
  105. private Integer enteryStatus;
  106. /**
  107. * 是否过期
  108. */
  109. @Column(name = "in_overdue", insertable = false, updatable = false)
  110. private Short overdue;
  111. /**
  112. * 是否公开
  113. */
  114. @Column(name = "in_isopen")
  115. private Short isOpen;
  116. /**
  117. * 收货地址
  118. */
  119. @Column(name = "in_ship")
  120. private String ship;
  121. /**
  122. * 是否开票<br>
  123. * 1. 是<br>
  124. * 0. 否
  125. */
  126. @Column(name = "in_invoice")
  127. private Short invoice;
  128. /**
  129. * 是否含税
  130. */
  131. @Column(name = "in_iftax")
  132. private Short ifTax;
  133. /**
  134. * 币别
  135. */
  136. @Column(name = "in_currency")
  137. private String currency;
  138. /**
  139. * 询价类型
  140. */
  141. @Column(name = "in_inquirytype")
  142. private String inquirytype;
  143. /**
  144. * 应用来源
  145. */
  146. @Column(name = "in_sourceapp")
  147. private String sourceapp;
  148. /**
  149. * 如果从erp传过来的,记录id
  150. */
  151. @Column(name = "in_erpid")
  152. private Long erpid;
  153. /**
  154. * erp传过来的记录时间
  155. */
  156. @Column(name = "in_erpdate")
  157. private Date erpdate;
  158. public Long getId() {
  159. return id;
  160. }
  161. public void setId(Long id) {
  162. this.id = id;
  163. }
  164. public Long getEnUU() {
  165. return enUU;
  166. }
  167. public void setEnUU(Long enUU) {
  168. this.enUU = enUU;
  169. }
  170. public Enterprise getEnterprise() {
  171. return enterprise;
  172. }
  173. public void setEnterprise(Enterprise enterprise) {
  174. this.enterprise = enterprise;
  175. }
  176. public Long getRecorderUU() {
  177. return recorderUU;
  178. }
  179. public void setRecorderUU(Long recorderUU) {
  180. this.recorderUU = recorderUU;
  181. }
  182. public String getCode() {
  183. return code;
  184. }
  185. public void setCode(String code) {
  186. this.code = code;
  187. }
  188. public Date getDate() {
  189. return date;
  190. }
  191. public void setDate(Date date) {
  192. this.date = date;
  193. }
  194. public String getRecorder() {
  195. return recorder;
  196. }
  197. public void setRecorder(String recorder) {
  198. this.recorder = recorder;
  199. }
  200. public String getAuditor() {
  201. return auditor;
  202. }
  203. public void setAuditor(String auditor) {
  204. this.auditor = auditor;
  205. }
  206. public Date getEndDate() {
  207. return endDate;
  208. }
  209. public void setEndDate(Date endDate) {
  210. this.endDate = endDate;
  211. }
  212. public String getRemark() {
  213. return remark;
  214. }
  215. public void setRemark(String remark) {
  216. this.remark = remark;
  217. }
  218. public String getEnvironment() {
  219. return environment;
  220. }
  221. public void setEnvironment(String environment) {
  222. this.environment = environment;
  223. }
  224. public String getPriceType() {
  225. return priceType;
  226. }
  227. public void setPriceType(String priceType) {
  228. this.priceType = priceType;
  229. }
  230. @JsonIgnore
  231. @JSONField(serialize = false)
  232. public Set<PurcInquiryItemInfo> getInquiryItems() {
  233. return inquiryItems;
  234. }
  235. public void setInquiryItems(Set<PurcInquiryItemInfo> inquiryItems) {
  236. this.inquiryItems = inquiryItems;
  237. }
  238. public Set<Attach> getAttachs() {
  239. return attachs;
  240. }
  241. public void setAttachs(Set<Attach> attachs) {
  242. this.attachs = attachs;
  243. }
  244. public Short getCheck() {
  245. return check;
  246. }
  247. public void setCheck(Short check) {
  248. this.check = check;
  249. }
  250. public Integer getEnteryStatus() {
  251. return enteryStatus;
  252. }
  253. public void setEnteryStatus(Integer enteryStatus) {
  254. this.enteryStatus = enteryStatus;
  255. }
  256. public Short getOverdue() {
  257. return overdue;
  258. }
  259. public void setOverdue(Short overdue) {
  260. this.overdue = overdue;
  261. }
  262. public Short getIsOpen() {
  263. return isOpen;
  264. }
  265. public void setIsOpen(Short isOpen) {
  266. this.isOpen = isOpen;
  267. }
  268. public String getShip() {
  269. return ship;
  270. }
  271. public void setShip(String ship) {
  272. this.ship = ship;
  273. }
  274. public Short getInvoice() {
  275. return invoice;
  276. }
  277. public void setInvoice(Short invoice) {
  278. this.invoice = invoice;
  279. }
  280. public Short getIfTax() {
  281. return ifTax;
  282. }
  283. public void setIfTax(Short ifTax) {
  284. this.ifTax = ifTax;
  285. }
  286. public String getCurrency() {
  287. return currency;
  288. }
  289. public void setCurrency(String currency) {
  290. this.currency = currency;
  291. }
  292. public String getInquirytype() {
  293. return inquirytype;
  294. }
  295. public void setInquirytype(String inquirytype) {
  296. this.inquirytype = inquirytype;
  297. }
  298. public String getSourceapp() {
  299. return sourceapp;
  300. }
  301. public void setSourceapp(String sourceapp) {
  302. this.sourceapp = sourceapp;
  303. }
  304. public Long getErpid() {
  305. return erpid;
  306. }
  307. public void setErpid(Long erpid) {
  308. this.erpid = erpid;
  309. }
  310. public Date getErpdate() {
  311. return erpdate;
  312. }
  313. public void setErpdate(Date erpdate) {
  314. this.erpdate = erpdate;
  315. }
  316. }