All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcRechargeOrderRefundDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_recharge_order_refund")
@ApiModel(value="CcRechargeOrderRefundDO", description="CcRechargeOrderRefund")
public class CcRechargeOrderRefundDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * userId
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 订单id
     */
    @TableField("order_id")
    private Integer orderId;
    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 退款单号
     */
    @TableField("refund_no")
    private String refundNo;
    /**
     * 商户号
     */
    @TableField("merchant_no")
    private String merchantNo;
    /**
     * refundAmount
     */
    @TableField("refund_amount")
    private Long refundAmount;
    /**
     * 易宝退款单号
     */
    @TableField("unique_refund_no")
    private String uniqueRefundNo;
    /**
     * 退款资金来源
     */
    @TableField("refund_account_detail")
    private String refundAccountDetail;
    /**
     * 退款订单状态 PROCESSING:退款处理中 SUCCESS:退款成功 FAILED:退款失败
     */
    @TableField("status")
    private String status;
    /**
     * 退款受理时间
     */
    @TableField("refund_time")
    private Date refundTime;
    /**
     * createtime
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * updatetime
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcRechargeOrderRefundVO toVO(CcRechargeOrderRefundDO ccRechargeOrderRefundDO) {
        if(ccRechargeOrderRefundDO == null){
            return null;
        }
        CcRechargeOrderRefundVO ccRechargeOrderRefundVO = new CcRechargeOrderRefundVO();
        BeanUtils.copyProperties(ccRechargeOrderRefundDO, ccRechargeOrderRefundVO);
        return ccRechargeOrderRefundVO;
    }

    public static CcRechargeOrderRefundDO toDO(CcRechargeOrderRefundAddDTO ccRechargeOrderRefundAddDTO) {
        if (ccRechargeOrderRefundAddDTO == null) {
            return null;
        }
        CcRechargeOrderRefundDO ccRechargeOrderRefundDO = new CcRechargeOrderRefundDO();
        BeanUtils.copyProperties(ccRechargeOrderRefundAddDTO, ccRechargeOrderRefundDO);
        return ccRechargeOrderRefundDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy