package zy.cloud.wms.manager.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.core.common.Cools;
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.io.Serializable;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
@TableName("man_cust_order")
|
public class CustOrder implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 销售单号
|
*/
|
@ApiModelProperty(value= "销售单号")
|
private String number;
|
|
/**
|
* 单据日期
|
*/
|
@ApiModelProperty(value= "单据日期")
|
@TableField("bill_date")
|
private String billDate;
|
|
/**
|
* 客户编号
|
*/
|
@ApiModelProperty(value= "客户编号")
|
@TableField("bType_id")
|
private String bTypeId;
|
|
/**
|
* 经手人编号
|
*/
|
@ApiModelProperty(value= "经手人编号")
|
@TableField("eType_id")
|
private String eTypeId;
|
|
/**
|
* 单据自增ID
|
*/
|
@ApiModelProperty(value= "单据自增ID")
|
@TableField("vch_code")
|
private Double vchcode;
|
|
/**
|
* 商品编号
|
*/
|
@ApiModelProperty(value= "商品编号")
|
@TableField("user_code")
|
private String userCode;
|
|
/**
|
* 商品数量
|
*/
|
@ApiModelProperty(value= "商品数量")
|
private Double qty;
|
|
/**
|
* 总数量
|
*/
|
@ApiModelProperty(value= "总数量")
|
private Double total;
|
|
/**
|
* 商品单价
|
*/
|
@ApiModelProperty(value= "商品单价")
|
private Double price;
|
|
/**
|
* 商品单价
|
*/
|
@ApiModelProperty(value= "商品单价")
|
@TableField("row_no")
|
private Double rowNo;
|
|
/**
|
* 商品备注
|
*/
|
@ApiModelProperty(value= "商品备注")
|
private String comment;
|
|
/**
|
* 状态 1: 待处理 2: 已完成 3: 取消 4: 异常
|
*/
|
@ApiModelProperty(value= "状态 0: 载入中 1: 待处理 2: 未拣货 3: 取消 4: 已完成 ")
|
private Integer status;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@TableField("create_time")
|
private Date createTime;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("update_time")
|
private Date updateTime;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
public CustOrder() {}
|
|
public CustOrder(String number,String billDate,String bTypeId,String eTypeId,Double vchcode,String userCode,Double qty,Double total,Double price, Double rowNo, String comment,Integer status,Date createTime,Date updateTime,String memo) {
|
this.number = number;
|
this.billDate = billDate;
|
this.bTypeId = bTypeId;
|
this.eTypeId = eTypeId;
|
this.vchcode = vchcode;
|
this.userCode = userCode;
|
this.qty = qty;
|
this.total = total;
|
this.price = price;
|
this.rowNo = rowNo;
|
this.comment = comment;
|
this.status = status;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.memo = memo;
|
}
|
|
// CustOrder custOrder = new CustOrder(
|
// null, // 销售单号
|
// null, // 单据日期[非空]
|
// null, // 客户编号
|
// null, // 经手人编号[非空]
|
// null, // 商品编号
|
// null, // 商品数量
|
// null, // 商品单价
|
// null, // 商品备注[非空]
|
// null, // 状态
|
// null, // 添加时间
|
// null, // 修改时间
|
// null // 备注
|
// );
|
|
public String getNumber() {
|
return number;
|
}
|
|
public void setNumber(String number) {
|
this.number = number;
|
}
|
|
public String getBillDate() {
|
return billDate;
|
}
|
|
public void setBillDate(String billDate) {
|
this.billDate = billDate;
|
}
|
|
public String getBTypeId() {
|
return bTypeId;
|
}
|
|
public void setBTypeId(String bTypeId) {
|
this.bTypeId = bTypeId;
|
}
|
|
public String getETypeId() {
|
return eTypeId;
|
}
|
|
public void setETypeId(String eTypeId) {
|
this.eTypeId = eTypeId;
|
}
|
|
public String getUserCode() {
|
return userCode;
|
}
|
|
public void setUserCode(String userCode) {
|
this.userCode = userCode;
|
}
|
|
public Double getQty() {
|
return qty;
|
}
|
|
public void setQty(Double qty) {
|
this.qty = qty;
|
}
|
|
public Double getTotal() {
|
return total;
|
}
|
|
public void setTotal(Double total) {
|
this.total = total;
|
}
|
|
public Double getPrice() {
|
return price;
|
}
|
|
public void setPrice(Double price) {
|
this.price = price;
|
}
|
|
public Double getRowNo() {
|
return rowNo;
|
}
|
|
public void setRowNo(Double rowNo) {
|
this.rowNo = rowNo;
|
}
|
|
public String getComment() {
|
return comment;
|
}
|
|
public void setComment(String comment) {
|
this.comment = comment;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public String getStatus$(){
|
if (null == this.status){ return null; }
|
switch (this.status){
|
case 0:
|
return "载入中";
|
case 1:
|
return "待处理";
|
case 2:
|
return "未拣货";
|
case 3:
|
return "取消";
|
case 4:
|
return "已完成";
|
default:
|
return String.valueOf(this.status);
|
}
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public String getCreateTime$(){
|
if (Cools.isEmpty(this.createTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public String getUpdateTime$(){
|
if (Cools.isEmpty(this.updateTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getMemo() {
|
return memo;
|
}
|
|
public void setMemo(String memo) {
|
this.memo = memo;
|
}
|
|
public Double getVchcode() {
|
return vchcode;
|
}
|
|
public void setVchcode(Double vchcode) {
|
this.vchcode = vchcode;
|
}
|
}
|