|
|
@@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
|
|
import com.coffee.bus.bean.AliIotConfig;
|
|
|
import com.coffee.bus.enums.DeviceAlarmEnum;
|
|
|
import com.coffee.bus.enums.DeviceStatusEnum;
|
|
|
+import com.coffee.common.config.mybatis.DateToBigIntHandler;
|
|
|
+import com.coffee.common.entity.RecordCreationEntity;
|
|
|
+import com.coffee.common.entity.RecordModifierEntity;
|
|
|
import com.coffee.common.entity.TenantGenericEntity;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
@@ -14,6 +17,8 @@ import lombok.ToString;
|
|
|
import org.apache.ibatis.type.EnumTypeHandler;
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
/**
|
|
|
* @author lifang
|
|
|
* @version 1.0.0
|
|
|
@@ -26,7 +31,7 @@ import org.hibernate.validator.constraints.Length;
|
|
|
@TableName(value = "bus_device",autoResultMap = true)
|
|
|
@ApiModel(value="设备经销商管理", description="设备与医院关系管理")
|
|
|
@ToString
|
|
|
-public class BusDeviceEntity extends TenantGenericEntity<String,String> {
|
|
|
+public class BusDeviceEntity extends TenantGenericEntity<String,String> implements RecordCreationEntity, RecordModifierEntity {
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "设备唯一id")
|
|
|
@@ -54,4 +59,16 @@ public class BusDeviceEntity extends TenantGenericEntity<String,String> {
|
|
|
|
|
|
@ApiModelProperty(value = "是否启用,0、不启用 1、启用 ")
|
|
|
private Boolean enable;
|
|
|
+
|
|
|
+ @TableField(fill = FieldFill.INSERT_UPDATE)
|
|
|
+ private Date createTime;
|
|
|
+
|
|
|
+ @TableField(fill = FieldFill.INSERT_UPDATE)
|
|
|
+ private String createBy;
|
|
|
+
|
|
|
+ @TableField(fill = FieldFill.UPDATE)
|
|
|
+ private String updateBy;
|
|
|
+
|
|
|
+ @TableField(fill = FieldFill.UPDATE)
|
|
|
+ private Date updateTime;
|
|
|
}
|