OrderConstantEnum.java 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. package com.poteviohealth.cgp.statistics.constant.enums;
  2. /**
  3. * @description 订单相关枚举
  4. * @Date 4:57 PM 2019/7/26
  5. * @Author MoonJiDoo
  6. **/
  7. public class OrderConstantEnum {
  8. public enum OrderStatus {
  9. PAY(1, "预约单"),
  10. SEND(2, "待发货"),
  11. STOCKING(3, "备货中"),
  12. Arrival(4, "待自提"),
  13. PickUp(5, "待收货"),
  14. Finish(6, "已完成"),
  15. Cancel(7, "返单"),
  16. AFTERSALE(8, "售后中"),
  17. GROUP(9,"待成团"),
  18. REFUNDING(10, "退款中"),
  19. WORK(11, "待派工"),
  20. SERVICE(12, "待服务"),
  21. SERVICEING(13, "服务中"),
  22. INVALID(14, "作废"),
  23. REVIEW(15, "待审核"),
  24. VISIT(16, "待回访");
  25. private Integer code;
  26. private String display;
  27. OrderStatus(Integer code, String display) {
  28. this.code = code;
  29. this.display = display;
  30. }
  31. public Integer getCode() {
  32. return code;
  33. }
  34. public String getDisplay() {
  35. return display;
  36. }
  37. }
  38. public enum ShowStatus {
  39. PAY(1, "待付款"),
  40. DOING(2, "待收货"),
  41. Finish(3, "已完成"),
  42. Cancel(4, "已取消");
  43. private Integer code;
  44. private String display;
  45. ShowStatus(Integer code, String display) {
  46. this.code = code;
  47. this.display = display;
  48. }
  49. public Integer getCode() {
  50. return code;
  51. }
  52. public String getDisplay() {
  53. return display;
  54. }
  55. }
  56. public enum DishesShowStatus {
  57. PAY(1, "待付款"),
  58. DOING(2, "配送中"),
  59. Finish(3, "已完成"),
  60. Cancel(4, "已取消"),
  61. DOING_FETCH(5, "待取货");
  62. private Integer code;
  63. private String display;
  64. DishesShowStatus(Integer code, String display) {
  65. this.code = code;
  66. this.display = display;
  67. }
  68. public Integer getCode() {
  69. return code;
  70. }
  71. public String getDisplay() {
  72. return display;
  73. }
  74. }
  75. public enum AuditStatus {
  76. WAIT(1, "待审核"),
  77. SUCCESS(2, "通过"),
  78. REJECT(3, "驳回");
  79. private Integer code;
  80. private String display;
  81. AuditStatus(Integer code, String display) {
  82. this.code = code;
  83. this.display = display;
  84. }
  85. public Integer getCode() {
  86. return code;
  87. }
  88. public String getDisplay() {
  89. return display;
  90. }
  91. }
  92. public enum AfterSaleStatus {
  93. NONE(1, "未售后"),
  94. POSSIBLE(2, "可售后"),
  95. FINISH(4,"已售后"),
  96. DOING(3, "售后中"),
  97. NONE_EXPIRED(5,"未售后已过期"),
  98. EXPIRED(6,"已售后过期");
  99. private Integer code;
  100. private String display;
  101. AfterSaleStatus(Integer code, String display) {
  102. this.code = code;
  103. this.display = display;
  104. }
  105. public Integer getCode() {
  106. return code;
  107. }
  108. public String getDisplay() {
  109. return display;
  110. }
  111. }
  112. public enum AddressType {
  113. SIGN(0, "个人"),
  114. GROUP(1, "驿站");
  115. private Integer code;
  116. private String display;
  117. AddressType(Integer code, String display) {
  118. this.code = code;
  119. this.display = display;
  120. }
  121. public Integer getCode() {
  122. return code;
  123. }
  124. public String getDisplay() {
  125. return display;
  126. }
  127. }
  128. public enum PayStatus {
  129. PAY(1, "待支付"),
  130. PAYMENTS(2, "支付中"),
  131. SUCCESS(3, "已支付"),
  132. FAIL(4, "支付失败"),
  133. REFUNDING(5, "退款中"),
  134. REFUND(6, "退款成功"),
  135. FAILED(7, "退款失败");
  136. private Integer code;
  137. private String display;
  138. PayStatus(Integer code, String display) {
  139. this.code = code;
  140. this.display = display;
  141. }
  142. public Integer getCode() {
  143. return code;
  144. }
  145. public String getDisplay() {
  146. return display;
  147. }
  148. }
  149. public enum OrderType {
  150. PRODUCT(1, "商品订单"),
  151. SERVICE(2, "服务工单"),
  152. DISHES(3, "点餐工单");
  153. private Integer code;
  154. private String display;
  155. OrderType(Integer code, String display) {
  156. this.code = code;
  157. this.display = display;
  158. }
  159. public Integer getCode() {
  160. return code;
  161. }
  162. public String getDisplay() {
  163. return display;
  164. }
  165. }
  166. public enum PayStyle {
  167. UNPAY(0, "未支付"),
  168. WECHAT(1, "微信支付"),
  169. BANK(2, "农商行"),
  170. POS(3,"POS机"),
  171. INTEGRAL(4,"积分支付"),
  172. ACCOUNT(5,"充值卡账户"),
  173. VOUCHER(6,"养老劵支付"),
  174. DISABILITY(7,"失能补贴支付"),
  175. KLTWECHAT(8,"开联通微信支付"),
  176. OFFLINE(9,"线下支付"),
  177. FUND(10,"资金积分"),
  178. SHARE(11,"共享积分");
  179. private Integer code;
  180. private String display;
  181. PayStyle(Integer code, String display) {
  182. this.code = code;
  183. this.display = display;
  184. }
  185. public Integer getCode() {
  186. return code;
  187. }
  188. public String getDisplay() {
  189. return display;
  190. }
  191. }
  192. public enum OrderStyle {
  193. SIGN(1, "零售"),
  194. GROUP(2, "团购");
  195. private Integer code;
  196. private String display;
  197. OrderStyle(Integer code, String display) {
  198. this.code = code;
  199. this.display = display;
  200. }
  201. public Integer getCode() {
  202. return code;
  203. }
  204. public String getDisplay() {
  205. return display;
  206. }
  207. }
  208. public enum PayWay {
  209. SUBSIDY(1, "补贴支付"),
  210. OWN(2, "自费"),
  211. MIX(3, "混合"),
  212. INTEGRAL(4, "积分支付");
  213. private Integer code;
  214. private String display;
  215. PayWay(Integer code, String display) {
  216. this.code = code;
  217. this.display = display;
  218. }
  219. public Integer getCode() {
  220. return code;
  221. }
  222. public String getDisplay() {
  223. return display;
  224. }
  225. }
  226. }