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

140 lines
3.0 KiB
Java
Raw Normal View History

2020-08-07 17:11:12 +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;
/**
* Generated by COWR Fri Apr 17 16:59:35 CST 2020
* TableName: cctv_channels
* Remarks:
* PrimaryKey: id,unit_id,unit_type
*/
@SuppressWarnings("serial")
public abstract class BaseCctvChannels<M extends BaseCctvChannels<M>> extends BaseModel<M> implements IBean {
public static final String tablename = "cctv_channels";
2020-10-18 00:39:17 +08:00
@JSONField(serialize = false)
public String getTablename() {
2020-08-07 17:11:12 +08:00
return tablename;
}
/**
* name: id
* type: INT(10)
* isNullable: NO
* isPrimaryKey: YES
2020-10-18 00:39:17 +08:00
* defaultValue:
*
2020-08-07 17:11:12 +08:00
* @param id id
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "id")
2020-08-07 17:11:12 +08:00
public void setId(java.lang.Integer id) {
set("id", id);
}
2020-10-18 00:39:17 +08:00
2020-08-07 17:11:12 +08:00
/**
* @return id id
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "id")
2020-08-07 17:11:12 +08:00
public java.lang.Integer getId() {
return getInt("id");
}
/**
* name: unit_id
* type: VARCHAR(255)
* isNullable: NO
* isPrimaryKey: YES
2020-10-18 00:39:17 +08:00
* defaultValue:
*
2020-08-25 16:39:53 +08:00
* @param unitId idid s
2020-08-07 17:11:12 +08:00
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "unit_id")
2020-08-07 17:11:12 +08:00
public void setUnitId(java.lang.String unitId) {
set("unit_id", unitId);
}
2020-10-18 00:39:17 +08:00
2020-08-07 17:11:12 +08:00
/**
2020-08-25 16:39:53 +08:00
* @return unit_id idid s
2020-08-07 17:11:12 +08:00
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "unit_id")
2020-08-07 17:11:12 +08:00
public java.lang.String getUnitId() {
return getStr("unit_id");
}
/**
* name: name
* type: VARCHAR(255)
* isNullable: YES
* isPrimaryKey: NO
2020-10-18 00:39:17 +08:00
* defaultValue:
*
2020-08-07 17:11:12 +08:00
* @param name
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "name")
2020-08-07 17:11:12 +08:00
public void setName(java.lang.String name) {
set("name", name);
}
2020-10-18 00:39:17 +08:00
2020-08-07 17:11:12 +08:00
/**
* @return name
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "name")
2020-08-07 17:11:12 +08:00
public java.lang.String getName() {
return getStr("name");
}
/**
* name: default_select
* type: INT(10)
* isNullable: NO
* isPrimaryKey: NO
* defaultValue: 0
2020-10-18 00:39:17 +08:00
*
2020-08-07 17:11:12 +08:00
* @param defaultSelect
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "default_select")
2020-08-07 17:11:12 +08:00
public void setDefaultSelect(java.lang.Integer defaultSelect) {
set("default_select", defaultSelect);
}
2020-10-18 00:39:17 +08:00
2020-08-07 17:11:12 +08:00
/**
* @return default_select
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "default_select")
2020-08-07 17:11:12 +08:00
public java.lang.Integer getDefaultSelect() {
return getInt("default_select");
}
/**
* name: unit_type
* type: INT(10)
* isNullable: NO
* isPrimaryKey: YES
2020-10-18 00:39:17 +08:00
* defaultValue:
*
2020-08-07 17:11:12 +08:00
* @param unitType 1.2.
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "unit_type")
2020-08-07 17:11:12 +08:00
public void setUnitType(java.lang.Integer unitType) {
set("unit_type", unitType);
}
2020-10-18 00:39:17 +08:00
2020-08-07 17:11:12 +08:00
/**
* @return unit_type 1.2.
*/
2020-10-18 00:39:17 +08:00
@JSONField(name = "unit_type")
2020-08-07 17:11:12 +08:00
public java.lang.Integer getUnitType() {
return getInt("unit_type");
}
}