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

140 lines
3.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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";
@JSONField(serialize = false)
public String getTablename() {
return tablename;
}
/**
* name: id
* type: INT(10)
* isNullable: NO
* isPrimaryKey: YES
* defaultValue:
*
* @param id 通道id
*/
@JSONField(name = "id")
public void setId(java.lang.Integer id) {
set("id", id);
}
/**
* @return id 通道id
*/
@JSONField(name = "id")
public java.lang.Integer getId() {
return getInt("id");
}
/**
* name: unit_id
* type: VARCHAR(255)
* isNullable: NO
* isPrimaryKey: YES
* defaultValue:
*
* @param unitId 砂站id砂场id前加 s
*/
@JSONField(name = "unit_id")
public void setUnitId(java.lang.String unitId) {
set("unit_id", unitId);
}
/**
* @return unit_id 砂站id砂场id前加 s
*/
@JSONField(name = "unit_id")
public java.lang.String getUnitId() {
return getStr("unit_id");
}
/**
* name: name
* type: VARCHAR(255)
* isNullable: YES
* isPrimaryKey: NO
* defaultValue:
*
* @param name 名称
*/
@JSONField(name = "name")
public void setName(java.lang.String name) {
set("name", name);
}
/**
* @return name 名称
*/
@JSONField(name = "name")
public java.lang.String getName() {
return getStr("name");
}
/**
* name: default_select
* type: INT(10)
* isNullable: NO
* isPrimaryKey: NO
* defaultValue: 0
*
* @param defaultSelect 是否默认选中
*/
@JSONField(name = "default_select")
public void setDefaultSelect(java.lang.Integer defaultSelect) {
set("default_select", defaultSelect);
}
/**
* @return default_select 是否默认选中
*/
@JSONField(name = "default_select")
public java.lang.Integer getDefaultSelect() {
return getInt("default_select");
}
/**
* name: unit_type
* type: INT(10)
* isNullable: NO
* isPrimaryKey: YES
* defaultValue:
*
* @param unitType 监控对象1.销售点、2.生产点
*/
@JSONField(name = "unit_type")
public void setUnitType(java.lang.Integer unitType) {
set("unit_type", unitType);
}
/**
* @return unit_type 监控对象1.销售点、2.生产点
*/
@JSONField(name = "unit_type")
public java.lang.Integer getUnitType() {
return getInt("unit_type");
}
}