k.e.book.ddh.entity.CcIntegralOrderDO 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_integral_order")
@ApiModel(value="CcIntegralOrderDO", description="CcIntegralOrder")
public class CcIntegralOrderDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 订单编号
*/
@TableField("order_no")
private String orderNo;
/**
* 支付编号
*/
@TableField("ordercode")
private String ordercode;
/**
* 会员ID
*/
@TableField("user_id")
private Integer userId;
/**
* 商户号
*/
@TableField("merchant_no")
private String merchantNo;
/**
* 订单总金额
*/
@TableField("amount")
private Integer amount;
/**
* 订单总积分
*/
@TableField("score")
private Integer score;
/**
* 支付总金额
*/
@TableField("pay_amount")
private Integer payAmount;
/**
* 支付类型:0=混合,1=现金,2=积分
*/
@TableField("pay_type")
private Integer payType;
/**
* 支付时间
*/
@TableField("pay_time")
private Integer payTime;
/**
* IP地址
*/
@TableField("ip")
private String ip;
/**
* UserAgent
*/
@TableField("useragent")
private String useragent;
/**
* 备注
*/
@TableField("memo")
private String memo;
/**
* 支付信息
*/
@TableField("payinfo")
private String payinfo;
/**
* 交易订单号
*/
@TableField("trade_no")
private String tradeNo;
/**
* 用户账单上的交易订单号
*/
@TableField("out_trade_no")
private String outTradeNo;
/**
* 状态:0=待支付,1=待发货,2=已取消,3=已签收,4=已退款
*/
@TableField("status")
private Integer status;
/**
* 逾期时间 单位(秒)
*/
@TableField("overdue")
private Integer overdue;
/**
* 抵扣券ID
*/
@TableField("coupon_id")
private Integer couponId;
/**
* 添加时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Integer updatetime;
/**
* 删除时间
*/
@TableField("deletetime")
private Integer deletetime;
public static CcIntegralOrderVO toVO(CcIntegralOrderDO ccIntegralOrderDO) {
if(ccIntegralOrderDO == null){
return null;
}
CcIntegralOrderVO ccIntegralOrderVO = new CcIntegralOrderVO();
BeanUtils.copyProperties(ccIntegralOrderDO, ccIntegralOrderVO);
return ccIntegralOrderVO;
}
public static CcIntegralOrderDO toDO(CcIntegralOrderAddDTO ccIntegralOrderAddDTO) {
if (ccIntegralOrderAddDTO == null) {
return null;
}
CcIntegralOrderDO ccIntegralOrderDO = new CcIntegralOrderDO();
BeanUtils.copyProperties(ccIntegralOrderAddDTO, ccIntegralOrderDO);
return ccIntegralOrderDO;
}
}