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 Sun May 17 21:43:18 CST 2020 * TableName: order_sale * Remarks: 订单相关 - 销售单 * PrimaryKey: sn */ @SuppressWarnings("serial") public abstract class BaseOrderSale> extends BaseModel implements IBean { public static final String tablename = "order_sale"; @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: customer_id * type: INT(10) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerId */ @JSONField(name="customer_id") public void setCustomerId(Integer customerId) { set("customer_id", customerId); } /** * @return customer_id */ @JSONField(name="customer_id") public Integer getCustomerId() { return getInt("customer_id"); } /** * name: customer_name * type: VARCHAR(128) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerName */ @JSONField(name="customer_name") public void setCustomerName(String customerName) { set("customer_name", customerName); } /** * @return customer_name */ @JSONField(name="customer_name") public String getCustomerName() { return getStr("customer_name"); } /** * name: customer_texpayer_name * type: VARCHAR(255) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerTexpayerName 客户开票公司名称 */ @JSONField(name="customer_texpayer_name") public void setCustomerTexpayerName(String customerTexpayerName) { set("customer_texpayer_name", customerTexpayerName); } /** * @return customer_texpayer_name 客户开票公司名称 */ @JSONField(name="customer_texpayer_name") public String getCustomerTexpayerName() { return getStr("customer_texpayer_name"); } /** * name: customer_texpayer_num * type: VARCHAR(20) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerTexpayerNum 客户纳税人识别号 */ @JSONField(name="customer_texpayer_num") public void setCustomerTexpayerNum(String customerTexpayerNum) { set("customer_texpayer_num", customerTexpayerNum); } /** * @return customer_texpayer_num 客户纳税人识别号 */ @JSONField(name="customer_texpayer_num") public String getCustomerTexpayerNum() { return getStr("customer_texpayer_num"); } /** * name: customer_address * type: VARCHAR(256) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerAddress */ @JSONField(name="customer_address") public void setCustomerAddress(String customerAddress) { set("customer_address", customerAddress); } /** * @return customer_address */ @JSONField(name="customer_address") public String getCustomerAddress() { return getStr("customer_address"); } /** * name: customer_phone * type: CHAR(11) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerPhone */ @JSONField(name="customer_phone") public void setCustomerPhone(String customerPhone) { set("customer_phone", customerPhone); } /** * @return customer_phone */ @JSONField(name="customer_phone") public String getCustomerPhone() { return getStr("customer_phone"); } /** * name: customer_bank_name * type: VARCHAR(128) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerBankName */ @JSONField(name="customer_bank_name") public void setCustomerBankName(String customerBankName) { set("customer_bank_name", customerBankName); } /** * @return customer_bank_name */ @JSONField(name="customer_bank_name") public String getCustomerBankName() { return getStr("customer_bank_name"); } /** * name: customer_bank_account * type: VARCHAR(20) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param customerBankAccount */ @JSONField(name="customer_bank_account") public void setCustomerBankAccount(String customerBankAccount) { set("customer_bank_account", customerBankAccount); } /** * @return customer_bank_account */ @JSONField(name="customer_bank_account") public String getCustomerBankAccount() { return getStr("customer_bank_account"); } /** * name: customer_receiver_name * type: VARCHAR(8) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param customerReceiverName 收货人 */ @JSONField(name="customer_receiver_name") public void setCustomerReceiverName(String customerReceiverName) { set("customer_receiver_name", customerReceiverName); } /** * @return customer_receiver_name 收货人 */ @JSONField(name="customer_receiver_name") public String getCustomerReceiverName() { return getStr("customer_receiver_name"); } /** * name: customer_receiver_phone * type: CHAR(11) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param customerReceiverPhone 收货人电话 */ @JSONField(name="customer_receiver_phone") public void setCustomerReceiverPhone(String customerReceiverPhone) { set("customer_receiver_phone", customerReceiverPhone); } /** * @return customer_receiver_phone 收货人电话 */ @JSONField(name="customer_receiver_phone") public String getCustomerReceiverPhone() { return getStr("customer_receiver_phone"); } /** * name: customer_receiver_address * type: VARCHAR(256) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param customerReceiverAddress 送货地址 */ @JSONField(name="customer_receiver_address") public void setCustomerReceiverAddress(String customerReceiverAddress) { set("customer_receiver_address", customerReceiverAddress); } /** * @return customer_receiver_address 送货地址 */ @JSONField(name="customer_receiver_address") public String getCustomerReceiverAddress() { return getStr("customer_receiver_address"); } /** * name: customer_receiver_lgtd * type: DECIMAL(12,8) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param customerReceiverLgtd 收货地址经度 */ @JSONField(name="customer_receiver_lgtd") public void setCustomerReceiverLgtd(java.math.BigDecimal customerReceiverLgtd) { set("customer_receiver_lgtd", customerReceiverLgtd); } /** * @return customer_receiver_lgtd 收货地址经度 */ @JSONField(name="customer_receiver_lgtd") public java.math.BigDecimal getCustomerReceiverLgtd() { return get("customer_receiver_lgtd"); } /** * name: customer_receiver_lttd * type: DECIMAL(12,8) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param customerReceiverLttd 收货地址纬度 */ @JSONField(name="customer_receiver_lttd") public void setCustomerReceiverLttd(java.math.BigDecimal customerReceiverLttd) { set("customer_receiver_lttd", customerReceiverLttd); } /** * @return customer_receiver_lttd 收货地址纬度 */ @JSONField(name="customer_receiver_lttd") public java.math.BigDecimal getCustomerReceiverLttd() { return get("customer_receiver_lttd"); } /** * name: trans_co_id * type: INT(10) * isNullable: NO * 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: NO * 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: YES * 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: driver_name * type: VARCHAR(8) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param driverName 司机姓名 */ @JSONField(name="driver_name") public void setDriverName(String driverName) { set("driver_name", driverName); } /** * @return driver_name 司机姓名 */ @JSONField(name="driver_name") public String getDriverName() { return getStr("driver_name"); } /** * name: driver_phone * type: CHAR(11) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param driverPhone 司机手机号 */ @JSONField(name="driver_phone") public void setDriverPhone(String driverPhone) { set("driver_phone", driverPhone); } /** * @return driver_phone 司机手机号 */ @JSONField(name="driver_phone") public String getDriverPhone() { return getStr("driver_phone"); } /** * name: unit_price * type: DECIMAL(12,2) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param unitPrice 单价 */ @JSONField(name="unit_price") public void setUnitPrice(java.math.BigDecimal unitPrice) { set("unit_price", unitPrice); } /** * @return unit_price 单价 */ @JSONField(name="unit_price") public java.math.BigDecimal getUnitPrice() { return get("unit_price"); } /** * name: total_price * type: DECIMAL(12,2) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param totalPrice 总价,应付金额 */ @JSONField(name="total_price") public void setTotalPrice(java.math.BigDecimal totalPrice) { set("total_price", totalPrice); } /** * @return total_price 总价,应付金额 */ @JSONField(name="total_price") public java.math.BigDecimal getTotalPrice() { return get("total_price"); } /** * name: weight * type: DECIMAL(12,2) * isNullable: NO * 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: paid * type: DECIMAL(12,2) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param paid 实际支付金额 */ @JSONField(name="paid") public void setPaid(java.math.BigDecimal paid) { set("paid", paid); } /** * @return paid 实际支付金额 */ @JSONField(name="paid") public java.math.BigDecimal getPaid() { return get("paid"); } /** * name: pick_time * type: DATETIME(19) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param pickTime 提货时间 */ @JSONField(name="pick_time") public void setPickTime(java.util.Date pickTime) { set("pick_time", pickTime); } /** * @return pick_time 提货时间 */ @JSONField(name="pick_time") public java.util.Date getPickTime() { return get("pick_time"); } /** * name: trans_distance * type: DECIMAL(12,2) * isNullable: NO * 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: NO * 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: pay_type * type: INT(10) * isNullable: NO * isPrimaryKey: NO * defaultValue: 1 * @param payType 支付方式: 1,现场支付; 2,在线支付 */ @JSONField(name="pay_type") public void setPayType(Integer payType) { set("pay_type", payType); } /** * @return pay_type 支付方式: 1,现场支付; 2,在线支付 */ @JSONField(name="pay_type") public Integer getPayType() { return getInt("pay_type"); } /** * 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 创建用户id */ @JSONField(name="create_user_id") public void setCreateUserId(Integer createUserId) { set("create_user_id", createUserId); } /** * @return create_user_id 创建用户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: 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: req_receipt * type: SMALLINT(5) * isNullable: NO * isPrimaryKey: NO * defaultValue: 0 * @param reqReceipt 是否需要发票,0 默认不需要,1需要 */ @JSONField(name="req_receipt") public void setReqReceipt(Integer reqReceipt) { set("req_receipt", reqReceipt); } /** * @return req_receipt 是否需要发票,0 默认不需要,1需要 */ @JSONField(name="req_receipt") public Integer getReqReceipt() { return getInt("req_receipt"); } /** * name: ordercluster_id * type: INT(10) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param orderclusterId ordercluste id */ @JSONField(name="ordercluster_id") public void setOrderclusterId(Integer orderclusterId) { set("ordercluster_id", orderclusterId); } /** * @return ordercluster_id ordercluste id */ @JSONField(name="ordercluster_id") public Integer getOrderclusterId() { return getInt("ordercluster_id"); } /** * 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: isprepaid * type: SMALLINT(5) * isNullable: NO * isPrimaryKey: NO * defaultValue: 0 * @param isprepaid 是否已预付,在结算时勾选 */ @JSONField(name="isprepaid") public void setIsprepaid(Integer isprepaid) { set("isprepaid", isprepaid); } /** * @return isprepaid 是否已预付,在结算时勾选 */ @JSONField(name="isprepaid") public Integer getIsprepaid() { return getInt("isprepaid"); } /** * name: memo * type: VARCHAR(255) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param memo 备注 */ @JSONField(name="memo") public void setMemo(String memo) { set("memo", memo); } /** * @return memo 备注 */ @JSONField(name="memo") public String getMemo() { return getStr("memo"); } /** * name: product_id * type: INT(10) * isNullable: YES * 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: YES * 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: prepay_customer_id * type: INT(10) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param prepayCustomerId 预付费客户 prepay_customer 表的id */ @JSONField(name="prepay_customer_id") public void setPrepayCustomerId(Integer prepayCustomerId) { set("prepay_customer_id", prepayCustomerId); } /** * @return prepay_customer_id 预付费客户 prepay_customer 表的id */ @JSONField(name="prepay_customer_id") public Integer getPrepayCustomerId() { return getInt("prepay_customer_id"); } }