package com.mzl.flower.dto.response.payment; import com.fasterxml.jackson.annotation.JsonFormat; import com.mzl.flower.base.AbstractTransDTO; import com.mzl.flower.base.annotation.DictTrans; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.List; @Data public class OrderDTO extends AbstractTransDTO { private String id; @ApiModelProperty(value = "订单单号") private String orderNo; @ApiModelProperty(value = "商品金额") private BigDecimal flowerAmount; @ApiModelProperty(value = "打包费") private BigDecimal packingFee; @ApiModelProperty(value = "运费") private BigDecimal transportFee; @ApiModelProperty(value = "订单金额") private BigDecimal totalAmount; @ApiModelProperty(value = "状态; 合伙人和花店展示") @DictTrans(target = "statusStr", codeType = "ORDER_STATUS") private String status; private String statusStr; @ApiModelProperty(value = "状态; 平台展示") @DictTrans(target = "statusBackendStr", codeType = "ORDER_STATUS_BACKEND") private String statusBackend; private String statusBackendStr; @ApiModelProperty(value = "收货人") private String customer; @ApiModelProperty(value = "收货人手机号码") private String customerTel; private String customerProvince; private String customerCity; private String customerRegion; @ApiModelProperty(value = "收货地址") private String customerAddress; @ApiModelProperty(value = "支付金额") private BigDecimal paymentAmount; @ApiModelProperty(value = "支付时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime paymentTime; @ApiModelProperty(value = "仓库名称") private String warehouseName; @ApiModelProperty(value = "库位名称") private String warehouseLocationCode; @ApiModelProperty(value = "库位分配时间") private LocalDateTime warehouseTime; @ApiModelProperty(value = "合伙人名称") private String partnerName; @ApiModelProperty(value = "特殊需求") @DictTrans(target = "specialNeedsStr", codeType = "SPEC_REQ") private String specialNeeds; private String specialNeedsStr; @ApiModelProperty(value = "留言") private String remarks; @ApiModelProperty(value = "评价") private String evaluate; @ApiModelProperty(value = "取消时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime cancelTime; @ApiModelProperty(value = "评价时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime evaluateTime; @ApiModelProperty(value = "下单人") private String createName; @ApiModelProperty(value = "退款单号") private String refundNo; @ApiModelProperty(value = "退款金额") private BigDecimal refundAmount; @ApiModelProperty(value = "退款时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime refundTime; @ApiModelProperty(value = "是否可退款;这是给花店使用的") private boolean couldRefund; @ApiModelProperty(value = "收货时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime receiveTime; @ApiModelProperty(value = "完成时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime completeTime; @ApiModelProperty(value = "转账时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime transferTime; @ApiModelProperty(value = "下单时间") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") @DateTimeFormat private LocalDateTime createTime; @ApiModelProperty(value = "是否可质检退款") private boolean couldCheckRefund; @ApiModelProperty(value = "支付单号") private String paymentTrId; @ApiModelProperty(value = "积分商品列表") private List pointGoodsList; @ApiModelProperty(value = "优惠券编码") private String memberCouponCode; @ApiModelProperty(value = "优惠券名称") private String memberCouponName; @ApiModelProperty(value = "优惠券金额") private BigDecimal memberCouponAmount; @ApiModelProperty(value = "会员等级名称") private String memberName; @ApiModelProperty(value = "折扣类型(discount_type)") @DictTrans(target = "memberDiscountTypeStr", codeType = "DISCOUNT_TYPE") private String memberDiscountType; private String memberDiscountTypeStr; @ApiModelProperty(value = "会员折扣") private BigDecimal memberDiscountRatio; @ApiModelProperty(value = "优惠金额(每扎)") private BigDecimal memberDiscountAmount; private List items; }