From daa697719eb0ddfd170f1ab94c5422a4f5b93951 Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Fri, 18 Sep 2020 14:36:54 +0800
Subject: [PATCH] Merge branch 'dev'

---
 kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/ConsumptionConstant.java |   86 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 86 insertions(+), 0 deletions(-)

diff --git a/kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/ConsumptionConstant.java b/kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/ConsumptionConstant.java
new file mode 100644
index 0000000..7767134
--- /dev/null
+++ b/kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/ConsumptionConstant.java
@@ -0,0 +1,86 @@
+package com.kidgrow.common.constant;
+
+/**
+ * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
+ *
+ * @Description: 全局公共常量<br>
+ * @Project: <br>
+ * @CreateDate: Created in 2020/06/23 16:24 <br>
+ * @Author: <a href="4345453@kidgrow.com">houruijun</a>
+ **/
+public interface ConsumptionConstant {
+//记录类型
+//1:预扣费
+//2:退预扣费(需要关联预扣费编号)
+//3:退扣费(需要关联扣费编号)
+//4:扣费(需要关联预扣费编号)
+    /**
+     * 预扣费业务标识
+     */
+    int BEFORE_DEDUCTION = 1;
+    /**
+     * 退还预扣费业务标识
+     */
+    int RETURN_BEFORE_DEDUCTION = 2;
+    /**
+     * 扣费业务标识
+     */
+    int DEDUCTION = 4;
+    /**
+     * 退扣费业务标识
+     */
+    int RETURN_DEDUCTION = 3;
+
+//    业务返回结果
+//    bcode                 含义
+//---------------------------------
+//100                 余额充足
+//101                 余额不足
+//200                 已经预扣
+//201                 已经扣费
+//300                 退还预扣
+//301                 退还扣费
+//400                 业务执行出错
+//401                 参数为空异常
+//402                 业务失败
+    /**
+     * 余额充足
+     */
+    int BUSINESS_CODE_OK = 100;
+    /**
+     * 余额不足
+     */
+    int BUSINESS_CODE_FAIL = 101;
+    /**
+     * 已经预扣
+     */
+    int BUSINESS_CODE_IS_BEFORE_DEDUCTION = 200;
+    /**
+     * 已经扣费
+     */
+    int BUSINESS_CODE_IS_DEDUCTION = 201;
+    /**
+     * 退还预扣
+     */
+    int BUSINESS_CODE_RETURN_BEFORE_DEDUCTION = 300;
+    /**
+     * 退还扣
+     */
+    int BUSINESS_CODE_RETURN_DEDUCTION = 301;
+    /**
+     * 业务出错
+     */
+    int BUSINESS_CODE_ERROR = 400;
+    /**
+     * 参数为空异常
+     */
+    int BUSINESS_CODE_PARAMS_ERROR = 401;
+    /**
+     * 业务失败
+     */
+    int BUSINESS_RUN_FAIL = 402;
+
+    //MQ相关
+    String EXCHANGE_DATA="BICenter";
+    String ROUTINGKEY_DATA="kidgrow2033_";
+}

--
Gitblit v1.8.0