PurcInquiry.java 7.2 KB

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