MallBizPaymentOrder.java 3.01 KB
package com.diligrp.cashier.mall.model;

import com.diligrp.cashier.mall.domain.rtmall.vo.OrderPaymentVO;
import com.diligrp.cashier.shared.domain.BaseDO;

import java.time.LocalDateTime;

/**
 * 业务侧支付单
 */
public class MallBizPaymentOrder extends BaseDO {

    /**
     * 结算id(mall_biz_paymen.id)
     */
    private Long bizPaymentId;

    /**
     * 支付单号(mall_biz_paymen.pay_trade_no)
     */
    private String payTradeNo;

    /**
     * 订单id(mall_biz_order.id)
     */
    private Long bizOrderId;

    /**
     * 业务侧订单号
     */
    private String orderId;

    /**
     * 业务侧支付单号
     */
    private String tradeId;

    /**
     * dili交易流水号(mall_biz_payment.pay_payment_id)
     */
    private String payPaymentId;

    /**
     * 支付金额分
     */
    private Long payFee;

    /**
     * 支付状态
     * @see com.diligrp.cashier.mall.type.PayState
     */
    private Integer payState;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    public MallBizPaymentOrder() {
    }

    public MallBizPaymentOrder(String orderId, String tradeId) {
        this.orderId = orderId;
        this.tradeId = tradeId;
    }

    public Long getBizPaymentId() {
        return bizPaymentId;
    }

    public void setBizPaymentId(Long bizPaymentId) {
        this.bizPaymentId = bizPaymentId;
    }

    public String getPayTradeNo() {
        return payTradeNo;
    }

    public void setPayTradeNo(String payTradeNo) {
        this.payTradeNo = payTradeNo;
    }

    public Long getBizOrderId() {
        return bizOrderId;
    }

    public void setBizOrderId(Long bizOrderId) {
        this.bizOrderId = bizOrderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getTradeId() {
        return tradeId;
    }

    public void setTradeId(String tradeId) {
        this.tradeId = tradeId;
    }

    public String getPayPaymentId() {
        return payPaymentId;
    }

    public void setPayPaymentId(String payPaymentId) {
        this.payPaymentId = payPaymentId;
    }

    public Long getPayFee() {
        return payFee;
    }

    public void setPayFee(Long payFee) {
        this.payFee = payFee;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }

    /**
     * ofOrderPaymentVO
     *
     */
    public OrderPaymentVO ofOrderPaymentVO() {
        OrderPaymentVO orderPaymentVO = new OrderPaymentVO();
        orderPaymentVO.setOutTradeNo(payTradeNo);
        orderPaymentVO.setPayStatus(payState);
        orderPaymentVO.setPayFee(payFee);
        orderPaymentVO.setPayTime(payTime);
        orderPaymentVO.setTransactionId(payPaymentId);
        return orderPaymentVO;
    }
}