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

107 lines
2.3 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 Mon May 04 01:37:44 CST 2020
* TableName: device_config
* Remarks: 出入控制 - 设备连接参数配置
* PrimaryKey: supermarket_id
*/
@SuppressWarnings("serial")
public abstract class BaseDeviceConfig<M extends BaseDeviceConfig<M>> extends BaseModel<M> implements IBean {
public static final String tablename = "device_config";
@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: content
* type: JSON(1073741824)
* isNullable: YES
* isPrimaryKey: NO
* defaultValue:
* @param content {
cameras: [
{ id: 'in', ip: '', port: 123 },
{ id: 'out', ip: '', port: 123 }
],
scales: [
{ id: 'in', ip: '', port: 123 },
{ id: 'out', ip: '', port: 123 }
],
leds: [
{ id: 'in', ip: '', port: 123 },
{ id: 'out', ip: '', port: 123 }
]
plcs: [
{ id: 'all', ip: '', port: 123 }
]
}
*/
@JSONField(name="content")
public void setContent(String content) {
set("content", content);
}
/**
* @return content {
cameras: [
{ id: 'in', ip: '', port: 123 },
{ id: 'out', ip: '', port: 123 }
],
scales: [
{ id: 'in', ip: '', port: 123 },
{ id: 'out', ip: '', port: 123 }
],
leds: [
{ id: 'in', ip: '', port: 123 },
{ id: 'out', ip: '', port: 123 }
]
plcs: [
{ id: 'all', ip: '', port: 123 }
]
}
*/
@JSONField(name="content")
public String getContent() {
return getStr("content");
}
}