ssjygl-xsct-service/ssjygl-xsx-common/src/main/java/com/cowr/model/base/BaseStock.java

113 lines
2.6 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 Tue May 12 23:18:24 CST 2020
* TableName: stock
* Remarks: 订单相关 - 销售点库存量
* PrimaryKey: supermarket_id,product_id
*/
@SuppressWarnings("serial")
public abstract class BaseStock<M extends BaseStock<M>> extends BaseModel<M> implements IBean {
public static final String tablename = "stock";
@JSONField(serialize=false)
public String getTablename(){
return tablename;
}
/**
* name: supermarket_id
* type: INT(10)
* isNullable: NO
* isPrimaryKey: YES
* 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: product_id
* type: INT(10)
* isNullable: NO
* isPrimaryKey: YES
* 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: stock_weight
* type: DECIMAL(12,2)
* isNullable: NO
* isPrimaryKey: NO
* defaultValue:
* @param stockWeight 超市库存量
*/
@JSONField(name="stock_weight")
public void setStockWeight(java.math.BigDecimal stockWeight) {
set("stock_weight", stockWeight);
}
/**
* @return stock_weight 超市库存量
*/
@JSONField(name="stock_weight")
public java.math.BigDecimal getStockWeight() {
return get("stock_weight");
}
/**
* 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");
}
}