ghy-all/ghy-payment/src/main/java/com/ghy/payment/domain/FinancialMaster.java

66 lines
2.0 KiB
Java
Raw Normal View History

2022-04-20 17:33:56 +08:00
package com.ghy.payment.domain;
2022-05-17 21:08:19 +08:00
import com.fasterxml.jackson.annotation.JsonFormat;
2022-04-24 15:59:15 +08:00
import com.ghy.common.annotation.Excel;
2022-04-20 17:33:56 +08:00
import com.ghy.common.core.domain.BaseEntity;
2022-04-24 15:59:15 +08:00
import lombok.Data;
import java.math.BigDecimal;
2022-05-17 21:41:29 +08:00
import java.util.Date;
2022-04-20 17:33:56 +08:00
/**
* @author clunt
* 财务单主单(对应付款)
*/
2022-04-24 15:59:15 +08:00
@Data
2022-04-20 17:33:56 +08:00
public class FinancialMaster extends BaseEntity {
2022-04-24 15:59:15 +08:00
private static final long serialVersionUID = 1L;
@Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
private Long id;
2022-05-24 22:26:26 +08:00
@Excel(name = "商户ID", cellType = Excel.ColumnType.NUMERIC)
private Long deptId;
@Excel(name = "编码", cellType = Excel.ColumnType.STRING)
private String code;
2022-04-24 15:59:15 +08:00
@Excel(name = "主订单序号", cellType = Excel.ColumnType.NUMERIC)
private Long orderMasterId;
@Excel(name = "主订单编码", cellType = Excel.ColumnType.NUMERIC)
private String orderMasterCode;
@Excel(name = "整单总金额", cellType = Excel.ColumnType.STRING)
private BigDecimal totalMoney;
@Excel(name = "优惠金额", cellType = Excel.ColumnType.STRING)
private BigDecimal discountMoney;
@Excel(name = "实付金额", cellType = Excel.ColumnType.STRING)
private BigDecimal payMoney;
@Excel(name = "支付方式,微信/支付宝/线下", cellType = Excel.ColumnType.NUMERIC)
private Integer payType;
@Excel(name = "支付状态, 未付款/已付款", cellType = Excel.ColumnType.NUMERIC)
private Integer payStatus;
2022-04-20 17:33:56 +08:00
2022-04-24 15:59:15 +08:00
@Excel(name = "付款时间", cellType = Excel.ColumnType.STRING)
2022-05-17 21:08:19 +08:00
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
2022-05-17 21:41:29 +08:00
private Date payTime;
public FinancialMaster() {
}
2022-05-24 22:26:26 +08:00
public FinancialMaster(String code, Long deptId, Long orderMasterId, String orderMasterCode, BigDecimal totalMoney, BigDecimal discountMoney, BigDecimal payMoney) {
this.code = code;
2022-05-17 21:41:29 +08:00
this.orderMasterId = orderMasterId;
this.orderMasterCode = orderMasterCode;
this.totalMoney = totalMoney;
this.discountMoney = discountMoney;
this.payMoney = payMoney;
}
2022-04-20 17:33:56 +08:00
}