admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/dto/order/OrderItem.java
@@ -1,253 +1,253 @@
package com.yeshi.fanli.dto.order;
import java.math.BigDecimal;
import com.google.gson.annotations.Expose;
import com.yeshi.fanli.entity.bus.user.Order;
import com.yeshi.fanli.entity.bus.user.UserInfo;
public class OrderItem {
   // -1:退款 1已支付 2结算 3已到账 4售后
   public final static int STATE_TUIKUAN = -1;
   public final static int STATE_YIZHIFU = 1;
   public final static int STATE_JIESUAN = 2;
   public final static int STATE_DAOZHANG = 3;
   public final static int STATE_SHOUHOU = 4;
   private Long id;
   public OrderItem(Long id) {
      this.id = id;
   }
   @Expose
   private String picture;// 图片
   @Expose
   private Long auctionId;// 商品ID
   @Expose
   private String title;// 商品名称
   @Expose
   private String orderId;// 订单号
   private Integer type;// 订单类型
   @Expose
   private Integer state; // -1:退款 1已支付 2结算 3已到账 4售后
   @Expose
   private BigDecimal payMoney;// 付款金额
   @Expose
   private BigDecimal fanMoney;// 返利金额
   @Expose
   private Long createTime;
   private Long settlementTime;// 结算时间
   private Long refundTime;// 退款时间
   private Long fanTime;// 返利时间
   private Boolean isGift;// 是否有分销提成 true:有
   @Expose
   private String desc;
   private UserInfo userInfo;
   private Order order;
   private Integer version;// 版本1.2.3之前为1 后为2
   private BigDecimal prePayMoney;
   @Expose
   private String stateDesc;// 状态简介
   public String getStateDesc() {
      return stateDesc;
   }
   public void setStateDesc(String stateDesc) {
      this.stateDesc = stateDesc;
   }
   public BigDecimal getPrePayMoney() {
      return prePayMoney;
   }
   public void setPrePayMoney(BigDecimal prePayMoney) {
      this.prePayMoney = prePayMoney;
   }
   public OrderItem() {
   }
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public Boolean getIsGift() {
      return isGift;
   }
   public void setIsGift(Boolean isGift) {
      this.isGift = isGift;
   }
   public String getPicture() {
      return picture;
   }
   public void setPicture(String picture) {
      this.picture = picture;
   }
   public Integer getVersion() {
      return version;
   }
   public void setVersion(Integer version) {
      this.version = version;
   }
   public void setDesc(String desc) {
      this.desc = desc;
   }
   public String getTitle() {
      return title;
   }
   public void setTitle(String title) {
      this.title = title;
   }
   public String getOrderId() {
      return orderId;
   }
   public void setOrderId(String orderId) {
      this.orderId = orderId;
   }
   public Integer getType() {
      return type;
   }
   public void setType(Integer type) {
      this.type = type;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   public BigDecimal getPayMoney() {
      return payMoney;
   }
   public void setPayMoney(BigDecimal payMoney) {
      this.payMoney = payMoney;
   }
   public BigDecimal getFanMoney() {
      return fanMoney;
   }
   public void setFanMoney(BigDecimal fanMoney) {
      this.fanMoney = fanMoney;
   }
   public Long getCreateTime() {
      return createTime;
   }
   public void setCreateTime(Long createTime) {
      this.createTime = createTime;
   }
   public UserInfo getUserInfo() {
      return userInfo;
   }
   public void setUserInfo(UserInfo userInfo) {
      this.userInfo = userInfo;
   }
   public Order getOrder() {
      return order;
   }
   public void setOrder(Order order) {
      this.order = order;
   }
   public Long getAuctionId() {
      return auctionId;
   }
   public void setAuctionId(Long auctionId) {
      this.auctionId = auctionId;
   }
   public Long getSettlementTime() {
      return settlementTime;
   }
   public void setSettlementTime(Long settlementTime) {
      this.settlementTime = settlementTime;
   }
   public Long getFanTime() {
      return fanTime;
   }
   public void setFanTime(Long fanTime) {
      this.fanTime = fanTime;
   }
   public Long getRefundTime() {
      return refundTime;
   }
   public void setRefundTime(Long refundTime) {
      this.refundTime = refundTime;
   }
   public String getDesc() {
      return desc;
   }
   public void setDesc() {
      if (state == -1) {
         this.desc = "退款订单不返利";
         this.stateDesc = "已退款";
      } else if (state == 1) {
         this.desc = "确认收货15天后即可到账";
         this.stateDesc = "未到账";
      } else if (state == 2) {
         this.desc = "确认收货15天后即可到账";
         this.stateDesc = "未到账";
      } else if (state == 3) {
         this.desc = "已自动转入你的余额";
         this.stateDesc = "已到账";
      } else if (state == 4) {
         this.desc = "售后订单无返利";
         this.stateDesc = "已售后";
      }
   }
}
package com.yeshi.fanli.dto.order;
import java.math.BigDecimal;
import com.google.gson.annotations.Expose;
import com.yeshi.fanli.entity.bus.user.Order;
import com.yeshi.fanli.entity.bus.user.UserInfo;
public class OrderItem {
   // -1:退款 1已支付 2结算 3已到账 4售后
   public final static int STATE_TUIKUAN = -1;
   public final static int STATE_YIZHIFU = 1;
   public final static int STATE_JIESUAN = 2;
   public final static int STATE_DAOZHANG = 3;
   public final static int STATE_SHOUHOU = 4;
   private Long id;
   public OrderItem(Long id) {
      this.id = id;
   }
   @Expose
   private String picture;// 图片
   @Expose
   private String auctionId;// 商品ID
   @Expose
   private String title;// 商品名称
   @Expose
   private String orderId;// 订单号
   private Integer type;// 订单类型
   @Expose
   private Integer state; // -1:退款 1已支付 2结算 3已到账 4售后
   @Expose
   private BigDecimal payMoney;// 付款金额
   @Expose
   private BigDecimal fanMoney;// 返利金额
   @Expose
   private Long createTime;
   private Long settlementTime;// 结算时间
   private Long refundTime;// 退款时间
   private Long fanTime;// 返利时间
   private Boolean isGift;// 是否有分销提成 true:有
   @Expose
   private String desc;
   private UserInfo userInfo;
   private Order order;
   private Integer version;// 版本1.2.3之前为1 后为2
   private BigDecimal prePayMoney;
   @Expose
   private String stateDesc;// 状态简介
   public String getStateDesc() {
      return stateDesc;
   }
   public void setStateDesc(String stateDesc) {
      this.stateDesc = stateDesc;
   }
   public BigDecimal getPrePayMoney() {
      return prePayMoney;
   }
   public void setPrePayMoney(BigDecimal prePayMoney) {
      this.prePayMoney = prePayMoney;
   }
   public OrderItem() {
   }
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public Boolean getIsGift() {
      return isGift;
   }
   public void setIsGift(Boolean isGift) {
      this.isGift = isGift;
   }
   public String getPicture() {
      return picture;
   }
   public void setPicture(String picture) {
      this.picture = picture;
   }
   public Integer getVersion() {
      return version;
   }
   public void setVersion(Integer version) {
      this.version = version;
   }
   public void setDesc(String desc) {
      this.desc = desc;
   }
   public String getTitle() {
      return title;
   }
   public void setTitle(String title) {
      this.title = title;
   }
   public String getOrderId() {
      return orderId;
   }
   public void setOrderId(String orderId) {
      this.orderId = orderId;
   }
   public Integer getType() {
      return type;
   }
   public void setType(Integer type) {
      this.type = type;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   public BigDecimal getPayMoney() {
      return payMoney;
   }
   public void setPayMoney(BigDecimal payMoney) {
      this.payMoney = payMoney;
   }
   public BigDecimal getFanMoney() {
      return fanMoney;
   }
   public void setFanMoney(BigDecimal fanMoney) {
      this.fanMoney = fanMoney;
   }
   public Long getCreateTime() {
      return createTime;
   }
   public void setCreateTime(Long createTime) {
      this.createTime = createTime;
   }
   public UserInfo getUserInfo() {
      return userInfo;
   }
   public void setUserInfo(UserInfo userInfo) {
      this.userInfo = userInfo;
   }
   public Order getOrder() {
      return order;
   }
   public void setOrder(Order order) {
      this.order = order;
   }
   public String getAuctionId() {
      return auctionId;
   }
   public void setAuctionId(String auctionId) {
      this.auctionId = auctionId;
   }
   public Long getSettlementTime() {
      return settlementTime;
   }
   public void setSettlementTime(Long settlementTime) {
      this.settlementTime = settlementTime;
   }
   public Long getFanTime() {
      return fanTime;
   }
   public void setFanTime(Long fanTime) {
      this.fanTime = fanTime;
   }
   public Long getRefundTime() {
      return refundTime;
   }
   public void setRefundTime(Long refundTime) {
      this.refundTime = refundTime;
   }
   public String getDesc() {
      return desc;
   }
   public void setDesc() {
      if (state == -1) {
         this.desc = "退款订单不返利";
         this.stateDesc = "已退款";
      } else if (state == 1) {
         this.desc = "确认收货15天后即可到账";
         this.stateDesc = "未到账";
      } else if (state == 2) {
         this.desc = "确认收货15天后即可到账";
         this.stateDesc = "未到账";
      } else if (state == 3) {
         this.desc = "已自动转入你的余额";
         this.stateDesc = "已到账";
      } else if (state == 4) {
         this.desc = "售后订单无返利";
         this.stateDesc = "已售后";
      }
   }
}