mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
REVIEW 物流配送管理表
This commit is contained in:
parent
8ed52701fd
commit
db73ddc942
@ -14,11 +14,13 @@ import java.util.Arrays;
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum DeliveryExpressChargeModeEnum implements IntArrayValuable {
|
||||
BY_PIECE(1, "按件"),
|
||||
BY_WEIGHT(2,"按重量"),
|
||||
BY_VOLUME(3, "按体积");
|
||||
|
||||
PIECE(1, "按件"),
|
||||
WEIGHT(2,"按重量"),
|
||||
VOLUME(3, "按体积");
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(DeliveryExpressChargeModeEnum::getType).toArray();
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@ -32,4 +34,5 @@ public enum DeliveryExpressChargeModeEnum implements IntArrayValuable {
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ import lombok.Data;
|
||||
@KeySequence("trade_delivery_express_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
public class DeliveryExpressDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 编号,自增
|
||||
*/
|
||||
|
@ -29,9 +29,8 @@ public class DeliveryExpressTemplateChargeDO extends BaseDO {
|
||||
*/
|
||||
private Long templateId;
|
||||
|
||||
// TODO @Jason:全国最好使用 0 @芋艿 Area.ID_CHINA 是 1
|
||||
/**
|
||||
* 配送区域id 1:适用于全国
|
||||
* 配送区域
|
||||
*/
|
||||
private Integer areaId;
|
||||
|
||||
|
@ -7,12 +7,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
|
||||
// TODO @Jason:配送放到 trade 里。然后属于 deliver 配送;配送分成两个方式:1)快递 express;2)自提 pickup;
|
||||
// 这样的话,实体名字一个是 DeliveryExpressTemplateDO;长一点没关系哈;还有一个 DeliveryPickUpStoreDO 自提门店;
|
||||
// 表名的话,还是加上 trade_delivery_ 前缀,主要归属在交易域
|
||||
|
||||
// TODO @Jason:额外补充,不是这个类哈。应该还有个快递;DeliveryExpress;需要设计下这个表
|
||||
|
||||
/**
|
||||
* 快递运费模板 DO
|
||||
*
|
||||
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
// TODO @芋艿:后续再详细 review 一轮
|
||||
/**
|
||||
* 自提门店店员 DO
|
||||
*
|
||||
@ -16,6 +17,7 @@ import lombok.Data;
|
||||
@KeySequence("trade_delivery_pick_up_store_staff_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
public class DeliveryPickUpStoreStaffDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 编号,自增
|
||||
*/
|
||||
@ -24,6 +26,8 @@ public class DeliveryPickUpStoreStaffDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 自提门店编号
|
||||
*
|
||||
* 关联 {@link DeliveryPickUpStoreDO#getId()}
|
||||
*/
|
||||
private Long storeId;
|
||||
|
||||
@ -40,4 +44,5 @@ public class DeliveryPickUpStoreStaffDO extends BaseDO {
|
||||
* 枚举 {@link CommonStatusEnum}
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user