2020-08-14 00:07:09 +08:00
|
|
|
package com.cowr.model.base;
|
|
|
|
|
|
|
|
|
|
import com.cowr.common.base.BaseModel;
|
|
|
|
|
import com.jfinal.plugin.activerecord.IBean;
|
|
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
|
|
|
|
|
|
|
/**
|
2020-08-17 16:23:16 +08:00
|
|
|
* Generated by COWR Mon Aug 17 10:47:18 CST 2020
|
2020-08-14 00:07:09 +08:00
|
|
|
* TableName: invoice_receive
|
|
|
|
|
* Remarks: 发票管理 - 领用记录
|
|
|
|
|
* PrimaryKey: id
|
|
|
|
|
*/
|
|
|
|
|
@SuppressWarnings("serial")
|
|
|
|
|
public abstract class BaseInvoiceReceive<M extends BaseInvoiceReceive<M>> extends BaseModel<M> implements IBean {
|
|
|
|
|
|
|
|
|
|
public static final String tablename = "invoice_receive";
|
|
|
|
|
|
|
|
|
|
@JSONField(serialize=false)
|
|
|
|
|
public String getTablename(){
|
|
|
|
|
return tablename;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* name: id
|
2020-08-14 17:39:16 +08:00
|
|
|
* type: CHAR(32)
|
2020-08-14 00:07:09 +08:00
|
|
|
* isNullable: NO
|
|
|
|
|
* isPrimaryKey: YES
|
|
|
|
|
* defaultValue:
|
2020-08-14 17:39:16 +08:00
|
|
|
* @param id uuid
|
2020-08-14 00:07:09 +08:00
|
|
|
*/
|
|
|
|
|
@JSONField(name="id")
|
2020-08-14 17:39:16 +08:00
|
|
|
public void setId(String id) {
|
2020-08-14 00:07:09 +08:00
|
|
|
set("id", id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-08-14 17:39:16 +08:00
|
|
|
* @return id uuid
|
2020-08-14 00:07:09 +08:00
|
|
|
*/
|
|
|
|
|
@JSONField(name="id")
|
2020-08-14 17:39:16 +08:00
|
|
|
public String getId() {
|
|
|
|
|
return getStr("id");
|
2020-08-14 00:07:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* name: num
|
|
|
|
|
* type: INT(10)
|
|
|
|
|
* isNullable: NO
|
|
|
|
|
* isPrimaryKey: NO
|
|
|
|
|
* defaultValue:
|
|
|
|
|
* @param num 领取数量
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="num")
|
|
|
|
|
public void setNum(Integer num) {
|
|
|
|
|
set("num", num);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return num 领取数量
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="num")
|
|
|
|
|
public Integer getNum() {
|
|
|
|
|
return getInt("num");
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-17 16:23:16 +08:00
|
|
|
/**
|
|
|
|
|
* name: surplus
|
|
|
|
|
* type: INT(10)
|
|
|
|
|
* isNullable: NO
|
|
|
|
|
* isPrimaryKey: NO
|
|
|
|
|
* defaultValue:
|
|
|
|
|
* @param surplus 剩余数量
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="surplus")
|
|
|
|
|
public void setSurplus(Integer surplus) {
|
|
|
|
|
set("surplus", surplus);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return surplus 剩余数量
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="surplus")
|
|
|
|
|
public Integer getSurplus() {
|
|
|
|
|
return getInt("surplus");
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-14 00:07:09 +08:00
|
|
|
/**
|
|
|
|
|
* name: start_code
|
|
|
|
|
* type: VARCHAR(20)
|
|
|
|
|
* isNullable: NO
|
|
|
|
|
* isPrimaryKey: NO
|
|
|
|
|
* defaultValue:
|
|
|
|
|
* @param startCode 发票起始号码
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="start_code")
|
|
|
|
|
public void setStartCode(String startCode) {
|
|
|
|
|
set("start_code", startCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return start_code 发票起始号码
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="start_code")
|
|
|
|
|
public String getStartCode() {
|
|
|
|
|
return getStr("start_code");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* name: current_code
|
|
|
|
|
* type: VARCHAR(20)
|
|
|
|
|
* isNullable: YES
|
|
|
|
|
* isPrimaryKey: NO
|
|
|
|
|
* defaultValue:
|
|
|
|
|
* @param currentCode 当前使用到的发票号码
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="current_code")
|
|
|
|
|
public void setCurrentCode(String currentCode) {
|
|
|
|
|
set("current_code", currentCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return current_code 当前使用到的发票号码
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="current_code")
|
|
|
|
|
public String getCurrentCode() {
|
|
|
|
|
return getStr("current_code");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* name: create_time
|
|
|
|
|
* type: DATETIME(19)
|
|
|
|
|
* isNullable: NO
|
|
|
|
|
* isPrimaryKey: NO
|
|
|
|
|
* defaultValue: CURRENT_TIMESTAMP
|
|
|
|
|
* @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: 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: receive_user_id
|
|
|
|
|
* type: INT(10)
|
|
|
|
|
* isNullable: NO
|
|
|
|
|
* isPrimaryKey: NO
|
|
|
|
|
* defaultValue:
|
|
|
|
|
* @param receiveUserId 领取用户id
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="receive_user_id")
|
|
|
|
|
public void setReceiveUserId(Integer receiveUserId) {
|
|
|
|
|
set("receive_user_id", receiveUserId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return receive_user_id 领取用户id
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="receive_user_id")
|
|
|
|
|
public Integer getReceiveUserId() {
|
|
|
|
|
return getInt("receive_user_id");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* name: receive_user_name
|
|
|
|
|
* type: VARCHAR(255)
|
|
|
|
|
* isNullable: NO
|
|
|
|
|
* isPrimaryKey: NO
|
|
|
|
|
* defaultValue:
|
|
|
|
|
* @param receiveUserName 领取用户姓名
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="receive_user_name")
|
|
|
|
|
public void setReceiveUserName(String receiveUserName) {
|
|
|
|
|
set("receive_user_name", receiveUserName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return receive_user_name 领取用户姓名
|
|
|
|
|
*/
|
|
|
|
|
@JSONField(name="receive_user_name")
|
|
|
|
|
public String getReceiveUserName() {
|
|
|
|
|
return getStr("receive_user_name");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|