Commit c21e88860f1c4120772d518023108efa67bbd9aa
1 parent
467811a4
REVIEW 物流管理相关的表
Showing
3 changed files
with
37 additions
and
23 deletions
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/delivery/DeliveryChargeDetailDO.java
| @@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery; | @@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery; | ||
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | 3 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
| 4 | import com.baomidou.mybatisplus.annotation.KeySequence; | 4 | import com.baomidou.mybatisplus.annotation.KeySequence; |
| 5 | -import com.baomidou.mybatisplus.annotation.TableField; | ||
| 6 | import com.baomidou.mybatisplus.annotation.TableId; | 5 | import com.baomidou.mybatisplus.annotation.TableId; |
| 7 | import com.baomidou.mybatisplus.annotation.TableName; | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
| 8 | import lombok.Data; | 7 | import lombok.Data; |
| 9 | 8 | ||
| 9 | +// TODO @Jason:要不就叫 DeliveryExpressTemplateChargeDO;detail 主要用来作为明细,不适合作为条目 | ||
| 10 | /** | 10 | /** |
| 11 | * 配送费用详情 DO | 11 | * 配送费用详情 DO |
| 12 | * | 12 | * |
| @@ -16,6 +16,7 @@ import lombok.Data; | @@ -16,6 +16,7 @@ import lombok.Data; | ||
| 16 | @KeySequence("delivery_charge_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 | 16 | @KeySequence("delivery_charge_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 |
| 17 | @Data | 17 | @Data |
| 18 | public class DeliveryChargeDetailDO extends BaseDO { | 18 | public class DeliveryChargeDetailDO extends BaseDO { |
| 19 | + | ||
| 19 | /** | 20 | /** |
| 20 | * 编号,自增 | 21 | * 编号,自增 |
| 21 | */ | 22 | */ |
| @@ -24,9 +25,14 @@ public class DeliveryChargeDetailDO extends BaseDO { | @@ -24,9 +25,14 @@ public class DeliveryChargeDetailDO extends BaseDO { | ||
| 24 | 25 | ||
| 25 | /** | 26 | /** |
| 26 | * 配送模板编号, 对应delivery_template表id | 27 | * 配送模板编号, 对应delivery_template表id |
| 28 | + * | ||
| 29 | + * // TODO @Jason:如果关联,写法如下 | ||
| 30 | + * | ||
| 31 | + * 关联 {@link DeliveryTemplateDO#getId()} | ||
| 27 | */ | 32 | */ |
| 28 | private Long templateId; | 33 | private Long templateId; |
| 29 | 34 | ||
| 35 | + // TODO @Jason:全国最好使用 0 | ||
| 30 | /** | 36 | /** |
| 31 | * 配送区域id 1:适用于全国 | 37 | * 配送区域id 1:适用于全国 |
| 32 | */ | 38 | */ |
| @@ -34,30 +40,29 @@ public class DeliveryChargeDetailDO extends BaseDO { | @@ -34,30 +40,29 @@ public class DeliveryChargeDetailDO extends BaseDO { | ||
| 34 | 40 | ||
| 35 | /** | 41 | /** |
| 36 | * 配送计费方式 1:按件 2:按重量 3:按体积 | 42 | * 配送计费方式 1:按件 2:按重量 3:按体积 |
| 43 | + * | ||
| 44 | + * 冗余 {@link DeliveryTemplateDO#getChargeMode()} | ||
| 37 | */ | 45 | */ |
| 38 | private Integer chargeMode; | 46 | private Integer chargeMode; |
| 39 | 47 | ||
| 48 | + // TODO @Jason:startCount;一般 count 作为数量哈 | ||
| 40 | /** | 49 | /** |
| 41 | - * 起步数量(件数,重量,或体积) | 50 | + * 首件数量(件数,重量,或体积) |
| 42 | */ | 51 | */ |
| 43 | private Double startQuantity; | 52 | private Double startQuantity; |
| 44 | - | ||
| 45 | /** | 53 | /** |
| 46 | - * 起步价(单位分) | 54 | + * 起步价,单位:分 |
| 47 | */ | 55 | */ |
| 48 | private Integer startPrice; | 56 | private Integer startPrice; |
| 49 | 57 | ||
| 58 | + // TODO @Jason:startCount;一般 count 作为数量哈 | ||
| 50 | /** | 59 | /** |
| 51 | - * 续(件,重量,或体积) | 60 | + * 续件数量(件,重量,或体积) |
| 52 | */ | 61 | */ |
| 53 | private Double extraQuantity; | 62 | private Double extraQuantity; |
| 54 | - | ||
| 55 | /** | 63 | /** |
| 56 | - * 额外价(单位分) | 64 | + * 额外价,单位:分 |
| 57 | */ | 65 | */ |
| 58 | private Integer extraPrice; | 66 | private Integer extraPrice; |
| 59 | 67 | ||
| 60 | - | ||
| 61 | - @TableField(exist = false) | ||
| 62 | - private static final long serialVersionUID = 1L; | ||
| 63 | -} | ||
| 64 | \ No newline at end of file | 68 | \ No newline at end of file |
| 69 | +} |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/delivery/DeliveryFreeDetailDO.java
| @@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery; | @@ -2,11 +2,11 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery; | ||
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | 3 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
| 4 | import com.baomidou.mybatisplus.annotation.KeySequence; | 4 | import com.baomidou.mybatisplus.annotation.KeySequence; |
| 5 | -import com.baomidou.mybatisplus.annotation.TableField; | ||
| 6 | import com.baomidou.mybatisplus.annotation.TableId; | 5 | import com.baomidou.mybatisplus.annotation.TableId; |
| 7 | import com.baomidou.mybatisplus.annotation.TableName; | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
| 8 | import lombok.Data; | 7 | import lombok.Data; |
| 9 | 8 | ||
| 9 | +// TODO @Jason:要不就叫 DeliveryExpressTemplateFreeDO;detail 主要用来作为明细,不适合作为条目 | ||
| 10 | /** | 10 | /** |
| 11 | * 配送包邮详情 DO | 11 | * 配送包邮详情 DO |
| 12 | * | 12 | * |
| @@ -16,6 +16,7 @@ import lombok.Data; | @@ -16,6 +16,7 @@ import lombok.Data; | ||
| 16 | @KeySequence("delivery_free_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 | 16 | @KeySequence("delivery_free_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 |
| 17 | @Data | 17 | @Data |
| 18 | public class DeliveryFreeDetailDO extends BaseDO { | 18 | public class DeliveryFreeDetailDO extends BaseDO { |
| 19 | + | ||
| 19 | /** | 20 | /** |
| 20 | * 编号,自增 | 21 | * 编号,自增 |
| 21 | */ | 22 | */ |
| @@ -23,7 +24,9 @@ public class DeliveryFreeDetailDO extends BaseDO { | @@ -23,7 +24,9 @@ public class DeliveryFreeDetailDO extends BaseDO { | ||
| 23 | private Long id; | 24 | private Long id; |
| 24 | 25 | ||
| 25 | /** | 26 | /** |
| 26 | - * 配送模板编号, 对应delivery_template表id | 27 | + * 配送模板编号 |
| 28 | + * | ||
| 29 | + * 关联 {@link DeliveryTemplateDO#getId()} | ||
| 27 | */ | 30 | */ |
| 28 | private Long templateId; | 31 | private Long templateId; |
| 29 | 32 | ||
| @@ -33,16 +36,18 @@ public class DeliveryFreeDetailDO extends BaseDO { | @@ -33,16 +36,18 @@ public class DeliveryFreeDetailDO extends BaseDO { | ||
| 33 | private Integer areaId; | 36 | private Integer areaId; |
| 34 | 37 | ||
| 35 | /** | 38 | /** |
| 36 | - * 包邮金额(单位分) 订单总金额>包邮金额才免运费 | 39 | + * 包邮金额,单位:分 |
| 40 | + * | ||
| 41 | + * 订单总金额 > 包邮金额时,才免运费 | ||
| 37 | */ | 42 | */ |
| 38 | private Integer freePrice; | 43 | private Integer freePrice; |
| 39 | 44 | ||
| 45 | + // TODO @Jason:freeCount;一般 count 作为数量哈 | ||
| 40 | /** | 46 | /** |
| 41 | - * 包邮件数,订单总件数>包邮件数才免运费 | 47 | + * 包邮件数 |
| 48 | + * | ||
| 49 | + * 订单总件数 > 包邮件数时,才免运费 | ||
| 42 | */ | 50 | */ |
| 43 | private Integer freeNumber; | 51 | private Integer freeNumber; |
| 44 | 52 | ||
| 45 | - | ||
| 46 | - @TableField(exist = false) | ||
| 47 | - private static final long serialVersionUID = 1L; | ||
| 48 | -} | ||
| 49 | \ No newline at end of file | 53 | \ No newline at end of file |
| 54 | +} |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/delivery/DeliveryTemplateDO.java
| @@ -2,11 +2,16 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery; | @@ -2,11 +2,16 @@ package cn.iocoder.yudao.module.product.dal.dataobject.delivery; | ||
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | 3 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
| 4 | import com.baomidou.mybatisplus.annotation.KeySequence; | 4 | import com.baomidou.mybatisplus.annotation.KeySequence; |
| 5 | -import com.baomidou.mybatisplus.annotation.TableField; | ||
| 6 | import com.baomidou.mybatisplus.annotation.TableId; | 5 | import com.baomidou.mybatisplus.annotation.TableId; |
| 7 | import com.baomidou.mybatisplus.annotation.TableName; | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
| 8 | import lombok.*; | 7 | import lombok.*; |
| 9 | 8 | ||
| 9 | +// TODO @Jason:配送放到 trade 里。然后属于 deliver 配送;配送分成两个方式:1)快递 express;2)自提 pickup; | ||
| 10 | +// 这样的话,实体名字一个是 DeliveryExpressTemplateDO;长一点没关系哈;还有一个 DeliveryPickUpStoreDO 自提门店; | ||
| 11 | +// 表名的话,还是加上 trade_delivery_ 前缀,主要归属在交易域 | ||
| 12 | + | ||
| 13 | +// TODO @Jason:额外补充,不是这个类哈。应该还有个快递;DeliveryExpress;需要设计下这个表 | ||
| 14 | + | ||
| 10 | /** | 15 | /** |
| 11 | * 配送模板 SPU DO | 16 | * 配送模板 SPU DO |
| 12 | * | 17 | * |
| @@ -33,11 +38,13 @@ public class DeliveryTemplateDO extends BaseDO { | @@ -33,11 +38,13 @@ public class DeliveryTemplateDO extends BaseDO { | ||
| 33 | */ | 38 | */ |
| 34 | private String name; | 39 | private String name; |
| 35 | 40 | ||
| 41 | + // TODO @Jason 我看了下,crmeb 界面是假的,没有全国包邮、部分包邮、自定义;直接干掉这个字段号了;没啥用。 | ||
| 36 | /** | 42 | /** |
| 37 | * 配送费用类型 1:全区域包邮 2:非全区域包邮 | 43 | * 配送费用类型 1:全区域包邮 2:非全区域包邮 |
| 38 | */ | 44 | */ |
| 39 | private Integer chargeType; | 45 | private Integer chargeType; |
| 40 | 46 | ||
| 47 | + // TODO @Jason:1:按件 2:按重量 3:按体积 枚举,然后关联下 | ||
| 41 | /** | 48 | /** |
| 42 | * 配送计费方式 1:按件 2:按重量 3:按体积 | 49 | * 配送计费方式 1:按件 2:按重量 3:按体积 |
| 43 | */ | 50 | */ |
| @@ -48,7 +55,4 @@ public class DeliveryTemplateDO extends BaseDO { | @@ -48,7 +55,4 @@ public class DeliveryTemplateDO extends BaseDO { | ||
| 48 | */ | 55 | */ |
| 49 | private Integer sort; | 56 | private Integer sort; |
| 50 | 57 | ||
| 51 | - @TableField(exist = false) | ||
| 52 | - private static final long serialVersionUID = 1L; | ||
| 53 | - | ||
| 54 | } | 58 | } |