feat:旷世数据库生成
This commit is contained in:
1 parent
891cb59376
commit
7818bea206
29 files changed
+647
-11
No files matched your search
+30
@@ -0,0 +1,30 @@
|
||||
package com.bsd.pjcloud.hard.api.constant.spu;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 旷世sku审核状态
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum HardKsCheckStatusEnum {
|
||||
|
||||
STANDARD("1", "识别进行中"),
|
||||
DONE("2", "识别完成(人工未二次复核)"),
|
||||
SECOND_CHECK("3", "二次验证中"),
|
||||
AUTO_SECOND_CHECK("4", "自动二次验证中"),
|
||||
CHECK_DONE("5", "识别完成(人工二次复核)"),
|
||||
;
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static HardKsCheckStatusEnum valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package com.bsd.pjcloud.hard.api.constant.spu;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 旷世订单审核状态
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum HardKsOrderStatusEnum {
|
||||
|
||||
IDENTIFYING("1", "识别中"),
|
||||
SUCCESS("2", "成功"),
|
||||
SUCCESS_NO_ITEM_TAKEN("3", "成功:未拿商品"),
|
||||
FAILED_UNRECOGNIZABLE("4", "失败:无法识别"),
|
||||
ALARM_INTENTIONAL_OBSTRUCTION("6", "告警:故意遮挡"),
|
||||
ALARM_SKU_NOT_IN_CABINET("7", "告警:柜中无此SKU"),
|
||||
ALARM_OTHER_ALARM("8", "告警:其他告警"),
|
||||
ALARM_FOREIGN_OBJECT("9", "告警:异物拿放"),
|
||||
ALARM_SUSPECTED_DEVICE_FAILURE("10", "告警:疑似设备故障");
|
||||
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static HardKsOrderStatusEnum valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.bsd.pjcloud.hard.api.constant.spu;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 旷世sku类型
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum HardKsSkuTypeEnum {
|
||||
STANDARD("0", "标准库"),
|
||||
SELF("1", "私有库"),
|
||||
;
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static HardKsSkuTypeEnum valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -1,7 +1,6 @@
|
||||
package com.bsd.pjcloud.hard.api.constant.spu;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.bsd.pjcloud.hard.api.constant.HardPrintStatusEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@@ -12,14 +11,14 @@ import java.util.Arrays;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum SpuRepertoryTypeEnum {
|
||||
public enum HardSpuRepertoryTypeEnum {
|
||||
HANDLER("10", "手动上架"),
|
||||
AUTO("20", "自动上架"),
|
||||
;
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static SpuRepertoryTypeEnum valueOfByType(String type) {
|
||||
public static HardSpuRepertoryTypeEnum valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.spu;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.spu.HardKsSkuEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardKsSkuDto extends HardKsSkuEntity {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.spu;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.spu.HardKsSkuJoinEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardKsSkuJoinDto extends HardKsSkuJoinEntity {
|
||||
}
|
||||
+6
-3
@@ -10,9 +10,6 @@ import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 智能柜设置
|
||||
*
|
||||
* @author dzc
|
||||
* @date 2025-04-08 18:50:53
|
||||
*/
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@@ -38,6 +35,12 @@ public class HardDoorManagerEntity extends Model<HardDoorManagerEntity> {
|
||||
@Schema(description = "设备编号")
|
||||
private Long hardId;
|
||||
|
||||
/**
|
||||
* 设备层数
|
||||
*/
|
||||
@Schema(description = "设备层数")
|
||||
private Long doorCount;
|
||||
|
||||
/**
|
||||
* 内置设备编号
|
||||
*/
|
||||
|
||||
-3
@@ -9,9 +9,6 @@ import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 设备管理
|
||||
*
|
||||
* @author dzc
|
||||
* @date 2025-01-05 14:16:52
|
||||
*/
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
package com.bsd.pjcloud.hard.api.entity.spu;
|
||||
|
||||
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 com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 商品
|
||||
*/
|
||||
@Data
|
||||
@TenantTable
|
||||
@TableName("hard_ks_sku")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "商品")
|
||||
public class HardKsSkuEntity extends Model<HardKsSkuEntity> {
|
||||
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(description="编号")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 该字段为超级收银员平台的商品ID
|
||||
*/
|
||||
@Schema(description="该字段为超级收银员平台的商品ID")
|
||||
private String ksSkuId;
|
||||
|
||||
/**
|
||||
* 69码
|
||||
*/
|
||||
@Schema(description="69码")
|
||||
private String barcode;
|
||||
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
@Schema(description="商品名称")
|
||||
private String skuName;
|
||||
|
||||
/**
|
||||
* 业务方sku_id
|
||||
*/
|
||||
@Schema(description="业务方sku_id")
|
||||
private String skuId;
|
||||
|
||||
/**
|
||||
* 商品主图缩略图url,尺寸300*300px
|
||||
*/
|
||||
@Schema(description="商品主图缩略图url,尺寸300*300px")
|
||||
private String cover;
|
||||
|
||||
/**
|
||||
* sku类型:0:标准库 1:私有库
|
||||
*/
|
||||
@Schema(description="sku类型:0:标准库 1:私有库")
|
||||
private String skuType;
|
||||
|
||||
/**
|
||||
* 该字段为SKU所对应的规格,包含口味、容量、重量,taste表示口味,capacity表示容量,单位:ml,weight表示重量,单位:g
|
||||
*/
|
||||
@Schema(description="该字段为SKU所对应的规格,包含口味、容量、重量,taste表示口味,capacity表示容量,单位:ml,weight表示重量,单位:g")
|
||||
private String specs;
|
||||
|
||||
/**
|
||||
* 是否为集合SKU
|
||||
*/
|
||||
@Schema(description="是否为集合SKU")
|
||||
private String hasSubSku;
|
||||
|
||||
/**
|
||||
* 集合SKU的子SKU信息
|
||||
*/
|
||||
@Schema(description="集合SKU的子SKU信息")
|
||||
private String subSku;
|
||||
|
||||
/**
|
||||
* sku审核状态
|
||||
*/
|
||||
@Schema(description="sku审核状态")
|
||||
private String checkStatus;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建人")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改人")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 删除标记
|
||||
*/
|
||||
@TableLogic
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="删除标记")
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@Schema(description="租户ID")
|
||||
private Long tenantId;
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package com.bsd.pjcloud.hard.api.entity.spu;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 旷世商品绑定
|
||||
*/
|
||||
@Data
|
||||
@TenantTable
|
||||
@TableName("hard_ks_sku_join")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "旷世商品绑定")
|
||||
public class HardKsSkuJoinEntity extends Model<HardKsSkuJoinEntity> {
|
||||
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(description="编号")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 该字段为超级收银员平台的商品ID
|
||||
*/
|
||||
@Schema(description="该字段为超级收银员平台的商品ID")
|
||||
private String ksSkuId;
|
||||
|
||||
/**
|
||||
* 硬件柜子id
|
||||
*/
|
||||
@Schema(description="硬件柜子id")
|
||||
private String hardDoorId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建人")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改人")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 删除标记
|
||||
*/
|
||||
@TableLogic
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="删除标记")
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@Schema(description="租户ID")
|
||||
private Long tenantId;
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.bsd.pjcloud.hard.api.vo.spu;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.spu.HardKsSkuJoinEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardKsSkuJoinVo extends HardKsSkuJoinEntity {
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.bsd.pjcloud.hard.api.vo.spu;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.spu.HardKsSkuEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardKsSkuVo extends HardKsSkuEntity {
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user