|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.voSe; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.alibaba.excel.annotation.ExcelIgnore; | 
|---|
|  |  |  | import com.alibaba.excel.annotation.ExcelProperty; | 
|---|
|  |  |  | 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 io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonPropertyOrder; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @Schema(title = "财务对账,交易明细视图对象") | 
|---|
|  |  |  | @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") | 
|---|
|  |  |  | private String cashierId; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 订单号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "订单号"}) | 
|---|
|  |  |  | @ColumnWidth(25) | 
|---|
|  |  |  | private String orderNumber; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "区划名称串") | 
|---|
|  |  |  | private String districtTitle; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "村庄ID") | 
|---|
|  |  |  | private String villageId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "农户姓名") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 农户姓名 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "农户姓名"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String clientName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "联系电话") | 
|---|
|  |  |  | private String phone; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 水卡编号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "水卡编号"}) | 
|---|
|  |  |  | @ColumnWidth(20) | 
|---|
|  |  |  | private String cardNum; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "农户编号") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 身份证号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "身份证号"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String idCard; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 农户编号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "农户编号"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String clientNum; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "业务类型") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 联系电话 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "联系电话"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String phone; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 业务类型 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "业务类型"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String operateType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "交易金额") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 交易金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "交易金额"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double tradeAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "购水金额") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 购水金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "购水金额"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double waterCost; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "购卡金额") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 购卡金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "购卡金额"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double cardCost; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "赠送金额") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 赠送金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "赠送金额"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double gift; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "返回金额") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 返还金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "返还金额"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double refundAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "付款方式") | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 余额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @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") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|---|
|  |  |  | @Schema(title = "交易时间") | 
|---|
|  |  |  | @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; | 
|---|
|  |  |  | } | 
|---|