677 lines
15 KiB
Java
677 lines
15 KiB
Java
package com.cowr.model.base;
|
||
|
||
import com.cowr.common.base.BaseModel;
|
||
import com.jfinal.plugin.activerecord.IBean;
|
||
import com.alibaba.fastjson.annotation.JSONField;
|
||
|
||
/**
|
||
* Generated by COWR Wed Jul 01 11:46:36 CST 2020
|
||
* TableName: order_purchase
|
||
* Remarks: 订单相关 - 从采购点购买
|
||
* PrimaryKey: sn
|
||
*/
|
||
@SuppressWarnings("serial")
|
||
public abstract class BaseOrderPurchase<M extends BaseOrderPurchase<M>> extends BaseModel<M> implements IBean {
|
||
|
||
public static final String tablename = "order_purchase";
|
||
|
||
@JSONField(serialize=false)
|
||
public String getTablename(){
|
||
return tablename;
|
||
}
|
||
|
||
/**
|
||
* name: sn
|
||
* type: CHAR(16)
|
||
* isNullable: NO
|
||
* isPrimaryKey: YES
|
||
* defaultValue:
|
||
* @param sn YYYYMMDD + 两位销售点id(避免离线生成订单号重复) + 两位订单类型 + 四位序列号
|
||
*/
|
||
@JSONField(name="sn")
|
||
public void setSn(String sn) {
|
||
set("sn", sn);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return sn YYYYMMDD + 两位销售点id(避免离线生成订单号重复) + 两位订单类型 + 四位序列号
|
||
*/
|
||
@JSONField(name="sn")
|
||
public String getSn() {
|
||
return getStr("sn");
|
||
}
|
||
|
||
/**
|
||
* name: uuid
|
||
* type: CHAR(32)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param uuid UUID 唯一验证
|
||
*/
|
||
@JSONField(name="uuid")
|
||
public void setUuid(String uuid) {
|
||
set("uuid", uuid);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return uuid UUID 唯一验证
|
||
*/
|
||
@JSONField(name="uuid")
|
||
public String getUuid() {
|
||
return getStr("uuid");
|
||
}
|
||
|
||
/**
|
||
* name: transport_id
|
||
* type: CHAR(32)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transportId 出入场记录id
|
||
*/
|
||
@JSONField(name="transport_id")
|
||
public void setTransportId(String transportId) {
|
||
set("transport_id", transportId);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return transport_id 出入场记录id
|
||
*/
|
||
@JSONField(name="transport_id")
|
||
public String getTransportId() {
|
||
return getStr("transport_id");
|
||
}
|
||
|
||
/**
|
||
* name: supermarket_id
|
||
* type: INT(10)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param supermarketId 超市id
|
||
*/
|
||
@JSONField(name="supermarket_id")
|
||
public void setSupermarketId(Integer supermarketId) {
|
||
set("supermarket_id", supermarketId);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return supermarket_id 超市id
|
||
*/
|
||
@JSONField(name="supermarket_id")
|
||
public Integer getSupermarketId() {
|
||
return getInt("supermarket_id");
|
||
}
|
||
|
||
/**
|
||
* name: purchase_id
|
||
* type: INT(10)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param purchaseId 砂场(采购点)id
|
||
*/
|
||
@JSONField(name="purchase_id")
|
||
public void setPurchaseId(Integer purchaseId) {
|
||
set("purchase_id", purchaseId);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return purchase_id 砂场(采购点)id
|
||
*/
|
||
@JSONField(name="purchase_id")
|
||
public Integer getPurchaseId() {
|
||
return getInt("purchase_id");
|
||
}
|
||
|
||
/**
|
||
* name: weight
|
||
* type: DECIMAL(12,2)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param weight 运输重量
|
||
*/
|
||
@JSONField(name="weight")
|
||
public void setWeight(java.math.BigDecimal weight) {
|
||
set("weight", weight);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return weight 运输重量
|
||
*/
|
||
@JSONField(name="weight")
|
||
public java.math.BigDecimal getWeight() {
|
||
return get("weight");
|
||
}
|
||
|
||
/**
|
||
* name: source_weight
|
||
* type: DECIMAL(12,2)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param sourceWeight 底单重量,从采购点出场的重量
|
||
*/
|
||
@JSONField(name="source_weight")
|
||
public void setSourceWeight(java.math.BigDecimal sourceWeight) {
|
||
set("source_weight", sourceWeight);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return source_weight 底单重量,从采购点出场的重量
|
||
*/
|
||
@JSONField(name="source_weight")
|
||
public java.math.BigDecimal getSourceWeight() {
|
||
return get("source_weight");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_id
|
||
* type: INT(10)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoId 物流公司
|
||
*/
|
||
@JSONField(name="trans_co_id")
|
||
public void setTransCoId(Integer transCoId) {
|
||
set("trans_co_id", transCoId);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_id 物流公司
|
||
*/
|
||
@JSONField(name="trans_co_id")
|
||
public Integer getTransCoId() {
|
||
return getInt("trans_co_id");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_name
|
||
* type: VARCHAR(128)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoName
|
||
*/
|
||
@JSONField(name="trans_co_name")
|
||
public void setTransCoName(String transCoName) {
|
||
set("trans_co_name", transCoName);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_name
|
||
*/
|
||
@JSONField(name="trans_co_name")
|
||
public String getTransCoName() {
|
||
return getStr("trans_co_name");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_texpayer_name
|
||
* type: VARCHAR(255)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoTexpayerName 物流公司开票公司名称
|
||
*/
|
||
@JSONField(name="trans_co_texpayer_name")
|
||
public void setTransCoTexpayerName(String transCoTexpayerName) {
|
||
set("trans_co_texpayer_name", transCoTexpayerName);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_texpayer_name 物流公司开票公司名称
|
||
*/
|
||
@JSONField(name="trans_co_texpayer_name")
|
||
public String getTransCoTexpayerName() {
|
||
return getStr("trans_co_texpayer_name");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_texpayer_num
|
||
* type: VARCHAR(20)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoTexpayerNum
|
||
*/
|
||
@JSONField(name="trans_co_texpayer_num")
|
||
public void setTransCoTexpayerNum(String transCoTexpayerNum) {
|
||
set("trans_co_texpayer_num", transCoTexpayerNum);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_texpayer_num
|
||
*/
|
||
@JSONField(name="trans_co_texpayer_num")
|
||
public String getTransCoTexpayerNum() {
|
||
return getStr("trans_co_texpayer_num");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_address
|
||
* type: VARCHAR(256)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoAddress
|
||
*/
|
||
@JSONField(name="trans_co_address")
|
||
public void setTransCoAddress(String transCoAddress) {
|
||
set("trans_co_address", transCoAddress);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_address
|
||
*/
|
||
@JSONField(name="trans_co_address")
|
||
public String getTransCoAddress() {
|
||
return getStr("trans_co_address");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_phone
|
||
* type: CHAR(11)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoPhone
|
||
*/
|
||
@JSONField(name="trans_co_phone")
|
||
public void setTransCoPhone(String transCoPhone) {
|
||
set("trans_co_phone", transCoPhone);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_phone
|
||
*/
|
||
@JSONField(name="trans_co_phone")
|
||
public String getTransCoPhone() {
|
||
return getStr("trans_co_phone");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_bank_name
|
||
* type: VARCHAR(128)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoBankName
|
||
*/
|
||
@JSONField(name="trans_co_bank_name")
|
||
public void setTransCoBankName(String transCoBankName) {
|
||
set("trans_co_bank_name", transCoBankName);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_bank_name
|
||
*/
|
||
@JSONField(name="trans_co_bank_name")
|
||
public String getTransCoBankName() {
|
||
return getStr("trans_co_bank_name");
|
||
}
|
||
|
||
/**
|
||
* name: trans_co_bank_account
|
||
* type: VARCHAR(20)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transCoBankAccount
|
||
*/
|
||
@JSONField(name="trans_co_bank_account")
|
||
public void setTransCoBankAccount(String transCoBankAccount) {
|
||
set("trans_co_bank_account", transCoBankAccount);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_co_bank_account
|
||
*/
|
||
@JSONField(name="trans_co_bank_account")
|
||
public String getTransCoBankAccount() {
|
||
return getStr("trans_co_bank_account");
|
||
}
|
||
|
||
/**
|
||
* name: truck_license
|
||
* type: VARCHAR(10)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param truckLicense 车牌号
|
||
*/
|
||
@JSONField(name="truck_license")
|
||
public void setTruckLicense(String truckLicense) {
|
||
set("truck_license", truckLicense);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return truck_license 车牌号
|
||
*/
|
||
@JSONField(name="truck_license")
|
||
public String getTruckLicense() {
|
||
return getStr("truck_license");
|
||
}
|
||
|
||
/**
|
||
* name: state
|
||
* type: SMALLINT(5)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue: 1
|
||
* @param state 1,初始状态;
|
||
2,已进场;(后台自动设置)
|
||
3,已装载
|
||
4,已离场(
|
||
后台自动设置)
|
||
5,已收货
|
||
9,订单作废
|
||
|
||
*/
|
||
@JSONField(name="state")
|
||
public void setState(Integer state) {
|
||
set("state", state);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return state 1,初始状态;
|
||
2,已进场;(后台自动设置)
|
||
3,已装载
|
||
4,已离场(
|
||
后台自动设置)
|
||
5,已收货
|
||
9,订单作废
|
||
|
||
*/
|
||
@JSONField(name="state")
|
||
public Integer getState() {
|
||
return getInt("state");
|
||
}
|
||
|
||
/**
|
||
* name: trans_distance
|
||
* type: DECIMAL(12,2)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transDistance 运距
|
||
*/
|
||
@JSONField(name="trans_distance")
|
||
public void setTransDistance(java.math.BigDecimal transDistance) {
|
||
set("trans_distance", transDistance);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_distance 运距
|
||
*/
|
||
@JSONField(name="trans_distance")
|
||
public java.math.BigDecimal getTransDistance() {
|
||
return get("trans_distance");
|
||
}
|
||
|
||
/**
|
||
* name: trans_price
|
||
* type: DECIMAL(10,2)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transPrice 运费
|
||
*/
|
||
@JSONField(name="trans_price")
|
||
public void setTransPrice(java.math.BigDecimal transPrice) {
|
||
set("trans_price", transPrice);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_price 运费
|
||
*/
|
||
@JSONField(name="trans_price")
|
||
public java.math.BigDecimal getTransPrice() {
|
||
return get("trans_price");
|
||
}
|
||
|
||
/**
|
||
* name: trans_unit_price
|
||
* type: DECIMAL(12,2)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param transUnitPrice 运输单价
|
||
*/
|
||
@JSONField(name="trans_unit_price")
|
||
public void setTransUnitPrice(java.math.BigDecimal transUnitPrice) {
|
||
set("trans_unit_price", transUnitPrice);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return trans_unit_price 运输单价
|
||
*/
|
||
@JSONField(name="trans_unit_price")
|
||
public java.math.BigDecimal getTransUnitPrice() {
|
||
return get("trans_unit_price");
|
||
}
|
||
|
||
/**
|
||
* name: create_time
|
||
* type: DATETIME(19)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param createTime
|
||
*/
|
||
@JSONField(name="create_time")
|
||
public void setCreateTime(java.util.Date createTime) {
|
||
set("create_time", createTime);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return create_time
|
||
*/
|
||
@JSONField(name="create_time")
|
||
public java.util.Date getCreateTime() {
|
||
return get("create_time");
|
||
}
|
||
|
||
/**
|
||
* name: create_user_id
|
||
* type: INT(10)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param createUserId
|
||
*/
|
||
@JSONField(name="create_user_id")
|
||
public void setCreateUserId(Integer createUserId) {
|
||
set("create_user_id", createUserId);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return create_user_id
|
||
*/
|
||
@JSONField(name="create_user_id")
|
||
public Integer getCreateUserId() {
|
||
return getInt("create_user_id");
|
||
}
|
||
|
||
/**
|
||
* name: create_user_name
|
||
* type: VARCHAR(20)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param createUserName 创建用户名
|
||
*/
|
||
@JSONField(name="create_user_name")
|
||
public void setCreateUserName(String createUserName) {
|
||
set("create_user_name", createUserName);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return create_user_name 创建用户名
|
||
*/
|
||
@JSONField(name="create_user_name")
|
||
public String getCreateUserName() {
|
||
return getStr("create_user_name");
|
||
}
|
||
|
||
/**
|
||
* name: settlement_user_id
|
||
* type: INT(10)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param settlementUserId 结算用户id
|
||
*/
|
||
@JSONField(name="settlement_user_id")
|
||
public void setSettlementUserId(Integer settlementUserId) {
|
||
set("settlement_user_id", settlementUserId);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return settlement_user_id 结算用户id
|
||
*/
|
||
@JSONField(name="settlement_user_id")
|
||
public Integer getSettlementUserId() {
|
||
return getInt("settlement_user_id");
|
||
}
|
||
|
||
/**
|
||
* name: settlement_user_name
|
||
* type: VARCHAR(20)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param settlementUserName 结算用户名
|
||
*/
|
||
@JSONField(name="settlement_user_name")
|
||
public void setSettlementUserName(String settlementUserName) {
|
||
set("settlement_user_name", settlementUserName);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return settlement_user_name 结算用户名
|
||
*/
|
||
@JSONField(name="settlement_user_name")
|
||
public String getSettlementUserName() {
|
||
return getStr("settlement_user_name");
|
||
}
|
||
|
||
/**
|
||
* name: change_time
|
||
* type: TIMESTAMP(19)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue: CURRENT_TIMESTAMP
|
||
* @param changeTime 最后修改时间
|
||
*/
|
||
@JSONField(name="change_time")
|
||
public void setChangeTime(java.util.Date changeTime) {
|
||
set("change_time", changeTime);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return change_time 最后修改时间
|
||
*/
|
||
@JSONField(name="change_time")
|
||
public java.util.Date getChangeTime() {
|
||
return get("change_time");
|
||
}
|
||
|
||
/**
|
||
* name: product_id
|
||
* type: INT(10)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param productId 品类id
|
||
*/
|
||
@JSONField(name="product_id")
|
||
public void setProductId(Integer productId) {
|
||
set("product_id", productId);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return product_id 品类id
|
||
*/
|
||
@JSONField(name="product_id")
|
||
public Integer getProductId() {
|
||
return getInt("product_id");
|
||
}
|
||
|
||
/**
|
||
* name: product_name
|
||
* type: VARCHAR(255)
|
||
* isNullable: NO
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param productName 品类名称
|
||
*/
|
||
@JSONField(name="product_name")
|
||
public void setProductName(String productName) {
|
||
set("product_name", productName);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return product_name 品类名称
|
||
*/
|
||
@JSONField(name="product_name")
|
||
public String getProductName() {
|
||
return getStr("product_name");
|
||
}
|
||
|
||
/**
|
||
* name: old_sn
|
||
* type: CHAR(13)
|
||
* isNullable: YES
|
||
* isPrimaryKey: NO
|
||
* defaultValue:
|
||
* @param oldSn 兼容旧系统的数据
|
||
*/
|
||
@JSONField(name="old_sn")
|
||
public void setOldSn(String oldSn) {
|
||
set("old_sn", oldSn);
|
||
}
|
||
|
||
|
||
/**
|
||
* @return old_sn 兼容旧系统的数据
|
||
*/
|
||
@JSONField(name="old_sn")
|
||
public String getOldSn() {
|
||
return getStr("old_sn");
|
||
}
|
||
|
||
|
||
}
|