package com.smart.manager.k3cloud;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
/**
* 寄售待结算单据
* @author Yjr
* @date 2022-04-14 14:20
**/
public class ConsignmentPreSettlementAuditEventDTO implements Serializable {
private static final long serialVersionUID = 7762472469451925411L;
/**
* 寄售待结算单据id
*/
private Long id;
/**
* 单据编码
*/
private String code;
/**
* 卖家商铺id
*/
private Long sellerMallId;
/**
* 买家商铺id
*/
private Long buyerMallId;
/**
* 结算开始日期
*/
// @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
// @JsonDeserialize(using = LocalDateTimeDeserializer.class)
// @JsonSerialize(using = LocalDateTimeSerializer.class)
private LocalDateTime settlementDateStart;
/**
* 结算结束日期
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonSerialize(using = LocalDateTimeSerializer.class)
private LocalDateTime settlementDateEnd;
/**
* 寄售仓库id
*/
private Long depotId;
/**
* 状态 0:待提交 1:审核中 2:审核通过 3:驳回 4:作废
*/
private String status;
/**
* 审核时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonSerialize(using = LocalDateTimeSerializer.class)
private LocalDateTime auditTime;
/**
* 审核人
*/
private Long auditBy;
/**
* 数据来源 1-手工制单 3-核销记录
*/
private String source;
/**
* 删除标识【0:删除】【1:未删除】
*/
private Integer enabled;
/**
* 备注
*/
private String remarks;
/**
* 创建人
*/
private Long createdBy;
/**
* 创建时间
*/
// @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
// @JsonDeserialize(using = LocalDateTimeDeserializer.class)
// @JsonSerialize(using = LocalDateTimeSerializer.class)
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createdTime;
/**
* 修改人
*/
private Long lastModifiedBy;
/**
* 修改时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonSerialize(using = LocalDateTimeSerializer.class)
private LocalDateTime lastModifiedTime;
private List<ConsignmentPreSettlementSkuDTO> consignmentPreSettlementSkuDTOList;
public List<ConsignmentPreSettlementSkuDTO> getConsignmentPreSettlementSkuDTOList() {
return consignmentPreSettlementSkuDTOList;
}
public void setConsignmentPreSettlementSkuDTOList(List<ConsignmentPreSettlementSkuDTO> consignmentPreSettlementSkuDTOList) {
this.consignmentPreSettlementSkuDTOList = consignmentPreSettlementSkuDTOList;
}
/**
* 版本号
*/
private Integer version;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Long getSellerMallId() {
return sellerMallId;
}
public void setSellerMallId(Long sellerMallId) {
this.sellerMallId = sellerMallId;
}
public Long getBuyerMallId() {
return buyerMallId;
}
public void setBuyerMallId(Long buyerMallId) {
this.buyerMallId = buyerMallId;
}
public LocalDateTime getSettlementDateStart() {
return settlementDateStart;
}
public void setSettlementDateStart(LocalDateTime settlementDateStart) {
this.settlementDateStart = settlementDateStart;
}
public LocalDateTime getSettlementDateEnd() {
return settlementDateEnd;
}
public void setSettlementDateEnd(LocalDateTime settlementDateEnd) {
this.settlementDateEnd = settlementDateEnd;
}
public Long getDepotId() {
return depotId;
}
public void setDepotId(Long depotId) {
this.depotId = depotId;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public LocalDateTime getAuditTime() {
return auditTime;
}
public void setAuditTime(LocalDateTime auditTime) {
this.auditTime = auditTime;
}
public Long getAuditBy() {
return auditBy;
}
public void setAuditBy(Long auditBy) {
this.auditBy = auditBy;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public Integer getEnabled() {
return enabled;
}
public void setEnabled(Integer enabled) {
this.enabled = enabled;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public Long getCreatedBy() {
return createdBy;
}
public void setCreatedBy(Long createdBy) {
this.createdBy = createdBy;
}
public LocalDateTime getCreatedTime() {
return createdTime;
}
public void setCreatedTime(LocalDateTime createdTime) {
this.createdTime = createdTime;
}
public Long getLastModifiedBy() {
return lastModifiedBy;
}
public void setLastModifiedBy(Long lastModifiedBy) {
this.lastModifiedBy = lastModifiedBy;
}
public LocalDateTime getLastModifiedTime() {
return lastModifiedTime;
}
public void setLastModifiedTime(LocalDateTime lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
public static class ConsignmentPreSettlementSkuDTO implements Serializable {
private static final long serialVersionUID = 8302787623740804113L;
/**
* 待结算单id
*/
private Long preSettlementDocumentId;
/**
* skuid
*/
private Long skuId;
/**
* 结算数量
*/
private Integer quantity;
public Long getPreSettlementDocumentId() {
return preSettlementDocumentId;
}
public void setPreSettlementDocumentId(Long preSettlementDocumentId) {
this.preSettlementDocumentId = preSettlementDocumentId;
}
public Long getSkuId() {
return skuId;
}
public void setSkuId(Long skuId) {
this.skuId = skuId;
}
public Integer getQuantity() {
return quantity;
}