feat:柜子信息

This commit is contained in:
dzc committed 2025-04-14 11:22:14 +08:00
1 parent 29e1cddcf6
commit 44775cd2d9
19 files changed
+509 -215

No files matched your search

@@ -0,0 +1,24 @@
package com.bsd.pjcloud.hard.api.constant;
import cn.hutool.core.util.ObjectUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* 硬件广播类型
*/
@AllArgsConstructor
@Getter
public enum HardBroadcastEnum {
OFFLINE_CANTEEN_RESERVE("1", "线下食堂订餐广播"),
;
private final String type;
private final String description;
public static HardBroadcastEnum valueOfByType(String type) {
if (ObjectUtil.isEmpty(type)) return null;
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
}
}
@@ -3,14 +3,17 @@ package com.bsd.pjcloud.hard.api.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.*;
import com.bsd.pjcloud.common.core.util.TenantTable;
import java.time.LocalDateTime;
/**
* 设备广播
*/
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TenantTable
@TableName("hard_broadcast")
@@ -19,118 +22,124 @@ import java.time.LocalDateTime;
public class HardBroadcastEntity extends Model<HardBroadcastEntity> {
/**
* 编号
*/
/**
* 编号
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="编号")
@Schema(description = "编号")
private Long id;
/**
* 预定用户
*/
@Schema(description="预定用户")
/**
* 预定用户
*/
@Schema(description = "预定用户")
private Long userId;
/**
* 硬件id
*/
@Schema(description="硬件id")
/**
* 硬件id
*/
@Schema(description = "硬件id")
private Long hardId;
/**
* mq主题
*/
@Schema(description="mq主题")
/**
* mq主题
*/
@Schema(description = "mq主题")
private String topic;
/**
* 关联业务编号
*/
@Schema(description="关联业务编号")
/**
* 业务类型
*/
@Schema(description = "业务类型")
private String bizType;
/**
* 关联业务编号
*/
@Schema(description = "关联业务编号")
private String bizId;
/**
* 预定标题
*/
@Schema(description="预定标题")
/**
* 预定标题
*/
@Schema(description = "预定标题")
private String title;
/**
* 广播内容
*/
@Schema(description="广播内容")
/**
* 广播内容
*/
@Schema(description = "广播内容")
private String content;
/**
* 当前广播次数
*/
@Schema(description="当前广播次数")
/**
* 当前广播次数
*/
@Schema(description = "当前广播次数")
private Integer broadcastCount;
/**
* 最大广播次数
*/
@Schema(description="最大广播次数")
/**
* 最大广播次数
*/
@Schema(description = "最大广播次数")
private Integer broadcastMaxCount;
/**
* 是否广播语音
*/
@Schema(description="是否广播语音")
/**
* 是否广播语音
*/
@Schema(description = "是否广播语音")
private String isBroadcast;
/**
* 是否完成
*/
@Schema(description="是否完成")
/**
* 是否完成
*/
@Schema(description = "是否完成")
private String isDone;
/**
* 完成时间
*/
@Schema(description="完成时间")
/**
* 完成时间
*/
@Schema(description = "完成时间")
private LocalDateTime isDoneTime;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建人")
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description = "创建人")
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建时间")
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description = "创建时间")
private LocalDateTime createTime;
/**
* 修改人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改人")
/**
* 修改人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description = "修改人")
private String updateBy;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改时间")
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description = "修改时间")
private LocalDateTime updateTime;
/**
* 删除标记
*/
/**
* 删除标记
*/
@TableLogic
@TableField(fill = FieldFill.INSERT)
@Schema(description="删除标记")
@TableField(fill = FieldFill.INSERT)
@Schema(description = "删除标记")
private String delFlag;
/**
* 租户ID
*/
@Schema(description="租户ID")
/**
* 租户ID
*/
@Schema(description = "租户ID")
private Long tenantId;
}
@@ -7,6 +7,7 @@ import lombok.*;
import com.bsd.pjcloud.common.core.util.TenantTable;
import java.time.LocalDateTime;
import java.util.List;
/**
* 智能柜设置
@@ -89,6 +90,12 @@ public class HardDoorManagerEntity extends Model<HardDoorManagerEntity> {
@Schema(description = "售卖状态。1:在售;2:停售")
private Integer saleStatus;
/**
* sim 卡号。设备有上报会返回,若一次上报都没有,则返回 null。
*/
@Schema(description = "sim 卡号。设备有上报会返回,若一次上报都没有,则返回 null。")
private String simSn;
/**
* sim 信号强度。大于-95 表示信号强度好;-95 到-105 表示信号强度中等;小于-105 表示信号差;
*/
@@ -105,7 +112,7 @@ public class HardDoorManagerEntity extends Model<HardDoorManagerEntity> {
* sim 信号值更新时间。yyyy-MM-dd HH:mm:ss
*/
@Schema(description = "sim 信号值更新时间。yyyy-MM-dd HH:mm:ss")
private Integer signalTime;
private LocalDateTime signalTime;
/**
* 货柜列表JSON