LibOrderDetails.java 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. package com.ssj.bean.weixin.sales.domain;
  2. import com.ssj.bean.common.framework.core.domain.BaseEntity;
  3. import javax.persistence.Column;
  4. import javax.persistence.Entity;
  5. import javax.persistence.Table;
  6. import javax.persistence.Transient;
  7. import java.math.BigDecimal;
  8. import java.util.Date;
  9. /**
  10. * @author ZhangCaibao
  11. * @version 2017年4月28日 下午3:00:02
  12. * 类说明 图书馆卡片销售订单
  13. */
  14. @Entity
  15. @Table(name = "tb_lib_order_details")
  16. public class LibOrderDetails extends BaseEntity{
  17. private static final long serialVersionUID = -5302500983979370609L;
  18. /**
  19. * 订单编号
  20. */
  21. private String orderNo;
  22. /**
  23. * 订单ID
  24. */
  25. private String orderId;
  26. /**
  27. * 卡片卡片明细ID
  28. */
  29. private String salesPriceId;
  30. /**
  31. * 卡片价格
  32. */
  33. private BigDecimal price;
  34. /**
  35. * 书本抵扣价格
  36. */
  37. private BigDecimal bookPrice;
  38. /**
  39. * 购买人
  40. */
  41. private String userId;
  42. /**
  43. * 销售人员
  44. */
  45. private String salesUserId;
  46. /**
  47. * 图书馆
  48. */
  49. private String libId;
  50. /**
  51. * 如何知晓私塾家
  52. */
  53. private String know;
  54. /**
  55. * 购买时间
  56. */
  57. private Date createTime;
  58. /**
  59. * 购卡明细
  60. */
  61. private String details;
  62. /**
  63. * 1新签,2续签
  64. */
  65. private Integer type;
  66. /**
  67. * 卡的种类(S001阅读吧卡,S003作业吧卡)
  68. */
  69. private String priceSpecies;
  70. /**
  71. * C001年卡C002半年卡C003月卡
  72. * 作业吧服务(小塾需要此服务才能使用):C004作业吧月卡C005作业吧半年卡C006作业吧年卡C015季度卡C022天卡
  73. * C007会员卡周末卡C008长假卡寒假卡C009自然拼读课程L1
  74. * C010励登幼升小拼音识字班C011励登幼升小数学思维班
  75. * C012励登幼升小课程全天班
  76. * C016自然拼读课程L2
  77. * C017自然拼读课程L3
  78. * C020阅读产品收费
  79. * C021通讯费
  80. */
  81. private String priceType;
  82. /**
  83. * 人员类型 1 CD 2 CC 3 CDA 4 ZB
  84. */
  85. private String staffingType;
  86. // 订单状态 1-已支付, 2-已退款 //3财务手动添加
  87. private Integer orderStatus;
  88. private Date endTime;
  89. /**
  90. * 会员卡ID
  91. */
  92. private String vipId;
  93. /**
  94. * 1自己购买,2代买
  95. */
  96. private Integer isBuy;
  97. /**
  98. * 初始购卡,会员卡的类型,续费统一为标准卡。 1标准卡,4联名卡。5兴趣卡(自然拼读),
  99. */
  100. private Integer vipStatus;
  101. /**
  102. * 单次购买的数量
  103. */
  104. private Integer number;
  105. /**
  106. * 优惠码,折扣码
  107. */
  108. private String vipCode;
  109. /**
  110. * 判断是从哪里支付的,1 图书馆销售二维码进来付款。
  111. */
  112. private String isType;
  113. /**
  114. * 孩子姓名
  115. */
  116. private String childName;
  117. /**
  118. * 年级
  119. */
  120. private String grade;
  121. /**
  122. * 家长姓名
  123. */
  124. private String parentName;
  125. /**
  126. * 联系方式
  127. */
  128. private String phone;
  129. /**
  130. * 学校
  131. */
  132. private String school;
  133. /**
  134. * 额外价格
  135. */
  136. private BigDecimal extraPrice;
  137. /**
  138. * 图书馆类型
  139. * 1--家庭图书馆
  140. * 2--共享图书馆A,
  141. * 3共享图书馆B
  142. */
  143. private Integer libtype;
  144. /**
  145. * 是否结算 用于进销存 1未结算 2已结算
  146. */
  147. private Integer isClose;
  148. /**
  149. * 购买程序端(6:家长端小程序;7:老师端小程序(校长端和老师端);11:app老师端;12:app家长端)
  150. */
  151. private int appType;
  152. /**
  153. * 赠送的优惠码
  154. */
  155. private String code;
  156. /**
  157. * 服务开始时间
  158. */
  159. private Date startTime;
  160. /**
  161. * 是否已开票 1-是 2-申请中 其它未开具
  162. */
  163. private Integer invoiceState;
  164. private String startActiveTime;
  165. private String activeTime;
  166. public Date getStartTime() {
  167. return startTime;
  168. }
  169. public void setStartTime(Date startTime) {
  170. this.startTime = startTime;
  171. }
  172. @Transient
  173. public String getCode() {
  174. return code;
  175. }
  176. public void setCode(String code) {
  177. this.code = code;
  178. }
  179. public int getAppType() {
  180. return appType;
  181. }
  182. public void setAppType(int appType) {
  183. this.appType = appType;
  184. }
  185. public String getOrderNo() {
  186. return orderNo;
  187. }
  188. public void setOrderNo(String orderNo) {
  189. this.orderNo = orderNo;
  190. }
  191. public String getOrderId() {
  192. return orderId;
  193. }
  194. public void setOrderId(String orderId) {
  195. this.orderId = orderId;
  196. }
  197. public String getSalesPriceId() {
  198. return salesPriceId;
  199. }
  200. public void setSalesPriceId(String salesPriceId) {
  201. this.salesPriceId = salesPriceId;
  202. }
  203. public BigDecimal getPrice() {
  204. return price;
  205. }
  206. public void setPrice(BigDecimal price) {
  207. this.price = price;
  208. }
  209. public BigDecimal getBookPrice() {
  210. return bookPrice;
  211. }
  212. public void setBookPrice(BigDecimal bookPrice) {
  213. this.bookPrice = bookPrice;
  214. }
  215. public String getUserId() {
  216. return userId;
  217. }
  218. public void setUserId(String userId) {
  219. this.userId = userId;
  220. }
  221. public String getSalesUserId() {
  222. return salesUserId;
  223. }
  224. public void setSalesUserId(String salesUserId) {
  225. this.salesUserId = salesUserId;
  226. }
  227. public String getLibId() {
  228. return libId;
  229. }
  230. public void setLibId(String libId) {
  231. this.libId = libId;
  232. }
  233. public String getKnow() {
  234. return know;
  235. }
  236. public void setKnow(String know) {
  237. this.know = know;
  238. }
  239. @Column(updatable =false)
  240. public Date getCreateTime() {
  241. return createTime;
  242. }
  243. public void setCreateTime(Date createTime) {
  244. this.createTime = createTime;
  245. }
  246. public String getDetails() {
  247. return details;
  248. }
  249. public void setDetails(String details) {
  250. this.details = details;
  251. }
  252. public Integer getType() {
  253. return type;
  254. }
  255. public void setType(Integer type) {
  256. this.type = type;
  257. }
  258. public String getPriceSpecies() {
  259. return priceSpecies;
  260. }
  261. public void setPriceSpecies(String priceSpecies) {
  262. this.priceSpecies = priceSpecies;
  263. }
  264. public String getPriceType() {
  265. return priceType;
  266. }
  267. public void setPriceType(String priceType) {
  268. this.priceType = priceType;
  269. }
  270. public String getStaffingType() {
  271. return staffingType;
  272. }
  273. public void setStaffingType(String staffingType) {
  274. this.staffingType = staffingType;
  275. }
  276. public Integer getOrderStatus() {
  277. return orderStatus;
  278. }
  279. public void setOrderStatus(Integer orderStatus) {
  280. this.orderStatus = orderStatus;
  281. }
  282. public Date getEndTime() {
  283. return endTime;
  284. }
  285. public void setEndTime(Date endTime) {
  286. this.endTime = endTime;
  287. }
  288. public String getVipId() {
  289. return vipId;
  290. }
  291. public void setVipId(String vipId) {
  292. this.vipId = vipId;
  293. }
  294. public Integer getIsBuy() {
  295. return isBuy;
  296. }
  297. public void setIsBuy(Integer isBuy) {
  298. this.isBuy = isBuy;
  299. }
  300. public Integer getVipStatus() {
  301. return vipStatus;
  302. }
  303. public void setVipStatus(Integer vipStatus) {
  304. this.vipStatus = vipStatus;
  305. }
  306. public Integer getNumber() {
  307. if(number==null){
  308. return 1;
  309. }
  310. return number;
  311. }
  312. public void setNumber(Integer number) {
  313. this.number = number;
  314. }
  315. @Transient
  316. public String getVipCode() {
  317. return vipCode;
  318. }
  319. public void setVipCode(String vipCode) {
  320. this.vipCode = vipCode;
  321. }
  322. @Transient
  323. public String getIsType() {
  324. return isType;
  325. }
  326. public void setIsType(String isType) {
  327. this.isType = isType;
  328. }
  329. @Transient
  330. public String getChildName() {
  331. return childName;
  332. }
  333. public void setChildName(String childName) {
  334. this.childName = childName;
  335. }
  336. @Transient
  337. public String getGrade() {
  338. return grade;
  339. }
  340. public void setGrade(String grade) {
  341. this.grade = grade;
  342. }
  343. @Transient
  344. public String getParentName() {
  345. return parentName;
  346. }
  347. public void setParentName(String parentName) {
  348. this.parentName = parentName;
  349. }
  350. @Transient
  351. public String getPhone() {
  352. return phone;
  353. }
  354. public void setPhone(String phone) {
  355. this.phone = phone;
  356. }
  357. @Transient
  358. public String getSchool() {
  359. return school;
  360. }
  361. public void setSchool(String school) {
  362. this.school = school;
  363. }
  364. @Transient
  365. public BigDecimal getExtraPrice() {
  366. return extraPrice;
  367. }
  368. public void setExtraPrice(BigDecimal extraPrice) {
  369. this.extraPrice = extraPrice;
  370. }
  371. public Integer getLibtype() {
  372. return libtype;
  373. }
  374. public void setLibtype(Integer libtype) {
  375. this.libtype = libtype;
  376. }
  377. public Integer getIsClose() {
  378. return isClose;
  379. }
  380. public void setIsClose(Integer isClose) {
  381. this.isClose = isClose;
  382. }
  383. public Integer getInvoiceState() {
  384. return invoiceState;
  385. }
  386. public void setInvoiceState(Integer invoiceState) {
  387. this.invoiceState = invoiceState;
  388. }
  389. @Transient
  390. public String getStartActiveTime() {
  391. return startActiveTime;
  392. }
  393. public void setStartActiveTime(String startActiveTime) {
  394. this.startActiveTime = startActiveTime;
  395. }
  396. @Transient
  397. public String getActiveTime() {
  398. return activeTime;
  399. }
  400. public void setActiveTime(String activeTime) {
  401. this.activeTime = activeTime;
  402. }
  403. }