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

89 lines
2.6 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;
import java.util.List;
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;
2022-11-07 00:15:33 +08:00
@Excel(name = "服务金额", cellType = Excel.ColumnType.STRING)
private BigDecimal serverMoney;
2022-04-24 15:59:15 +08:00
@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;
2022-05-26 21:12:20 +08:00
@Excel(name = "Adapay的唯一支付ID", cellType = Excel.ColumnType.STRING)
private String paymentId;
2023-03-29 23:11:20 +08:00
@Excel(name = "Adapay的撤销支付ID", cellType = Excel.ColumnType.STRING)
private String reverseId;
private List<Long> ids;
2022-08-24 13:56:27 +08:00
private Integer type;
private Long userId;
private String orderCode;
private List<FinancialDetail> details;
2022-11-16 01:58:58 +08:00
private List<Long> orderMasterIds;
2022-05-17 21:41:29 +08:00
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-26 21:12:20 +08:00
this.deptId = deptId;
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
}