| | |
| | | import com.alibaba.excel.annotation.write.style.ColumnWidth; |
| | | import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
| | | import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.dy.common.po.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @JsonPropertyOrder({ "cashierId", "villageId", "clientNum", "districtTitle", "clientName", "phone", "operateType", "tradeAmount", "waterCost", "cardCost", "gift", "refundAmount", "paymentName", "tradeTime"}) |
| | | @JsonPropertyOrder({"orderNumber", "clientName", "cardNum", "idCard", "clientNum", "phone", "operateType", "tradeAmount", "waterCost", "cardCost", "gift", "refundAmount", "money", "paymentName", "tradeTime", "cashierId", "cashierName", "cardState", "districtTitle", "villageId"}) |
| | | @HeadRowHeight(30) |
| | | @ContentRowHeight(20) |
| | | public class VoTradeDetails implements BaseEntity { |
| | | private static final long serialVersionUID = 202402012040001L; |
| | | |
| | | @Schema(title = "收银员ID") |
| | | @ExcelIgnore |
| | | private String cashierId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "订单号"}) |
| | | @ColumnWidth(25) |
| | | private String orderNumber; |
| | | |
| | | @Schema(title = "村庄ID") |
| | | @ExcelIgnore |
| | | private String villageId; |
| | | |
| | | @Schema(title = "农户编号") |
| | | @ExcelIgnore |
| | | private String clientNum; |
| | | |
| | | @ExcelProperty(value = {"${title}", "村庄名称"}) |
| | | @ColumnWidth(20) |
| | | private String districtTitle; |
| | | |
| | | /** |
| | | * 农户姓名 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "农户姓名"}) |
| | | @ColumnWidth(15) |
| | | private String clientName; |
| | | |
| | | /** |
| | | * 水卡编号 |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | @ExcelProperty(value = {"${title}", "水卡编号"}) |
| | | @ColumnWidth(20) |
| | | private String cardNum; |
| | | |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "身份证号"}) |
| | | @ColumnWidth(15) |
| | | private String idCard; |
| | | |
| | | /** |
| | | * 农户编号 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "农户编号"}) |
| | | @ColumnWidth(15) |
| | | private String clientNum; |
| | | |
| | | /** |
| | | * 联系电话 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "联系电话"}) |
| | | @ColumnWidth(15) |
| | | private String phone; |
| | | |
| | | /** |
| | | * 业务类型 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "业务类型"}) |
| | | @ColumnWidth(15) |
| | | private String operateType; |
| | | |
| | | /** |
| | | * 交易金额 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "交易金额"}) |
| | | @ColumnWidth(15) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double tradeAmount; |
| | | |
| | | /** |
| | | * 购水金额 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "购水金额"}) |
| | | @ColumnWidth(15) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double waterCost; |
| | | |
| | | /** |
| | | * 购卡金额 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "购卡金额"}) |
| | | @ColumnWidth(15) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double cardCost; |
| | | |
| | | /** |
| | | * 赠送金额 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "赠送金额"}) |
| | | @ColumnWidth(15) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double gift; |
| | | |
| | | /** |
| | | * 返还金额 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "返还金额"}) |
| | | @ColumnWidth(15) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double refundAmount; |
| | | |
| | | /** |
| | | * 余额 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "余额"}) |
| | | @ColumnWidth(15) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double money; |
| | | |
| | | /** |
| | | * 付款方式 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "付款方式"}) |
| | | @ColumnWidth(15) |
| | | private String paymentName; |
| | | |
| | | /** |
| | | * 交易时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ExcelProperty(value = {"${title}", "交易时间"}) |
| | | @ColumnWidth(20) |
| | | private Date tradeTime; |
| | | |
| | | /** |
| | | * 收银员ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | @ExcelIgnore |
| | | private Long cashierId; |
| | | |
| | | /** |
| | | * 收银员姓名 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "收银员姓名"}) |
| | | @ColumnWidth(15) |
| | | private String cashierName; |
| | | |
| | | /** |
| | | * 卡片状态 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "卡片状态"}) |
| | | @ColumnWidth(15) |
| | | private String cardState; |
| | | |
| | | /** |
| | | * 村庄名称 |
| | | */ |
| | | @ExcelProperty(value = {"${title}", "村庄名称"}) |
| | | @ColumnWidth(35) |
| | | private String districtTitle; |
| | | |
| | | /** |
| | | * 村庄ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | @ExcelIgnore |
| | | private Long villageId; |
| | | } |