package com.ltkj.mall.domain;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import com.ltkj.common.annotation.Excel;
|
import com.ltkj.common.core.domain.BaseEntity;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
/**
|
* 售后对象 mall_aftersale
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-07-12
|
*/
|
@Data
|
@ApiModel(value = "售后表")
|
public class MallAftersale extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@TableId(type = IdType.AUTO)
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long id;
|
/**
|
* 售后编号
|
*/
|
@Excel(name = "售后编号")
|
@ApiModelProperty(value = "售后编号")
|
private String aftersaleSn;
|
/**
|
* 订单ID
|
*/
|
@Excel(name = "订单ID")
|
@ApiModelProperty(value = "订单ID")
|
private String orderId;
|
/**
|
* 用户ID
|
*/
|
@Excel(name = "用户ID")
|
@ApiModelProperty(value = "用户ID")
|
private Long userId;
|
|
@Excel(name = "体检人身份证号")
|
@ApiModelProperty(value = "体检人身份证号")
|
private String cusIdCard;
|
|
@Excel(name = "体检人姓名")
|
@ApiModelProperty(value = "体检人姓名")
|
private String cusName;
|
|
|
|
/**
|
* 售后类型,0是未收货退款,1是已收货(无需退货)退款,2用户退货退款
|
*/
|
@Excel(name = "售后类型,0是未收货退款,1是已收货", readConverterExp = "无=需退货")
|
@ApiModelProperty(value = "售后类型,0是未收货退款,1是已收货")
|
private Long type;
|
/**
|
* 退款原因
|
*/
|
@Excel(name = "退款原因")
|
@ApiModelProperty(value = "退款原因")
|
private String reason;
|
/**
|
* 退款金额
|
*/
|
@Excel(name = "退款金额")
|
@ApiModelProperty(value = "退款金额")
|
private BigDecimal amount;
|
/**
|
* 退款凭证图片链接数组
|
*/
|
@Excel(name = "退款凭证图片链接数组")
|
@ApiModelProperty(value = "退款凭证图片链接数组")
|
private String pictures;
|
/**
|
* 退款说明
|
*/
|
@Excel(name = "退款说明")
|
@ApiModelProperty(value = "退款说明")
|
private String comment;
|
/**
|
* 售后状态,0是可申请,1是用户已申请,2是管理员审核通过,3是管理员退款成功,4是管理员审核拒绝,5是用户已取消
|
*/
|
@Excel(name = "售后状态,0是可申请,1是用户已申请,2是管理员审核通过,3是管理员退款成功,4是管理员审核拒绝,5是用户已取消")
|
@ApiModelProperty(value = "售后状态,0是可申请,1是用户已申请,2是管理员审核通过,3是管理员退款成功,4是管理员审核拒绝,5是用户已取消")
|
private Long status;
|
/**
|
* 管理员操作时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "管理员操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty(value = "管理员操作时间")
|
private Date handleTime;
|
@TableField(exist = false)
|
private List<MallOrderGoods> orderGoodsList;
|
|
@TableField(exist = false)
|
private String startTime;
|
|
|
@TableField(exist = false)
|
private String endTime;
|
|
/**
|
* 收货人名称
|
*/
|
@TableField(exist = false)
|
private String consignee;
|
|
/**
|
* 收货人手机号
|
*/
|
@TableField(exist = false)
|
private String mobile;
|
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setAftersaleSn(String aftersaleSn) {
|
this.aftersaleSn = aftersaleSn;
|
}
|
|
public String getAftersaleSn() {
|
return aftersaleSn;
|
}
|
|
public void setOrderId(String orderId) {
|
this.orderId = orderId;
|
}
|
|
public String getOrderId() {
|
return orderId;
|
}
|
|
public void setUserId(Long userId) {
|
this.userId = userId;
|
}
|
|
public Long getUserId() {
|
return userId;
|
}
|
|
public void setType(Long type) {
|
this.type = type;
|
}
|
|
public Long getType() {
|
return type;
|
}
|
|
public void setReason(String reason) {
|
this.reason = reason;
|
}
|
|
public String getReason() {
|
return reason;
|
}
|
|
public void setAmount(BigDecimal amount) {
|
this.amount = amount;
|
}
|
|
public BigDecimal getAmount() {
|
return amount;
|
}
|
|
public void setPictures(String pictures) {
|
this.pictures = pictures;
|
}
|
|
public String getPictures() {
|
return pictures;
|
}
|
|
public void setComment(String comment) {
|
this.comment = comment;
|
}
|
|
public String getComment() {
|
return comment;
|
}
|
|
public void setStatus(Long status) {
|
this.status = status;
|
}
|
|
public Long getStatus() {
|
return status;
|
}
|
|
public void setHandleTime(Date handleTime) {
|
this.handleTime = handleTime;
|
}
|
|
public Date getHandleTime() {
|
return handleTime;
|
}
|
|
@Override
|
public String toString() {
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
.append("id", getId())
|
.append("aftersaleSn", getAftersaleSn())
|
.append("orderId", getOrderId())
|
.append("userId", getUserId())
|
.append("type", getType())
|
.append("reason", getReason())
|
.append("amount", getAmount())
|
.append("pictures", getPictures())
|
.append("comment", getComment())
|
.append("status", getStatus())
|
.append("handleTime", getHandleTime())
|
.append("createTime", getCreateTime())
|
.append("createBy", getCreateBy())
|
.append("updateTime", getUpdateTime())
|
.append("updateBy", getUpdateBy())
|
.append("deleted", getDeleted())
|
.toString();
|
}
|
}
|