|
|
@@ -5,6 +5,7 @@ import com.github.microservice.models.type.OrderFromType;
|
|
|
import com.github.microservice.pay.client.model.ledger.TransactionLogModel;
|
|
|
import com.github.microservice.types.OrderModeType;
|
|
|
import com.github.microservice.types.OrderState;
|
|
|
+import com.github.microservice.types.payment.ChargeableType;
|
|
|
import com.github.microservice.types.payment.PaymentDeviceType;
|
|
|
import com.github.microservice.types.payment.PaymentType;
|
|
|
import com.zhongshu.card.client.model.school.AreaSimpleModel;
|
|
|
@@ -45,6 +46,7 @@ public class ExpenseFlow extends SuperMain {
|
|
|
@Schema(description = "mqtt推送生成的业务数据ID")
|
|
|
private String mqttDataId;
|
|
|
|
|
|
+ @Schema(description = "")
|
|
|
private String token;
|
|
|
|
|
|
@Indexed
|
|
|
@@ -57,6 +59,9 @@ public class ExpenseFlow extends SuperMain {
|
|
|
@Schema(description = "消费类型,如:餐饮消费、水费、电费 等等")
|
|
|
private String payType;
|
|
|
|
|
|
+ @Schema(description = "订单计费方式")
|
|
|
+ private ChargeableType chargeableType = ChargeableType.Specified;
|
|
|
+
|
|
|
@Indexed
|
|
|
@Schema(description = "支付方式")
|
|
|
private PaymentType paymentType;
|
|
|
@@ -64,9 +69,22 @@ public class ExpenseFlow extends SuperMain {
|
|
|
@Schema(description = "支付来源:刷卡 二维码 刷脸")
|
|
|
private OrderFromType orderFromType;
|
|
|
|
|
|
+ @Schema(description = "订单生效时间")
|
|
|
+ private Long startTime;
|
|
|
+
|
|
|
@Schema(description = "订单失效时间")
|
|
|
private Long expirationTime;
|
|
|
|
|
|
+ @Schema(description = "消费金额(单位:分)")
|
|
|
+ @Indexed
|
|
|
+ private BigDecimal payAmount;
|
|
|
+
|
|
|
+ @Schema(description = "服务id、商品id")
|
|
|
+ private String productProvideId;
|
|
|
+
|
|
|
+ @Schema(description = "是否允许匿名下单")
|
|
|
+ private Boolean isAnonymous = Boolean.FALSE;
|
|
|
+
|
|
|
//----------------------------消费关联的用户信息 start ----------------------
|
|
|
@Schema(description = "消费的用户userId")
|
|
|
private String userId;
|
|
|
@@ -102,38 +120,6 @@ public class ExpenseFlow extends SuperMain {
|
|
|
@Schema(description = "卡片信息")
|
|
|
private CardInfo cardInfo;
|
|
|
|
|
|
- @Schema(description = "年份,如:2024")
|
|
|
- private Integer year;
|
|
|
-
|
|
|
- @Schema(description = "月份,如:6")
|
|
|
- private Integer month;
|
|
|
-
|
|
|
- @Schema(description = "当前月的第几天")
|
|
|
- private Integer dayOfMonth;
|
|
|
-
|
|
|
- @Schema(description = "今年第几周,如:32")
|
|
|
- private Integer week;
|
|
|
-
|
|
|
- @Schema(description = "当前年的第几天")
|
|
|
- private Integer dayOfYear;
|
|
|
-
|
|
|
- @Schema(description = "当前的第几小时")
|
|
|
- private Integer hourOfDay;
|
|
|
-
|
|
|
- @Schema(description = "消费创建时间 yyyy-MM-dd HH:mm:ss SSS")
|
|
|
- private String paymentTime;
|
|
|
-
|
|
|
- public void setTimes() {
|
|
|
- this.year = DateUtils.getCurrentYear();
|
|
|
- this.month = DateUtils.getCurrentMonthInYear();
|
|
|
- this.dayOfMonth = DateUtils.getCurrentDayInMonth();
|
|
|
- this.hourOfDay = DateUtils.getCurrentHourOfDay();
|
|
|
-
|
|
|
- this.dayOfYear = DateUtils.getCurrentDayInYear();
|
|
|
- this.week = DateUtils.getCurrentWeekInYear();
|
|
|
- this.paymentTime = DateUtils.paresTime(System.currentTimeMillis(), DateUtils.patternyyyySSS);
|
|
|
- }
|
|
|
-
|
|
|
@Schema(description = "消费订单号")
|
|
|
private String orderNo;
|
|
|
|
|
|
@@ -144,10 +130,6 @@ public class ExpenseFlow extends SuperMain {
|
|
|
@Schema(description = "付款码内容")
|
|
|
private String qr;
|
|
|
|
|
|
- @Schema(description = "消费金额(单位:分)")
|
|
|
- @Indexed
|
|
|
- private BigDecimal payAmount;
|
|
|
-
|
|
|
@Schema(description = "关联信息")
|
|
|
@Indexed
|
|
|
private Object param;
|
|
|
@@ -268,4 +250,38 @@ public class ExpenseFlow extends SuperMain {
|
|
|
this.orderState = OrderState.PAID_ERROR;
|
|
|
this.isPaid = Boolean.TRUE;
|
|
|
}
|
|
|
+
|
|
|
+ //------------------------------时间信息 start--------------------
|
|
|
+ @Schema(description = "年份,如:2024")
|
|
|
+ private Integer year;
|
|
|
+
|
|
|
+ @Schema(description = "月份,如:6")
|
|
|
+ private Integer month;
|
|
|
+
|
|
|
+ @Schema(description = "当前月的第几天")
|
|
|
+ private Integer dayOfMonth;
|
|
|
+
|
|
|
+ @Schema(description = "今年第几周,如:32")
|
|
|
+ private Integer week;
|
|
|
+
|
|
|
+ @Schema(description = "当前年的第几天")
|
|
|
+ private Integer dayOfYear;
|
|
|
+
|
|
|
+ @Schema(description = "当前的第几小时")
|
|
|
+ private Integer hourOfDay;
|
|
|
+
|
|
|
+ @Schema(description = "消费创建时间 yyyy-MM-dd HH:mm:ss SSS")
|
|
|
+ private String paymentTime;
|
|
|
+
|
|
|
+ public void setTimes() {
|
|
|
+ this.year = DateUtils.getCurrentYear();
|
|
|
+ this.month = DateUtils.getCurrentMonthInYear();
|
|
|
+ this.dayOfMonth = DateUtils.getCurrentDayInMonth();
|
|
|
+ this.hourOfDay = DateUtils.getCurrentHourOfDay();
|
|
|
+
|
|
|
+ this.dayOfYear = DateUtils.getCurrentDayInYear();
|
|
|
+ this.week = DateUtils.getCurrentWeekInYear();
|
|
|
+ this.paymentTime = DateUtils.paresTime(System.currentTimeMillis(), DateUtils.patternyyyySSS);
|
|
|
+ }
|
|
|
+ //------------------------------时间信息 end----------------------
|
|
|
}
|