feat:检修开门接口

This commit is contained in:
dzc committed 2025-04-14 17:25:59 +08:00
1 parent f369039b21
commit c1485e7058
10 files changed
+372 -118

No files matched your search

@@ -0,0 +1,26 @@
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 HardDoorFlowEnum {
PAY_OPEN("10", "购买开门"),
REPERTORY_OPEN("20", "上架开门"),
ACCESS_OPEN("20", "检修开门"),
;
private final String type;
private final String description;
public static HardDoorFlowEnum valueOfByType(String type) {
if (ObjectUtil.isEmpty(type)) return null;
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
}
}
@@ -0,0 +1,33 @@
package com.bsd.pjcloud.hard.api.dto;
import com.bsd.pjcloud.hard.api.constant.HardDoorFlowEnum;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
@Data
public class HardDoorFlowOpenDto {
/**
* 柜子id
*/
@NotNull(message = "hardDoorId不能为空")
private Long hardDoorId;
/**
* 智能柜编号
*/
@NotEmpty(message = "货柜编号不能为空")
private String cabinetNo;
/**
* 开门操作类型
*/
private HardDoorFlowEnum type;
/**
* 开门用户id
*/
private Long userId;
}
@@ -3,9 +3,9 @@ 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;
/**
@@ -14,6 +14,9 @@ import java.time.LocalDateTime;
* @author hard
* @date 2025-04-14 16:08:33
*/
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TenantTable
@TableName("hard_door_flow")
@@ -22,136 +25,154 @@ import java.time.LocalDateTime;
public class HardDoorFlowEntity extends Model<HardDoorFlowEntity> {
/**
* 编号
*/
/**
* 编号
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="编号")
@Schema(description = "编号")
private Long id;
/**
* 订单编号
*/
@Schema(description="订单编号")
/**
* 用户编号
*/
@Schema(description = "用户编号")
private Long userId;
/**
* 业务类型
*/
@Schema(description = "业务类型")
private String bizType;
/**
* 订单编号
*/
@Schema(description = "订单编号")
private Long orderId;
/**
* 授权编号
*/
@Schema(description="授权编号")
/**
* 授权编号
*/
@Schema(description = "授权编号")
private Long authId;
/**
* 开门事件编号
*/
@Schema(description="开门事件编号")
/**
* 开门事件编号
*/
@Schema(description = "开门事件编号")
private String openEventId;
/**
* 商户自定义开门请求号
*/
@Schema(description="商户自定义开门请求号")
/**
* 商户自定义开门请求号
*/
@Schema(description = "商户自定义开门请求号")
private String openOutOpenNo;
/**
* 开门回调结果
*/
@Schema(description="开门回调结果")
/**
* 请求开门时间
*/
@Schema(description = "请求开门时间")
private LocalDateTime requestOpenTime;
/**
* 开门回调结果
*/
@Schema(description = "开门回调结果")
private String openCallbackRes;
/**
* 开门回调时间
*/
@Schema(description="开门回调时间")
/**
* 开门回调时间
*/
@Schema(description = "开门回调时间")
private LocalDateTime openCallbackTime;
/**
* 视频回调结果
*/
@Schema(description="视频回调结果")
/**
* 视频回调结果
*/
@Schema(description = "视频回调结果")
private String videoCallbackRes;
/**
* 视频回调时间
*/
@Schema(description="视频回调时间")
/**
* 视频回调时间
*/
@Schema(description = "视频回调时间")
private LocalDateTime videoCallbackTime;
/**
* 识别任务唯一ID,用于结果获取,重新发起售后识别
*/
@Schema(description="识别任务唯一ID,用于结果获取,重新发起售后识别")
/**
* 识别任务唯一ID,用于结果获取,重新发起售后识别
*/
@Schema(description = "识别任务唯一ID,用于结果获取,重新发起售后识别")
private String skuKsRecogId;
/**
* sku识别提交时间
*/
@Schema(description="sku识别提交时间")
/**
* sku识别提交时间
*/
@Schema(description = "sku识别提交时间")
private LocalDateTime skuSubmitTime;
/**
* sku识别回调结果
*/
@Schema(description="sku识别回调结果")
/**
* sku识别回调结果
*/
@Schema(description = "sku识别回调结果")
private String skuCallbackRes;
/**
* sku识别回调时间
*/
@Schema(description="sku识别回调时间")
/**
* sku识别回调时间
*/
@Schema(description = "sku识别回调时间")
private LocalDateTime skuCallbackTime;
/**
* sku识别主动获取结果
*/
@Schema(description="sku识别主动获取结果")
/**
* sku识别主动获取结果
*/
@Schema(description = "sku识别主动获取结果")
private String skuDrivingRes;
/**
* sku识别主动获取时间
*/
@Schema(description="sku识别主动获取时间")
/**
* sku识别主动获取时间
*/
@Schema(description = "sku识别主动获取时间")
private LocalDateTime skuDrivingTime;
/**
* 创建人
*/
@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;
}